v1.6.8
What's changed
Fixed
- Accurate frame counts (#242, #239).
get_framecount(fast=True)— used to setMgVideo.length— read the container'snb_framesmetadata, which is unreliable (off by one on many AVIs, absent on WebM); this was the "extra frame after conversion" reported in #239. It now counts demuxed video packets (-count_packets), which matches the true decoded frame count across containers while still avoiding a full decode (marginally faster than the old metadata query).fast=Falsestill does the exhaustive decode-and-count.
Full changelog: https://github.com/fourMs/MGT-python/blob/master/CHANGELOG.md