Skip to content

deps: pin BtbN FFmpeg by build and SHA-256; fix 720x486 field-order fixture (task #123) - #278

Merged
StuartCameronCode merged 2 commits into
mainfrom
stuart/123-deps-1-18-0-rc4-windows-linux-ffmpeg-btb
Nov 27, 2026
Merged

StuartCameronCode merged 2 commits into
mainfrom
stuart/123-deps-1-18-0-rc4-windows-linux-ffmpeg-btb

Conversation

@StuartCameronCode

@StuartCameronCode StuartCameronCode commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Fixes task #123. Two things broke with deps 1.18.0-rc4 on Windows and Linux:

  • Heavy tests failed. BtbN's rolling ffmpeg-n9.0-latest asset moved from n9.0.2-61 (rc3) to n9.0.2-963 (rc4). The newer swscale (from FFmpeg ff65bd5417) refuses to convert 4:2:0 field by field (scale=interl=1 / -1) when the frame height is 2 mod 4. That broke the 720x486 (task #92) heavy tests in integration_field_order_test.dart on Windows and Linux.
  • The deps scripts don't pin a build. They named an FFmpeg series and fetched whatever BtbN's latest held.

What changed

  • Test fixture. The D1 fixture now converts at 488 lines and then crops to 486, and is renamed d1v2_src_* so a cached copy is rebuilt.
    • The 4:2:0 fixture comes out identical from n9.0.2-61 and n9.0.2-963.
    • The 4:2:2 fixture is byte-identical to the old one.
  • No user job is exposed. Only the fixture passes interl; the scalers FFmpeg inserts on its own use interl=0.
    • An exposure matrix of 72 rows ran through both builds. It covered the encoder pix_fmt pins, the preview scale, and pad-and-crop.
    • Every row passed on n9.0.2-61 (72/72). On n9.0.2-963 only the 4 interl=-1 control rows fail (68/72).
  • BtbN pinned by build. download-deps-linux.sh and download-deps-windows.ps1 now fetch BtbN n9.0.2-963-g4d831360c9, the build rc4 shipped, so its binaries are unchanged.
    • Each asset is checked against its SHA-256.
    • The scripts fetch from our ffmpeg-mirror-v1 release first (a prerelease, not Latest), then from BtbN's dated autobuild-2026-11-25-12-41.
    • Each script checks the installed build and replaces an ffmpeg that is a different build.
  • Tests. ffmpeg_version_pin_test now checks the build pin: the same build on both platforms, inside the 9.0 series, a dated fallback tag, a hash per asset, and nothing fetched from latest. source_pin_test now refuses any releases/download/latest/ URL.
  • Docs.

Testing

  • Push-gate suite (--exclude-tags heavy,gpu), macOS arm64: 1940 passed, 9 skipped.
  • The four heavy 720x486 (task #92) tests on macOS arm64 against rc4: 4/4 passed.
  • Mutation check: putting latest back in a script fails both pin tests.
  • nightly.yml run 45997028089 (platform=all, the published rc4 bundle with BtbN n9.0.2-963):
    • The linux-x64 heavy and windows-x64 heavy legs passed.
    • All four 720x486 (task #92) tests ran on both, with no failures or skips and no swscale refusal. On main these failed on Windows/Linux in nightly 45796959369.
    • The other legs weren't finished when this was written.
  • build-deps-linux run 45997032424 and build-deps-windows run 45997036612 (version=1.18.0-test123, not published): success.
    • Linux arm64 and x64: Fetched from …/ffmpeg-mirror-v1/ffmpeg-n9.0.2-963-g4d831360c9-linux{64,arm64}-gpl-9.0.tar.xz, sha256sum: OK.
    • Windows x64, the first run of the new PowerShell code: it downloaded the mirror URL first, with no hash warning.
    • Every log says FFmpeg build n9.0.2-963-g4d831360c9 (matches the pin).
    • In the bundles, ffmpeg/ffprobe (linux-x64) and ffmpeg.exe/ffprobe.exe (windows-x64) have the same sha256 as deps-v1.18.0-rc4's (ffmpeg ba7cc6fb…, ffmpeg.exe 6f51f901…).

🤖 Generated with Claude Code

StuartCameronCode and others added 2 commits November 28, 2026 04:16
… converts at 488 lines (task #123)

BtbN's rolling n9.0-latest moved from n9.0.2-61 (deps 1.18.0-rc3) to
n9.0.2-963 (rc4), whose swscale (ff65bd5417, a heap-overflow fix) refuses
a field-wise 4:2:0 conversion at a height 2 mod 4. Only the field-order
test's fixture asked for one (scale=interl=1); no worker or app path does.

- Linux and Windows pin n9.0.2-963-g4d831360c9 (what rc4 shipped) by
  SHA-256, fetched from the ffmpeg-mirror-v1 release first, then BtbN's
  dated autobuild tag; the installed build is asserted, and an existing
  ffmpeg that is another build is replaced.
- The D1 fixture converts at 488 lines and crops to 486 (the 4:2:2 one is
  byte-identical), under a new file name so a cached one is rebuilt.
- ffmpeg_version_pin_test checks the build pins; source_pin_test refuses
  any releases/download/latest URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…DE.md rule, engineering note, #92 correction, index row

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@StuartCameronCode
StuartCameronCode force-pushed the stuart/123-deps-1-18-0-rc4-windows-linux-ffmpeg-btb branch from eae5ce7 to 2711e5b Compare November 27, 2026 17:17
@StuartCameronCode
StuartCameronCode merged commit a93ad2a into main Nov 27, 2026
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant