[Libav-user] Converting PTS to frame number

Michael Ivanov ivspcom at gmail.com
Wed Dec 18 14:37:57 EET 2024


Agree. However in my case Demuxer is part of a bigger rendering system
which is (currently) frame based. So I need to send back frame numbers so
the engine knows when to stop demuxing process. In the future it will be
changed to time based.

On Wed, Dec 18, 2024, 14:33 Nicolas George <george at nsup.org> wrote:

> Michael Ivanov (12024-12-18):
> > It works correctly, but I am not sure this is the right way to do that
> and
> > that it will work with any fps/time scale. Could someone review this code
> > and provide feedback, or an alternative way?
>
> Most code that tries to generate a frame number proves to be trying to
> solve a problem the wrong way. Please explain why you think you need the
> frame number.
>
> Regards,
>
> --
>   Nicolas George
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/libav-user
>
> To unsubscribe, visit link above, or email
> libav-user-request at ffmpeg.org with subject "unsubscribe".
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20241218/666cac77/attachment.htm>


More information about the Libav-user mailing list