Duration might be wrong
Brought to you by:
tkirby
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?