I'm writing code to parse the JSON output of mediainfo, to get various specs including the video bit rate.
Trying mediainfo for a DVD, it reports over 100 tracks (there seem to be lots of extras on this DVD).
To simplify, I look for the IFO with the longest duration and work from there (assuming that's the "main" title).
The IFO itself has an OverallBitRate but the value is very small, e.g. "29". There are several VOBs associated with this IFO, but each one has a slightly different OverallBitRate, and there are some super-short tracks that have a very different bit rate (e.g., 400 ms duration, with a bit rate that's 1/3 of the other VOBs). Some elements have a BitRate property and some have a BitRate_Maximum property, so I'm a little confused by all these different properties and values.
Is there some kind of rule for how this should be calculated ? How should I do it?
TIA !