Skip to content

4.0.0 - FFmpeg 9.1

Latest

Choose a tag to compare

@superuser404notfound superuser404notfound released this 04 Dec 12:02

FFmpeg moves from n8.1.3 to n9.1. dav1d 1.5.5, zimg 3.0.6 and libzvbi 0.2.46 are unchanged.

This is a major release because every FFmpeg library takes a new major version: libavcodec and libavformat 62 to 63, libavutil 60 to 61, libavfilter 11 to 12, libswscale 9 to 10, libswresample 6 to 7. Consumers pinned to upToNextMinor(from: "3.x") stay on 3.19.3 until they move their pin.

What 9.1 fixes for us

These are on 9.1 and not on the 8.1 line (checked against n8.1.4):

  • The Dolby Vision RPU is found in any NAL of an access unit, not only the last one (89bdd9e1a5). With a suffix SEI behind it, a frame lost its Dolby Vision metadata.
  • PTS correction counters reset on a decoder flush (d69e8d0a95), so best_effort_timestamp after a seek no longer carries guesses from before it.
  • Seeks in fragmented MP4 with audio and video in separate fragments land where they should (e5e8efae5c).
  • skip_samples with a time base that differs from the sample rate (afcde6551c).
  • initial_padding is set from an MP4 audio edit list, so a caller can tell whether a source states its AAC priming.

Patches

Sixteen patches now, down from eighteen. FFmpeg 9.1 ships four of ours, in full or in part:

  • patch_ffmpeg_vc1_parser is gone (upstream aa7d1596db, ba7675a2d9, 300e0a8aea).
  • patch_ffmpeg_dav1_tag is gone (upstream 4c6d67fe0f).
  • patch_ffmpeg_eac3_dec3 keeps only the JOC extension half. The chan_loc half is upstream f10fdd6310.
  • patch_ffmpeg_yadif_videotoolbox no longer carries the autorelease and texture failure fixes (upstream 7f2e5cdd7c, 6dcbe26a7a).

The rest:

  • yadif_videotoolbox and bwdif_videotoolbox are the commits of FFmpeg PR 26244 and 26276, applied to n9.1 unchanged. The n8.1.3 wrapper around the filter callback is gone.
  • Behaviour change: in both deinterlacers, a frame that fails on the GPU now returns an error. 9.1's yadif callback returns it. Before, a failed frame went out with whatever pixels its buffer held.
  • mpegts_dovi_descriptor now also carries the first commit of FFmpeg PR 26097, which checks that a whole video entry fits the PMT. 9.1 writes the LCEVC linkage descriptor in the same entry, so the fixed margin no longer covered it next to the Dolby Vision descriptors.
  • fieldmatch_videotoolbox refuses the same small heights CPU fieldmatch refuses in 9.1 (3e6cf7803c).
  • mov_lazy_frag_index was merged three-way onto 9.1's mov.c. av1_delayed_rap, ivtc_videotoolbox and mpegts_dovi_descriptor were re-exported. In all four the changed lines are the same as before.
  • The DTS:X height decoder is upstream on master (1191609d38) but not in 9.1, so patch_ffmpeg_dca_x_heights stays.

Checked

  • swift test: 59 tests in 19 suites pass.
  • IVTC equality on n9.1. The kernel harness finds 0 differences for fieldmatch (15000 cases) and decimate (288 cases). The CPU against GPU matrix is identical in 63 of 63 runs.
  • AetherEngine builds against these binaries for macOS, tvOS and iOS. Its full suite passes (7148 + 19 tests), and so do its standalone CI scripts.
  • All slices were rebuilt with Xcode 27.2. BUILD-INFO.txt records FFmpeg n9.1 (74e4393595) and the patch hashes.

Closes the 9.x move tracked in #2.