Missing audio when recording a 2nd time

About encoding, codec settings, muxers and filter usage
ralf.butler
Blank Cone
Blank Cone
Posts: 24
Joined: 29 Aug 2009 23:53

Missing audio when recording a 2nd time

Postby ralf.butler » 23 Jan 2010 12:28

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Missing audio when recording a 2nd time

Postby Rémi Denis-Courmont » 23 Jan 2010 14:02

Yes. You can't use V4L2 devices more than once at a time.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

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

Re: Missing audio when recording a 2nd time

Postby ralf.butler » 23 Jan 2010 14:22

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


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 29 guests