mixing v4l2 and sound input

*nix specific usage questions
ralf.butler
Blank Cone
Blank Cone
Posts: 24
Joined: 29 Aug 2009 23:53

mixing v4l2 and sound input

Postby ralf.butler » 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:

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

ralf.butler
Blank Cone
Blank Cone
Posts: 24
Joined: 29 Aug 2009 23:53

[SOLVED] Re: mixing v4l2 and sound input

Postby ralf.butler » 11 Jan 2010 01:55

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.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 5 guests