Page 1 of 1

mixing v4l2 and sound input

Posted: 10 Jan 2010 07:10
by ralf.butler
Hi,

I can perfectly record from /dev/video0 and write the output to a file. However, I can not 'inject' sound into that outfile. The command that I use is:

Code: Select all

cvlc -vvv --color --run-time=10 v4l2:// :v4l2-dev=/dev/video0 :v4l2-adev=/dev/dsp :v4l2-standard=0 :sout='#transcode{vcodec=mp4v,vb=800,scale=1,acodec=mpga,ab=600,channels=1,sfilter=marq}:std{access=file,mux=mp4,dst=/tmp/out.mp4}' --sub-filter marq --marq-marquee "%D %H:%M:%S" --marq-position 6
And here is the output http://pastebin.ca/1745124
I tried it with alsa as well, but didn't work out. Furthmore I have the impression that the command is not that ok. I tried so many things but none of the output videos had a sound container.

Would be great if someone could give me a hint.
Thank you,
Ralf

[SOLVED] Re: mixing v4l2 and sound input

Posted: 11 Jan 2010 01:55
by ralf.butler
Ok, I sort it out. The new command is:

Code: Select all

cvlc -vvv --color --run-time=10 v4l2:// :v4l2-dev=/dev/video0 :input-slave=alsa://hw:0,0 :v4l2-standard=0 :sout='#transcode{vcodec=mp4v,vb=800,scale=1,acodec=mpga,ab=128,sfilter=marq}:std{access=file,mux=mp4,dst=/tmp/out.mp4}' --sub-filter marq --marq-marquee "%D %H:%M:%S" --marq-position 6
It seems that ":v4l2-adev" isn't supported any more.