[Libav-user] av_frame_get_best_effort_timestamp(): PTS or DTS?
Dídac Pérez
perez.didac at gmail.com
Fri Mar 28 22:03:56 CET 2014
I can only answer by my short experience... in my case I decode frames from
an IP camera, H.264. As I have realized, av_frame_get_best_effort_timestamp()
always returns me the packet pts minus 1/fps, so I "guess" that this
function works with pts instead of dts and, in my case, that differente is
because of the bidirectional frame prediction of the H.264.
Cheers,
--
Dídac Pérez
2014-03-28 21:19 GMT+01:00 Lucas Soltic <lucas.soltic at orange.fr>:
> Hello!
>
> Does av_frame_get_best_effort_timestamp() gives a PTS or DTS?
>
> At first I would have thought it's a PTS, because it's impossible for
> decoding to correctly happen if DTS does not exist in the packet, but then
> I read that the packet DTS may be AV_NOPTS_VALUE (DTS being a NOPTS..??!).
> If that is correct, is there a reliable way to know the DTS too (in the
> core meaning of DTS, even if the file does not set it)?
>
> Thanks,
> Lucas
> _______________________________________________
> 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/20140328/05972041/attachment.html>
More information about the Libav-user
mailing list