[Libav-user] How to know if lavf guessed the duration from the bitrate or not?

Michael Bradshaw mbradshaw at sorensonmedia.com
Tue Jun 12 19:44:03 CEST 2012


avformat_find_stream_info() attempts to find the file's and streams'
durations, but it will guess them based on the bitrate if it can't
determine the actual duration. This guess can be useful, but I need to
be able to know if the AVFormatContext's or AVStream's duration was a
guess   based on the bitrate or not, so I know how much I should trust
this duration.

Is there a way to know this?

Thanks,

Michael


More information about the Libav-user mailing list