Is there a get_frame in VLC?

This forum is about all development around libVLC.
Angrod90
New Cone
New Cone
Posts: 5
Joined: 16 Nov 2015 11:24

Is there a get_frame in VLC?

Postby Angrod90 » 18 Aug 2016 09:00

Hello,

It's been a while since I asked anything here but I continue on the same project than last time, using the python bindings from vlc, I'm doing a video player in which you can exchange two videos on the same moment in order to compare them.
While doing this I've noticed that vlc handles the times in a rounded way, it's not very precise, since sometimes I get little variations (of one or two frames) from the two videos (when I do: get_time from video A and set_Time from video B), until now the user can adjust it with the function next_frame() but I would like to do it invisible to the user and let my program to do the change. In order to do so, I need some kind of get_frame() function which I guess there must be.
I guess every time I use next_frame vlc would do frame = get_frame()+1 but I've been unable to locate anything like that.

The other option to get the frame you are on vlc is through Tools->Media ingo->Statistics->Shown frames, so any way to access this variable would be fine by me.

Once I could get the frames I'd just compare the two videos on put them on the same frame.

Any help would be greatly appreciated, Thanks in advance!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Is there a get_frame in VLC?

Postby Jean-Baptiste Kempf » 23 Sep 2016 14:47

No, there is not.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 4 guests