No audio while streaming v4l

About encoding, codec settings, muxers and filter usage
Muffty

No audio while streaming v4l

Postby Muffty » 20 Jun 2006 11:30

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

Muffty

Postby Muffty » 20 Jun 2006 13:19

I forgot to mention:

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

Muffty

Postby Muffty » 20 Jun 2006 14:29

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...

reever666
Blank Cone
Blank Cone
Posts: 20
Joined: 19 Jun 2006 00:24
Location: Regensburg/Germany
Contact:

Postby reever666 » 23 Jun 2006 11:48

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
IPcop PII 350 320MB 4GB 4NIC´s
1st PC: Sempron2200 768MB 60GB GeForceFX5500 Hauppauge TV-Card
DC30 VideoCutting-Card
2nd PC: PIII-866 512MB 80GB Radeon 9000pro with ViVo
Fileserver: PII-350x2 384MB 170GB
Webserver PII-350 384MB 4GB

Athlon2x
Blank Cone
Blank Cone
Posts: 22
Joined: 22 Oct 2005 16:20
Location: Telecom Lille, France

Postby Athlon2x » 25 Jun 2006 23:45

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 ?


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 7 guests

cron