Skip to content

v1.6.8

Choose a tag to compare

@alexarje alexarje released this 28 Jun 18:40
· 366 commits to master since this release

What's changed

Fixed

  • Accurate frame counts (#242, #239). get_framecount(fast=True) — used to set MgVideo.length — read the container's nb_frames metadata, 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=False still does the exhaustive decode-and-count.

Full changelog: https://github.com/fourMs/MGT-python/blob/master/CHANGELOG.md