[Libav-user] AVPacket::duration from H.264 encoder is zero

Yurii Monakov monakov.y at gmail.com
Mon Oct 22 19:43:24 EEST 2018

Duration can only be definded as difference in time between two frames. It
is not relevant for single frame.

But if you need some approximation, you can take codec time base.


сб, 20 окт. 2018 г. в 11:20, asticode <contact at asticode.com>:

> Thanks for the reply.
> Problem is, how can I know the duration of the last encoded frame then?
> --
> Sent from: http://libav-users.943685.n4.nabble.com/
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20181022/4a5199a6/attachment.html>

More information about the Libav-user mailing list