<div dir="ltr">I can only answer by my short experience... in my case I decode frames from an IP camera, H.264. As I have realized, <span style="font-family:arial,sans-serif;font-size:12.727272033691406px">av_frame_get_best_effort_</span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">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.</span><div>

<span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br>Cheers,</span></div></div><div class="gmail_extra"><br clear="all"><div><font color="#666666"><div><font color="#666666">--</font></div>Dídac Pérez</font><div>

<br></div></div>
<br><br><div class="gmail_quote">2014-03-28 21:19 GMT+01:00 Lucas Soltic <span dir="ltr"><<a href="mailto:lucas.soltic@orange.fr" target="_blank">lucas.soltic@orange.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello!<br>
<br>
Does av_frame_get_best_effort_timestamp() gives a PTS or DTS?<br>
<br>
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)?<br>


<br>
Thanks,<br>
Lucas<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</blockquote></div><br></div>