mixing v4l2 and sound input
Posted: 10 Jan 2010 07:10
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:
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
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
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