How to get the frame number of the paused frame?

This forum is about all development around libVLC.
vlcismylove
New Cone
New Cone
Posts: 2
Joined: 09 Mar 2020 02:28

How to get the frame number of the paused frame?

Postby vlcismylove » 09 Mar 2020 02:42

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 09 Mar 2020 04:33

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

vlcismylove
New Cone
New Cone
Posts: 2
Joined: 09 Mar 2020 02:28

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

Postby vlcismylove » 09 Mar 2020 05:17

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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: Bing [Bot] and 10 guests