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 <[email protected]>: > 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 > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user >
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
