Page 1 of 1

Missing audio when recording a 2nd time

Posted: 23 Jan 2010 12:28
by ralf.butler
Dear All,

I record video and audio:

Code: Select all

cvlc --color --run-time=10 v4l2:///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
Everything works fine. The output is ok and has audio in it. However, when I execute the command a second time, there is no sound in the output-file. I have the gut feeling that this is related to the fact, that the recording device is still blocked. Can that be?

Thanks,
Ralf

Btw. the command is executed on a debian machine.

Re: Missing audio when recording a 2nd time

Posted: 23 Jan 2010 14:02
by RĂ©mi Denis-Courmont
Yes. You can't use V4L2 devices more than once at a time.

Re: Missing audio when recording a 2nd time

Posted: 23 Jan 2010 14:22
by ralf.butler
Hi Remi,

Yes, I know that I can use the V4L2 multiple times. However, I've the feeling that the audio device is not released after I used it the first time. Because on the 2nd time there is no audio in the video.

Thanks,
Ralf