[MPlayer-dev-eng] How to get current video frame number?

Loren Merritt lorenm at u.washington.edu
Mon Jul 17 21:59:49 CEST 2006


On Mon, 17 Jul 2006, Somnath Banerjee wrote:

>      Is there a way for the video filter to get current frame number from
> the mplayer main? I can keep a counter in the put_image of my video filter
> and increment it every time the put_image is called. But the problem with
> this approach is that it can't handle fast forward and rewinding. In such
> cases the counter becomes wrong. Any better way to get the current frame
> number in video filter?

No. MPlayer doesn't know the current frame number either, because it is 
impossible to determine after seeking in any container that supports 
variable framerate.
Your video filter should not depend on frame number. What are you trying 
to do, that doesn't work with timestamps instead?

--Loren Merritt



More information about the MPlayer-dev-eng mailing list