Page 1 of 1

Missing duration

Posted: 30 Aug 2009 01:39
by ralf.butler
Dear All,

I capture (only 5 sec for testing purposes) from /dev/video0:

Code: Select all

cvlc --color --run-time=5 v4l2:///dev/video0:norm=secam:frequency=543250:size=320x240:channel=0 --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=3000,ab=256,venc=ffmpeg{keyint=80,hurry-up,vt=800000},deinterlace}:std{access=file,mux=ts,dst=/tmp/mytest.avi}'
Strange thing is, the output video is generated correctly, but the duration time is indicated as 0. I can play the output video with vlc but it shows it's duration of 0sec. What is wrong?

Thank you very much,
Ralf

Re: Missing duration

Posted: 30 Aug 2009 02:45
by fkuehne
You're muxing to MPEG TS, which doesn't show time information in VLC as it is an encapsulation format which is meant to be of infinite duration. Putting a *.avi to the file name doesn't solve this. Better mux to a container format, which supports time information correctly, such as MP4 or ASF (if you need WMP compatibility).

Re: Missing duration

Posted: 30 Aug 2009 04:50
by ralf.butler
Hey, great! Thank you very much! This works.