Menu

#57 Duration might be wrong

open
general (27)
5
2013-02-04
2013-02-04
Anonymous
No

FFmpeg returns a duration parameter for quicktime movies with in- and out-points which is not the actual clip duration but a virtual duration of something like the full length original video. Short: the duration parameter might be incorrect for some movies. As soon as ffmpeg writes something like:

"Duration: 00:00:19.04, start: -2.-266800, bitrate: 2747 kb/s"

getDuration will be wrong...

As a workaround, I used mediainfo or mplayer to check for the clipduration. Maybe it's possible to calculate the duration based on the framerate and the frame count?

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.