Framerate can be calculated as
FPS = framescale / timescale
Timescale is easy to obtain using isoFile.getMovieBox().getMovieHeaderBox().getTimescale()
But I cannot figure out where is the framescale stored within the mp4parser isobox structure.
Some sample code I came across here uses low-level buffer read on the following path: /moov/trak/mdhd
, but that doesn't seem to be accessible using mp4parser.
Question: Is it possible to extract framescale and/or framerate using mp4parser? Or is it better to use ffmpeg instead?
Note: I prefer using native libraries such as mp4parser over external executables (ffmpeg) where possible