<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-01-23 19:10 GMT+02:00  <span dir="ltr"><<a href="mailto:coordz@megaroms.co.uk" target="_blank">coordz@megaroms.co.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I'm having some problems just doing a simple thing: getting the current<br>
frame number from a decoded AVFrame. ...<br></blockquote></div><br></div><div class="gmail_extra">Hi, <br></div><div class="gmail_extra">I spent some time researching this for virtualdub plugin.<br></div><div class="gmail_extra">Short answer: impossible.<br></div><div class="gmail_extra">Well actually if the format is good and the file is complete then there is a full index there (not public interface).<br></div><div class="gmail_extra">Then you can search the index looking for matching pkt_pts from the decoded frame.<br></div><div class="gmail_extra">Some other formats may work if they are continuous and have well-formed framerate and timebase. Then you can divide either pkt_pts or pkt_dts (which one is what anyway?)<br></div><div class="gmail_extra">That all is totally empiric, there is no flag in ffmpeg telling "you can rely on that".<br></div></div>