[Libav-user] Frame number
Jonas Elofsson
jelofsson at gmail.com
Fri Jun 29 10:00:24 CEST 2012
Hi,
Thanks. I guess this means "pts"?
I have no time to check again at the moment, but I did some tests with this
as well.
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?
Best regards, Jonas
On Thu, Jun 28, 2012 at 10:46 AM, Hector Alonso <halonso at vpod.tv> wrote:
> 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:
>
>> Hi,
>>
>> 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
>> http://ffmpeg.org/mailman/listinfo/libav-user
>>
>>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120629/ac786d81/attachment.html>
More information about the Libav-user
mailing list