Page 1 of 1

How to get the frame number of the paused frame?

Posted: 09 Mar 2020 02:42
by vlcismylove
Hello,

When I call something like libvlc_media_player_pause to pause the player, what function should I call to get the Frame Number of the current displayed frame? Your help is greatly appreciated.

vlcismylove

Re: How to get the frame number of the paused frame?

Posted: 09 Mar 2020 04:33
by RĂ©mi Denis-Courmont
There are no such functions at this time. And I don't see how this would even work. What if there are multiple video tracks? What if the currently visible frame is not generated from a single decoded frame, e.g., due to de-interlacing or other rate-changing filter.

Re: How to get the frame number of the paused frame?

Posted: 09 Mar 2020 05:17
by vlcismylove
Fuction libvlc_media_player_next_frame, and functions like "get time" and "set time", and the concept of FPS give us user of the library an illusion that there is a long number that can be used to index into the video.

If I click the next-frame button one by one from the beginning to the end, and memorize the number, and redo the process second time, can I see the same frame on the screen with the same "number"?

Thanks for your help.