Page 1 of 1

No audio while streaming v4l

Posted: 20 Jun 2006 11:30
by Muffty
Hi to All,

I'm trying to stream a v4l device with vlc. Everything works fine except that there's no audio. The tv-tuner audio is on the aux port. While streaming avi files there's no problem with the audio, so may be I have to tell vlc somehow to grab the audio from aux. How do I do that?

What I'm using now as a command syntax:

vlc -vvv v4l:/dev/video:adev=/dev/dsp:norm=PAL:frequency=-1:caching=300:chroma=RV32:samplerate=44100:channel=0:tuner=-1:audio=0:size=320x240:brightness=-1:colour=-1:hue=-1:contrast=-1 --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=1800,ab=128,quality=1.0}:std{access=http,mux=ts}' --ttl 12

Posted: 20 Jun 2006 13:19
by Muffty
I forgot to mention:

VLC 0.8.5, Slackware Linux, MSI TV@nywhere Master, Creative Soundblaster Live Digital

Posted: 20 Jun 2006 14:29
by Muffty
I don't know what is the exact problem with this, but everything I tried seems not to work...
I have set up my alsamixer so it captures from aux. I try passing to vlc the tvnorm and etc. but it doesn't work. So I ended up with the following solution - I installed xawtv4 and setup only the channel I want to stream. I start vlc as follows:
vlc -vvv v4l:/dev/video:adev=/dev/dsp:norm=PAL-DK:frequency=191250:caching=300:chroma=RV32:channel=0:tuner=-1:audio=0:size=320x240:brightness=-1:colour=-1:hue=-1:contrast=-1 --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=1536,ab=128,samplerate=44100,venc=ffmpeg{keyint=80,hurry-up,vt=800000},deinterlace}:std{access=http,mux=ts,dst=:8080}' --ttl 12 -I dummy &

It works, but without sound
After that I start xawtv with this:
xawtv -tvnorm PAL-DK &

It binds to the channel I have setup and there is a sound!

If somebody tells me how to get rid of xawtv, I will appriciate it...

Posted: 23 Jun 2006 11:48
by reever666
Hi Muffty !

I have had the same problem. could it be that you have 2 or more sound-cards. you must disable the on boardcard in BIOS-setup or you type at the vlc command line "adev=/dev/dsp2 or 1". the clue in this solution is that the normal soundcard for linux was dsp2 in vlc and in gnome normally dsp ??
but it works.

greetings wolf

Posted: 25 Jun 2006 23:45
by Athlon2x
I have the same problem

Debian Linux

3x tv tuners
3x sound cards.

Three tuners work well but only 2 sound cards.

The third one connected on the aux-in input doesn't work :s

/dev/dsp and /dev/dsp2 work well
/dev/dsp1 doesn't

Any idea ?