Frames skipped while recording

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

Frames skipped while recording

Postby ralf.butler » 23 Jan 2010 12:34

Hi there,

On my debian machine I record two camera streams link this:

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/out0.mp4}' --sub-filter marq --marq-marquee \"%D %H:%M:%S\" --marq-position 6 & cvlc --color --run-time=10 v4l2:///dev/video1 :v4l2-standard=0 :sout='#transcode{vcodec=mp4v,vb=800,scale=1,acodec=none,sfilter=marq}:std{access=file,mux=mp4,dst=/tmp/out1.mp4}' --sub-filter marq --marq-marquee \"%D %H:%M:%S\" --marq-position 6 &
Sometimes the both output files differ. For example I can see when replaying the second one that suddenly frames are skipped. Moving objects in the video are somehow 'teleported' to a location. Could this be a hardware related issue? Or can this be avoided by adding a magical command to vlc to make the output more reliable?

Thanks,
Ralf

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

Re: Frames skipped while recording

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

Encoding two raw videos at the same time is CPU intensive. It is not unlikely that your CPU is too slow.
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: Frames skipped while recording

Postby ralf.butler » 24 Jan 2010 12:56

Yes, I feared that. Furthermore I encode not only 2 but 4 videos on a Pentium 4. Ok, what do you think of a Core 2 Duo. Will that work?

Thanks Remi!

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

Re: Frames skipped while recording

Postby ralf.butler » 30 May 2010 00:02

Thanks Remi. That did the job.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 13 guests