Movie file frame per second detection

  • Hello,


    Do Enigma2 have some module/ class / function which will return to me movie (avi, mkv, mp4, other supported by player formats) fps ratio?


    In the past I used libmediainfo and libzen but it's external libraries and now I think that E2 should have some mechanisms to do it better (without extra libraries).


    Where should I dig to find fps ratio returning function?

    "Reasonable people adapt themselves to the world.
    Unreasonable people attempt to adapt the world to themselves.
    All progress, therefore, depends on unreasonable people"


    ============
    SubsDownloader

    • Offizieller Beitrag

    Hi,


    no we dont have any possibility to detect/read the framerate.


    Only for the running TV service / running media file / running playback...


    For the info is returned from the hardware video decoder.


    cu

  • I understand.
    And how hardware video decoder returns this value? which variable? How to read this returned value?


    And what with Gstream library any possibility to read fps by this lib?

    "Reasonable people adapt themselves to the world.
    Unreasonable people attempt to adapt the world to themselves.
    All progress, therefore, depends on unreasonable people"


    ============
    SubsDownloader

  • If you need it only for ts/mpeg files you can find in 1 min with the friendly search engine in your neighbourhood the link to the mpeg header and a dozend lines of codes as example:


    http://forum.videohelp.com/thr…ve-transport-stream-infos


    Re-writing this in python takes less then 1h.


    BUT if you want all possible media files - find a company that pays you money for it :smiling_face: