[Libav-user] Frame number
halonso at vpod.tv
Thu Jun 28 10:46:09 CEST 2012
Hi, you have to use the decoding or presentation timestamp and calculate it
from the frame rate (time base of the stream).
On Thu, Jun 28, 2012 at 10:09 AM, Jonas Elofsson <jelofsson at gmail.com>wrote:
> Resending this, it seems my first post never got through...
> 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.
> 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.
> What I need is a good, solid way to always be able to identify the current
> frame number.
> If you have a solution or just an idea, please let me know!
> Best regards, Jonas
> Libav-user mailing list
> Libav-user at ffmpeg.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user