Missing duration

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

Missing duration

Postby ralf.butler » 30 Aug 2009 01:39

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

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Missing duration

Postby fkuehne » 30 Aug 2009 02:45

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).
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

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

Re: Missing duration

Postby ralf.butler » 30 Aug 2009 04:50

Hey, great! Thank you very much! This works.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 13 guests