How to read source framerate?
#1
Can anyone please give me advice about getting the source framerate of the current playing video?

The information i'd like to be able to use within my addon appears on the second line of the codecinfo overlay e.g. "P(fr:24.000,".

I cannot see a way to do this using the default xbmc classes.
Reply
#2
I haven't been able to figure out how to do this either. You can get the framerate the system is playing at with:
Code:
sfps = xbmc.getInfoLabel('System.FPS')

If you aren't trying to be in the official repo and you don't mind trying to deal with multiple platform specific libraries, there are python wrappers for the mediainfo and ffmpeg libraries that can give you that info. I find the mediainfo one easier to work with, but I only deal with windows...
Reply
#3
I'm building an Android specific add-on to auto-switch output frequency based on source framerate.

Will try using subprocess to call ffmpeg.

Thanks for pointing me in the right direction :-)
Reply

Logout Mark Read Team Forum Stats Members Help
How to read source framerate?0