Hi,<br><br>Thanks. I guess this means "pts"?<br><br>I have no time to check again at the moment, but I did some tests with this as well. <br><br>The video I tested with reported 25 frames per second and the timebase 1/25. Shouldn't this give me the pts 1,2,3,4... etc for each frame? Instead i got (if my memory serves me right) 1200, 2400 etc  (step of 1200 for each frame). Is there some documentation describing the FFMpeg timebase system?<br>
<br>Best regards, Jonas<br><br><div class="gmail_quote">On Thu, Jun 28, 2012 at 10:46 AM, Hector Alonso <span dir="ltr"><<a href="mailto:halonso@vpod.tv" target="_blank">halonso@vpod.tv</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, you have to use the decoding or presentation timestamp and calculate it from the frame rate  (time base of the stream).<br><br><div class="gmail_quote"><div><div class="h5">On Thu, Jun 28, 2012 at 10:09 AM, Jonas Elofsson <span dir="ltr"><<a href="mailto:jelofsson@gmail.com" target="_blank">jelofsson@gmail.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hi,<br><br>Resending this, it seems my first post never got through...<br><br>I'm taking the first, trembling steps to use FFMpeg in Qt, primary for a video editing SW. So far it is working good, I can decode frames to a QImage in Qt and display them on a label. Even video playback works good on a QLabel up to 200 frames/s or so.<br>


<br>But, what I cannot find is a way to see what frame (displayed framenumber) I just decoded. Coded framenumber I can see, but they are (of course) not useable directly, and also are not available for all formats. Displayed framenumber is not working, either always 0, 0x80000000... or other none-telling values.<br>


<br>What I need is a good, solid way to always be able to identify the current frame number.<br><br>If you have a solution or just an idea, please let me know!<br><br>Best regards, Jonas<br><br><br>
<br></div></div>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">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>
<br></blockquote></div><br>
<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>
<br></blockquote></div><br>