[FFmpeg-user] Question

Phil Rhodes phil_rhodes at rocketmail.com
Sat Aug 10 14:37:23 CEST 2013

I've no idea, but bear in mind that getting the duration of an AVI file may not be easy or quick in any case. Some AVIs have a frame count in the headers, but many don't, and some that do are inaccurate. If you're always working with files produced by a known application, and you know that application always writes accurate frame counts, there may be a way to do it. If not, the only accurate way is to scan through the entire file frame by frame, which can be very slow on long files.

That's quite apart from how you'd actually get libavformat (presumably the format library, for just a frame count?) to actually do it.


 From: Andranik Avetisyan <avetisyan.andranik1992 at mail.ru>
To: ffmpeg-user at ffmpeg.org 
Sent: Saturday, 10 August 2013, 13:20
Subject: [FFmpeg-user] Question


How can i get .avi videos duration from ffmpeg  in c++
Andranik Avetisyan
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org

More information about the ffmpeg-user mailing list