[Libav-user] Song Duration

Robert Krüger krueger at lesspain.de
Thu Dec 12 08:46:47 CET 2013


On Thu, Dec 12, 2013 at 7:26 AM, Yamusani Vinay <yamusanivinay at gmail.com> wrote:
> AVFormatContext fmt_ctx;
>
> fmt_ctx->duration ...the duration what i got from my java application and
> from ffmpeg is totally different

if you suspect the duration is wrong, try to reproduce with ffmpeg or
ffprobe and file a bug report with command line and sample. It can be
either a bug or a known inaccuracy (i.e. in some cases ffmpeg only
estimates the duration from the bitrate and may be far off).


More information about the Libav-user mailing list