diff --git a/AGENTS.md b/AGENTS.md index 4261ee68d87..e6ddd26c825 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -14,7 +14,7 @@ maintained fork of the abandoned `ffmpegwasm/ffmpeg.wasm`. ## FFmpeg upgrade plan -Both cores build FFmpeg n9.0.2. The ffmpeg CLI in fftools has needed a +Both cores build FFmpeg n9.1. The ffmpeg CLI in fftools has needed a threaded scheduler since 6.0; the mt core has real pthreads, the st core has none (no `SharedArrayBuffer`), so it runs the scheduler on a cooperative pthread shim instead. @@ -61,7 +61,7 @@ Lessons from the shim, so they are not rediscovered: core links so fftools' scheduler runs without `SharedArrayBuffer`. With `PFIBER_JSPI` (`make prd-jspi`, the opt-in `packages/core-jspi`) a switch suspends the wasm stack with JSPI instead; see `build/ffmpeg-wasm.sh`. -- `build/patches/n9`: patches applied to FFmpeg n9.0.2's own fftools sources +- `build/patches/n9`: patches applied to FFmpeg n9.1's own fftools sources for both cores; see the comment in the Dockerfile's `ffmpeg-base` stage. - `src/bind`: JS glue passed to emcc when building the core. - `build/`: per-library build scripts used by the Dockerfile. diff --git a/CHANGELOG.md b/CHANGELOG.md index 30f11966ae9..8f87e123df4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ### Changed +- Both cores build FFmpeg 9.1 (was 9.0.2). - The cores are built with Emscripten 7.0.0. ## 0.18.0 diff --git a/Dockerfile b/Dockerfile index 9b9cecbe436..f7b6cf2de16 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,16 +7,16 @@ ARG EXTRA_LDFLAGS ARG FFMPEG_ST ARG FFMPEG_MT ENV INSTALL_DIR=/opt -# Both cores build the same FFmpeg release now: n9.0.2's fftools has needed +# Both cores build the same FFmpeg release now: n9.1's fftools has needed # real threads (the fftools scheduler) since n6.0, and the st core gets them # via src/pthread-fiber, a cooperative pthread shim on Emscripten fibers, # since it has no SharedArrayBuffer for real ones. See "FFmpeg upgrade plan" -# in AGENTS.md. Kept as two variables, both n9.0.2, only so a future version +# in AGENTS.md. Kept as two variables, both n9.1, only so a future version # bump can stage st and mt separately again if needed. -ENV FFMPEG_VERSION_ST=n9.0.2 -ENV FFMPEG_VERSION_MT=n9.0.2 -ENV FFMPEG_COMMIT_ST=946fcce07b6dcd0331c8cc609192aeff5e1924f8 -ENV FFMPEG_COMMIT_MT=946fcce07b6dcd0331c8cc609192aeff5e1924f8 +ENV FFMPEG_VERSION_ST=n9.1 +ENV FFMPEG_VERSION_MT=n9.1 +ENV FFMPEG_COMMIT_ST=74e4393595cf2b5857f0da925c4e0dd74ea306e5 +ENV FFMPEG_COMMIT_MT=74e4393595cf2b5857f0da925c4e0dd74ea306e5 # Clang in current emsdk releases defaults several legacy-C88/C89 patterns # (implicit function declarations, mismatched function pointer types, and # int/pointer conversions) to hard errors. Some of the bundled third-party diff --git a/NOTICE b/NOTICE index 0775e72c451..27ff42f4eac 100644 --- a/NOTICE +++ b/NOTICE @@ -50,8 +50,7 @@ FFmpeg and third-party libraries built into the core packages FFmpeg https://ffmpeg.org License: LGPL-2.1-or-later; GPL-2.0-or-later when built with --enable-gpl - (this project's build). Versions used: n5.1.10 (single-thread core), - n9.0.2 (multi-thread core). See Dockerfile. + (this project's build). Version used: n9.1 (both cores). See Dockerfile. x264 https://www.videolan.org/developers/x264.html diff --git a/apps/website/docs/fate-and-benchmarks.md b/apps/website/docs/fate-and-benchmarks.md index abcd79eb290..8ca9302f034 100644 --- a/apps/website/docs/fate-and-benchmarks.md +++ b/apps/website/docs/fate-and-benchmarks.md @@ -206,13 +206,13 @@ where that download is unwanted. ```sh # 1. Fetch FFmpeg's tests/ directory for the pinned tag (sparse checkout). -node scripts/fate/fetch-defs.mjs --tag n9.0.2 +node scripts/fate/fetch-defs.mjs --tag n9.1 # 2. Pick a subset and write it as a manifest. -node scripts/fate/select.mjs --tag n9.0.2 --subset fast --out manifest.json +node scripts/fate/select.mjs --tag n9.1 --subset fast --out manifest.json # 3. Fetch any samples that subset's tests reference (no-op for "fast"). -node scripts/fate/fetch-samples.mjs --manifest manifest.json --tag n9.0.2 +node scripts/fate/fetch-samples.mjs --manifest manifest.json --tag n9.1 # 4. Run it against a built core and write results. node scripts/fate/run.mjs --core packages/core --label st --manifest manifest.json --out results.json diff --git a/apps/website/docs/overview.md b/apps/website/docs/overview.md index abcec631131..0be79e17ec2 100644 --- a/apps/website/docs/overview.md +++ b/apps/website/docs/overview.md @@ -90,7 +90,7 @@ ffmpeg.wasm is built with toolchains / libraries: {[ {name: "Emscripten", version: "7.0.0", note: "Emscripten is a toolchain for compiling C and C++ code into WebAssembly and JavaScript, making it possible to run applications written in these languages in web browsers. Version is the emsdk Docker image tag."}, - {name: "FFmpeg", version: "n9.0.2 (multithread core), n9.0.2 (single-thread core)", note: "FFmpeg is a powerful multimedia framework that can decode, encode, transcode, and stream audio and video files. Both cores now build the same FFmpeg release; the single-thread core runs fftools' scheduler on a cooperative pthread shim (src/pthread-fiber) since it has no SharedArrayBuffer for real threads. See \"FFmpeg upgrade plan\" in AGENTS.md."}, + {name: "FFmpeg", version: "n9.1 (multithread core), n9.1 (single-thread core)", note: "FFmpeg is a powerful multimedia framework that can decode, encode, transcode, and stream audio and video files. Both cores now build the same FFmpeg release; the single-thread core runs fftools' scheduler on a cooperative pthread shim (src/pthread-fiber) since it has no SharedArrayBuffer for real threads. See \"FFmpeg upgrade plan\" in AGENTS.md."}, {name: "x264", version: "4-cores (branch)", note: "x264 is a popular video encoding library that provides high-quality H.264 video compression. Built from the ffmpegwasm mirror's 4-cores branch; upstream x264 has no stable release tags to move to."}, {name: "x265", version: "4.2", note: "x265 is a video encoding library that specializes in encoding videos using the H.265/HEVC codec, offering high compression efficiency for video content. Built from canonical upstream (multicoreware/x265_git)."}, {name: "libvpx", version: "v1.17.0", note: "libvpx is an open-source video codec library used for encoding and decoding VP8 and VP9 video formats, commonly used for web-based video streaming. Built from canonical upstream (webmproject/libvpx)."}, diff --git a/apps/website/docs/presets.md b/apps/website/docs/presets.md index ac6444140bd..3e13efe7e56 100644 --- a/apps/website/docs/presets.md +++ b/apps/website/docs/presets.md @@ -18,17 +18,17 @@ copy one to start your own. ## Size -Measured in CI at FFmpeg n9.0.2, from `dist/umd`. Gzip is level 9. The last +Measured in CI at FFmpeg n9.1, from `dist/umd`. Gzip is level 9. The last column adds the gzipped `ffmpeg-core.js`. | preset | core | wasm (MB) | wasm gzip (MB) | wasm and js gzip (MB) | | --- | --- | --- | --- | --- | -| `full` | single-thread | 39.96 | 13.44 | 13.48 | -| `full` | multi-thread | 32.36 | 11.05 | 11.08 | -| `web` | single-thread | 14.89 | 4.84 | 4.87 | -| `web` | multi-thread | 12.30 | 4.01 | 4.04 | -| `decode` | single-thread | 25.31 | 9.00 | 9.04 | -| `decode` | multi-thread | 20.22 | 7.46 | 7.50 | +| `full` | single-thread | 40.37 | 13.62 | 13.65 | +| `full` | multi-thread | 33.25 | 11.35 | 11.38 | +| `web` | single-thread | 15.70 | 5.13 | 5.16 | +| `web` | multi-thread | 13.27 | 4.35 | 4.38 | +| `decode` | single-thread | 25.85 | 9.22 | 9.25 | +| `decode` | multi-thread | 20.93 | 7.73 | 7.76 | Each `build-preset` job in the CI workflow prints its row in the job summary, so a change that moves these numbers shows up in a pull request. diff --git a/apps/website/docs/results.md b/apps/website/docs/results.md index ddf3fe4eb27..62888cd5e97 100644 --- a/apps/website/docs/results.md +++ b/apps/website/docs/results.md @@ -4,35 +4,35 @@ This page is generated from `baseline/fate.json` and `baseline/bench.json` by `n ## Compatibility (FATE) -FFmpeg n9.0.2. The pass rate is pass divided by pass plus fail. A skipped test is one the runner could not run: its sample is missing from the FATE mirror, or it is a known failure listed below. +FFmpeg n9.1. The pass rate is pass divided by pass plus fail. A skipped test is one the runner could not run: its sample is missing from the FATE mirror, or it is a known failure listed below. ### Full subset (pull requests) | core | pass | fail | skip | total | pass rate | | --- | --- | --- | --- | --- | --- | -| st | 1055 | 0 | 4 | 1059 | 100.0% | -| mt | 1055 | 0 | 4 | 1059 | 100.0% | +| st | 1164 | 1 | 6 | 1171 | 99.9% | +| mt | 1164 | 1 | 6 | 1171 | 99.9% | | test file | st pass / total | mt pass / total | | --- | --- | --- | | `filter-audio.mak` | 53 / 53 | 53 / 53 | -| `filter-video.mak` | 88 / 91 | 88 / 91 | -| `ffmpeg.mak` | 23 / 23 | 23 / 23 | -| `libswscale.mak` | 2 / 2 | 2 / 2 | +| `filter-video.mak` | 120 / 126 | 120 / 126 | +| `ffmpeg.mak` | 78 / 78 | 78 / 78 | +| `libswscale.mak` | 6 / 6 | 6 / 6 | | `libswresample.mak` | 1 / 1 | 1 / 1 | | `demux.mak` | 54 / 54 | 54 / 54 | -| `mov.mak` | 29 / 29 | 29 / 29 | +| `mov.mak` | 30 / 30 | 30 / 30 | | `qt.mak` | 18 / 18 | 18 / 18 | -| `matroska.mak` | 7 / 8 | 7 / 8 | +| `matroska.mak` | 8 / 9 | 8 / 9 | | `mxf.mak` | 6 / 6 | 6 / 6 | | `gif.mak` | 5 / 5 | 5 / 5 | | `apng.mak` | 5 / 5 | 5 / 5 | -| `h264.mak` | 207 / 207 | 207 / 207 | -| `hevc.mak` | 16 / 16 | 16 / 16 | -| `vpx.mak` | 24 / 24 | 24 / 24 | -| `vvc.mak` | 2 / 2 | 2 / 2 | +| `h264.mak` | 210 / 210 | 210 / 210 | +| `hevc.mak` | 18 / 18 | 18 / 18 | +| `vpx.mak` | 25 / 25 | 25 / 25 | +| `vvc.mak` | 4 / 4 | 4 / 4 | | `mpeg4.mak` | 6 / 6 | 6 / 6 | -| `video.mak` | 122 / 122 | 122 / 122 | +| `video.mak` | 123 / 123 | 123 / 123 | | `image.mak` | 133 / 133 | 133 / 133 | | `bmp.mak` | 13 / 13 | 13 / 13 | | `prores.mak` | 10 / 10 | 10 / 10 | @@ -41,20 +41,23 @@ FFmpeg n9.0.2. The pass rate is pass divided by pass plus fail. A skipped test i | `lossless-video.mak` | 16 / 16 | 16 / 16 | | `jpeg2000.mak` | 15 / 15 | 15 / 15 | | `hap.mak` | 13 / 13 | 13 / 13 | -| `ac3.mak` | 3 / 3 | 3 / 3 | -| `acodec.mak` | 1 / 1 | 1 / 1 | +| `ac3.mak` | 4 / 4 | 4 / 4 | +| `acodec.mak` | 2 / 2 | 2 / 2 | | `opus.mak` | 1 / 1 | 1 / 1 | -| `audio.mak` | 9 / 9 | 9 / 9 | -| `adpcm.mak` | 52 / 52 | 52 / 52 | -| `pcm.mak` | 8 / 8 | 8 / 8 | +| `audio.mak` | 11 / 11 | 11 / 11 | +| `adpcm.mak` | 54 / 54 | 54 / 54 | +| `pcm.mak` | 9 / 9 | 9 / 9 | | `voice.mak` | 12 / 12 | 12 / 12 | | `microsoft.mak` | 25 / 25 | 25 / 25 | | `lossless-audio.mak` | 13 / 13 | 13 / 13 | -| `wavpack.mak` | 29 / 29 | 29 / 29 | -| `dca.mak` | 3 / 3 | 3 / 3 | +| `wavpack.mak` | 31 / 31 | 31 / 31 | +| `dca.mak` | 1 / 1 | 1 / 1 | #### st core, full subset, failing and skipped tests +- `fate-filter-scale_cuda-resize-step-p010` fails: ffmpeg exited -28 +- `fate-filter-fps-single-zero-duration` skipped: no reference file +- `fate-filter-fps-single-cross-start` skipped: no reference file - `fate-filter-frei0r-filter` skipped: known failure: frei0r is not built into the cores - `fate-filter-frei0r-filter-unaligned` skipped: known failure: frei0r is not built into the cores - `fate-filter-frei0r-source` skipped: known failure: frei0r is not built into the cores @@ -62,6 +65,9 @@ FFmpeg n9.0.2. The pass rate is pass divided by pass plus fail. A skipped test i #### mt core, full subset, failing and skipped tests +- `fate-filter-scale_cuda-resize-step-p010` fails: ffmpeg exited -28 +- `fate-filter-fps-single-zero-duration` skipped: no reference file +- `fate-filter-fps-single-cross-start` skipped: no reference file - `fate-filter-frei0r-filter` skipped: known failure: frei0r is not built into the cores - `fate-filter-frei0r-filter-unaligned` skipped: known failure: frei0r is not built into the cores - `fate-filter-frei0r-source` skipped: known failure: frei0r is not built into the cores @@ -76,26 +82,26 @@ FFmpeg n9.0.2. The pass rate is pass divided by pass plus fail. A skipped test i | test file | st pass / total | mt pass / total | | --- | --- | --- | -| `filter-audio.mak` | 12 / 12 | 12 / 12 | -| `filter-video.mak` | 12 / 12 | 12 / 12 | -| `ffmpeg.mak` | 5 / 5 | 5 / 5 | -| `libswscale.mak` | 2 / 2 | 2 / 2 | +| `filter-audio.mak` | 9 / 9 | 9 / 9 | +| `filter-video.mak` | 8 / 8 | 8 / 8 | +| `ffmpeg.mak` | 6 / 6 | 6 / 6 | +| `libswscale.mak` | 6 / 6 | 6 / 6 | | `libswresample.mak` | 1 / 1 | 1 / 1 | | `mov.mak` | 3 / 3 | 3 / 3 | -| `ac3.mak` | 2 / 2 | 2 / 2 | -| `acodec.mak` | 1 / 1 | 1 / 1 | +| `ac3.mak` | 3 / 3 | 3 / 3 | +| `acodec.mak` | 2 / 2 | 2 / 2 | | `opus.mak` | 1 / 1 | 1 / 1 | | `voice.mak` | 1 / 1 | 1 / 1 | ## Performance -Median of five runs on one GitHub Actions runner, against native ffmpeg version 6.1.1-3ubuntu5 from the runner image, not the pinned tag. Most cases transcode a 1 second H.264 clip, so startup is a large part of their native time. The vp8-720p-to-mp4 case transcodes 10 seconds of 720p VP8 and is measured only on manual CI runs with subset=full. A "-" means the case has no result for that core yet. +Median of five runs on one GitHub Actions runner, against native ffmpeg version 8.0.1-3ubuntu2 from the runner image, not the pinned tag. Most cases transcode a 1 second H.264 clip, so startup is a large part of their native time. The vp8-720p-to-mp4 case transcodes 10 seconds of 720p VP8 and is measured only on manual CI runs with subset=full. A "-" means the case has no result for that core yet. | case | native (ms) | st (ms) | st ratio | st peak RSS (MB) | mt (ms) | mt ratio | mt peak RSS (MB) | jspi (ms) | jspi ratio | jspi peak RSS (MB) | | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | -| h264-to-vp9 | 120 | 520 | 4.33x | 216 | 1240 | 10.33x | 639 | 430 | 3.58x | 175 | -| h264-to-x264 | 90 | 540 | 6.00x | 239 | 1200 | 13.33x | 650 | 460 | 5.11x | 200 | -| h264-to-mpeg4 | 90 | 380 | 4.22x | 173 | 1110 | 12.33x | 613 | 280 | 3.11x | 147 | -| scale-half | 100 | 540 | 5.40x | 227 | 1200 | 12.00x | 645 | 450 | 4.50x | 196 | -| h264-remux-mkv | 80 | 270 | 3.38x | 156 | 1100 | 13.75x | 575 | 220 | 2.75x | 139 | -| vp8-720p-to-mp4 | 5250 | 69180 | 13.18x | 408 | 31480 | 6.00x | 841 | 66410 | 12.65x | 343 | +| h264-to-vp9 | 110 | 530 | 4.82x | 216 | 1200 | 10.91x | 637 | 420 | 3.82x | 176 | +| h264-to-x264 | 80 | 530 | 6.63x | 242 | 1250 | 15.63x | 666 | 440 | 5.50x | 201 | +| h264-to-mpeg4 | 80 | 380 | 4.75x | 172 | 1120 | 14.00x | 621 | 260 | 3.25x | 148 | +| scale-half | 80 | 510 | 6.38x | 233 | 1150 | 14.38x | 649 | 450 | 5.63x | 198 | +| h264-remux-mkv | 70 | 260 | 3.71x | 158 | 1050 | 15.00x | 576 | 220 | 3.14x | 140 | +| vp8-720p-to-mp4 | 5120 | 68900 | 13.46x | 408 | 31590 | 6.17x | 834 | 66610 | 13.01x | 363 | diff --git a/baseline/bench.json b/baseline/bench.json index 11cca3de242..4d19bc69bb7 100644 --- a/baseline/bench.json +++ b/baseline/bench.json @@ -1,118 +1,118 @@ { - "native": "ffmpeg version 6.1.1-3ubuntu5", + "native": "ffmpeg version 8.0.1-3ubuntu2", "cores": { "st": { "h264-to-vp9": { - "nativeMs": 120, - "wasmMs": 520, - "ratio": 4.33, - "peakRssKb": 220868 + "nativeMs": 110, + "wasmMs": 530, + "ratio": 4.82, + "peakRssKb": 220740 }, "h264-to-x264": { - "nativeMs": 90, - "wasmMs": 540, - "ratio": 6, - "peakRssKb": 244716 + "nativeMs": 80, + "wasmMs": 530, + "ratio": 6.63, + "peakRssKb": 247560 }, "h264-to-mpeg4": { - "nativeMs": 90, + "nativeMs": 80, "wasmMs": 380, - "ratio": 4.22, - "peakRssKb": 177584 + "ratio": 4.75, + "peakRssKb": 175756 }, "scale-half": { - "nativeMs": 100, - "wasmMs": 540, - "ratio": 5.4, - "peakRssKb": 232252 + "nativeMs": 80, + "wasmMs": 510, + "ratio": 6.38, + "peakRssKb": 238692 }, "h264-remux-mkv": { - "nativeMs": 80, - "wasmMs": 270, - "ratio": 3.38, - "peakRssKb": 159316 + "nativeMs": 70, + "wasmMs": 260, + "ratio": 3.71, + "peakRssKb": 161532 }, "vp8-720p-to-mp4": { - "nativeMs": 5250, - "wasmMs": 69180, - "ratio": 13.18, - "peakRssKb": 417432 + "nativeMs": 5120, + "wasmMs": 68900, + "ratio": 13.46, + "peakRssKb": 418060 } }, "mt": { "h264-to-vp9": { - "nativeMs": 120, - "wasmMs": 1240, - "ratio": 10.33, - "peakRssKb": 654536 + "nativeMs": 110, + "wasmMs": 1200, + "ratio": 10.91, + "peakRssKb": 652744 }, "h264-to-x264": { - "nativeMs": 90, - "wasmMs": 1200, - "ratio": 13.33, - "peakRssKb": 665868 + "nativeMs": 80, + "wasmMs": 1250, + "ratio": 15.63, + "peakRssKb": 682456 }, "h264-to-mpeg4": { - "nativeMs": 90, - "wasmMs": 1110, - "ratio": 12.33, - "peakRssKb": 627876 + "nativeMs": 80, + "wasmMs": 1120, + "ratio": 14, + "peakRssKb": 635620 }, "scale-half": { - "nativeMs": 100, - "wasmMs": 1200, - "ratio": 12, - "peakRssKb": 660668 + "nativeMs": 80, + "wasmMs": 1150, + "ratio": 14.38, + "peakRssKb": 664668 }, "h264-remux-mkv": { - "nativeMs": 80, - "wasmMs": 1100, - "ratio": 13.75, - "peakRssKb": 589080 + "nativeMs": 70, + "wasmMs": 1050, + "ratio": 15, + "peakRssKb": 589652 }, "vp8-720p-to-mp4": { - "nativeMs": 5250, - "wasmMs": 31480, - "ratio": 6, - "peakRssKb": 860696 + "nativeMs": 5120, + "wasmMs": 31590, + "ratio": 6.17, + "peakRssKb": 853672 } }, "jspi": { "h264-to-vp9": { - "nativeMs": 120, - "wasmMs": 430, - "ratio": 3.58, - "peakRssKb": 178952 + "nativeMs": 110, + "wasmMs": 420, + "ratio": 3.82, + "peakRssKb": 180448 }, "h264-to-x264": { - "nativeMs": 90, - "wasmMs": 460, - "ratio": 5.11, - "peakRssKb": 205132 + "nativeMs": 80, + "wasmMs": 440, + "ratio": 5.5, + "peakRssKb": 206020 }, "h264-to-mpeg4": { - "nativeMs": 90, - "wasmMs": 280, - "ratio": 3.11, - "peakRssKb": 150740 + "nativeMs": 80, + "wasmMs": 260, + "ratio": 3.25, + "peakRssKb": 151568 }, "scale-half": { - "nativeMs": 100, + "nativeMs": 80, "wasmMs": 450, - "ratio": 4.5, - "peakRssKb": 200868 + "ratio": 5.63, + "peakRssKb": 203100 }, "h264-remux-mkv": { - "nativeMs": 80, + "nativeMs": 70, "wasmMs": 220, - "ratio": 2.75, - "peakRssKb": 141924 + "ratio": 3.14, + "peakRssKb": 142868 }, "vp8-720p-to-mp4": { - "nativeMs": 5250, - "wasmMs": 66410, - "ratio": 12.65, - "peakRssKb": 351280 + "nativeMs": 5120, + "wasmMs": 66610, + "ratio": 13.01, + "peakRssKb": 371392 } } } diff --git a/baseline/fate.json b/baseline/fate.json index 9aa9a054ca0..2ebcabe5f77 100644 --- a/baseline/fate.json +++ b/baseline/fate.json @@ -1,5 +1,5 @@ { - "tag": "n9.0.2", + "tag": "n9.1", "cores": { "mt": { "fast": { @@ -13,10 +13,7 @@ "filter-afade-iqsin", "filter-afade-esin", "filter-afade-hsin", - "filter-afade-exp", - "filter-afade-log", - "filter-agate", - "filter-alimiter" + "filter-afade-exp" ] }, "filter-video.mak": { @@ -28,11 +25,7 @@ "filter-allrgb", "filter-allyuv", "filter-pal75bars", - "filter-pal100bars", - "filter-rgbtestsrc", - "filter-rgbtestsrc-rgba", - "filter-rgbtestsrc-gbrp", - "filter-rgbtestsrc-gbrap" + "filter-pal100bars" ] }, "ffmpeg.mak": { @@ -40,6 +33,7 @@ "ffmpeg-filter_complex", "ffmpeg-filter_complex_audio", "ffmpeg-lavfi", + "ffmpeg-chroma-location", "shortest", "ffmpeg-filter-in-eof" ] @@ -47,7 +41,11 @@ "libswscale.mak": { "pass": [ "sws-yuv-colorspace", - "sws-yuv-range" + "sws-yuv-range", + "sws-monob-ed-tail", + "sws-monow-ed-tail", + "sws-monob-ed-tail-bilinear", + "sws-monow-ed-tail-bilinear" ] }, "libswresample.mak": { @@ -65,12 +63,14 @@ "ac3.mak": { "pass": [ "ac3-fixed-encode", - "ac3-fixed-encode-2" + "ac3-fixed-encode-2", + "ac3-fixed-encode-3" ] }, "acodec.mak": { "pass": [ - "acodec-dca" + "acodec-dca", + "acodec-dca-lfe" ] }, "opus.mak": { @@ -197,6 +197,7 @@ "filter-yuvtestsrc-xv36", "filter-yuvtestsrc-xv48", "filter-scale-fast-bilinear-wide-edge", + "filter-scale-fast-bilinear-wide-wrap", "filter-feedback-hflip", "filter-framerate-up", "filter-framerate-down", @@ -204,6 +205,9 @@ "filter-framerate-12bit-down", "filter-minterpolate-up", "filter-minterpolate-down", + "filter-thistogram-scroll", + "filter-photosensitivity-blend", + "filter-blend-expr-clipping", "filter-tpad-add", "filter-tpad-clone", "filter-tpad-add-duration", @@ -219,6 +223,8 @@ "filter-mpdecimate-keep1", "filter-mpdecimate-maxdrop-pos", "filter-mpdecimate-maxdrop-neg", + "filter-mpdecimate-mode-1", + "filter-mpdecimate-mode-1-min-3", "filter-fps-up", "filter-fps-up-round-down", "filter-fps-up-round-up", @@ -228,12 +234,43 @@ "filter-fps-down-eof-pass", "filter-fps-start-drop", "filter-fps-start-fill", + "filter-fps-single", + "filter-fps-single-before-start", + "filter-fps-single-end-at-start", "filter-fps-cfr", "filter-fps", + "filter-scalechroma-yuyv422", + "filter-scalechroma-uyvy422", + "filter-scalechroma-yuyv422-topleft", + "filter-scalechroma-nv24", + "filter-scalechroma-infer", "filter-scalechroma", - "filter-scale-premultiply" + "filter-scalechroma-alphablend", + "filter-scalechroma-alphablend-scaled", + "filter-scalechroma-matrix", + "filter-scalechroma-downscale", + "filter-scalechroma-setparams", + "filter-scalechroma-ref", + "filter-scalechroma-untagged", + "filter-scalechroma-untagged-422", + "filter-noformat-chroma", + "filter-zscale-chroma-input-override", + "filter-scale-premultiply", + "filter-xfade-slideleft", + "filter-xfade-slideup", + "filter-xfade-revealleft", + "filter-xfade-revealup", + "filter-xfade-squeezeh", + "filter-xfade-squeezev", + "filter-xfade-slideup16", + "filter-xfade-duration0" ], + "fail": { + "filter-scale_cuda-resize-step-p010": "ffmpeg exited -28" + }, "skip": { + "filter-fps-single-zero-duration": "no reference file", + "filter-fps-single-cross-start": "no reference file", "filter-frei0r-filter": "known failure: frei0r is not built into the cores", "filter-frei0r-filter-unaligned": "known failure: frei0r is not built into the cores", "filter-frei0r-source": "known failure: frei0r is not built into the cores" @@ -244,6 +281,7 @@ "ffmpeg-filter_complex", "ffmpeg-filter_complex_audio", "ffmpeg-lavfi", + "ffmpeg-chroma-location", "force_key_frames-source", "force_key_frames-source-drop", "force_key_frames-source-dup", @@ -256,6 +294,60 @@ "limited_input_seek-copyts", "ffmpeg-streamloop-copy", "ffmpeg-setts-bsf", + "ffmpeg-trim-bsf-pts", + "ffmpeg-trim-bsf-dts", + "ffmpeg-trim-bsf-dts-pts", + "ffmpeg-trim-bsf-pts-dts", + "ffmpeg-trim-bsf-pts-duration", + "ffmpeg-trim-bsf-dts-duration", + "ffmpeg-trim-bsf-pkt", + "ffmpeg-trim-bsf-samples", + "ffmpeg-trim-bsf-msec", + "ffmpeg-trim-bsf-rel", + "ffmpeg-trim-bsf-duration-zero", + "ffmpeg-trim-bsf-pkt-rel", + "ffmpeg-trim-bsf-untrimmed", + "ffmpeg-trim-bsf-skip-samples", + "ffmpeg-trim-bsf-gap-end", + "ffmpeg-trim-bsf-gap-start", + "ffmpeg-trim-bsf-opus-gap-end", + "ffmpeg-trim-bsf-opus-gap-start", + "ffmpeg-trim-bsf-priming", + "ffmpeg-trim-bsf-priming-nodur", + "ffmpeg-trim-bsf-priming-gap", + "ffmpeg-trim-bsf-priming-nopts", + "ffmpeg-trim-bsf-priming-gap-duration", + "ffmpeg-trim-bsf-priming-duration", + "ffmpeg-trim-bsf-priming-untrimmed", + "ffmpeg-side-data-bsf-remove", + "ffmpeg-side-data-bsf-select", + "ffmpeg-side-data-bsf-select-none", + "ffmpeg-trim-bsf-skip-samples-empty", + "ffmpeg-trim-bsf-video-pts", + "ffmpeg-trim-bsf-video-dts", + "ffmpeg-trim-bsf-video-dts-pts", + "ffmpeg-trim-bsf-video-pts-dts", + "ffmpeg-trim-bsf-video-dts-duration", + "ffmpeg-trim-bsf-video-pts-duration", + "ffmpeg-trim-bsf-video-pkt", + "ffmpeg-trim-bsf-video-samples", + "ffmpeg-trim-bsf-video-untrimmed", + "ffmpeg-trim-bsf-video-reordered", + "ffmpeg-trim-bsf-video-preroll", + "ffmpeg-trim-bsf-video-preroll-overflow", + "ffmpeg-trim-bsf-video-preroll-decoded", + "ffmpeg-trim-bsf-video-preroll-keyframe", + "ffmpeg-trim-bsf-video-preroll-on-keyframe", + "ffmpeg-trim-bsf-video-flush", + "ffmpeg-trim-bsf-video-flush-rel", + "ffmpeg-trim-bsf-video-mixed-axes", + "ffmpeg-trim-bsf-video-mixed-axes-empty", + "ffmpeg-trim-bsf-video-nopts-duration", + "ffmpeg-trim-bsf-video-nopts-rel", + "ffmpeg-trim-bsf-video-nopts-empty", + "ffmpeg-trim-bsf-video-partial-dts-duration", + "ffmpeg-trim-bsf-video-reordered-nodts", + "ffmpeg-trim-bsf-video-reordered-count", "time_base", "ffmpeg-input-r", "ffmpeg-bsf-input", @@ -269,7 +361,11 @@ "libswscale.mak": { "pass": [ "sws-yuv-colorspace", - "sws-yuv-range" + "sws-yuv-range", + "sws-monob-ed-tail", + "sws-monow-ed-tail", + "sws-monob-ed-tail-bilinear", + "sws-monow-ed-tail-bilinear" ] }, "libswresample.mak": { @@ -359,6 +455,7 @@ "mov-bbi-elst-starts-b", "mov-neg-firstpts-discard-frames", "mov-stream-shorter-than-movie", + "mov-aac-2048-priming-seek", "mov-gpmf-remux", "mov-avif-demux-still-image-1-item", "mov-avif-demux-still-image-multiple-items", @@ -398,7 +495,8 @@ "matroska-wavpack-missing-codecprivate", "matroska-zlib-decompression", "matroska-lzo-decompression", - "matroska-flac-channel-mapping" + "matroska-flac-channel-mapping", + "matroska-track-timescale" ], "skip": { "matroska-prores-header-insertion-bz2": "known failure: needs bzip2, which the cores are built without" @@ -631,6 +729,9 @@ "h264-attachment-631", "h264-skip-nokey", "h264-skip-nointra", + "h264-data-partitioning", + "h264-data-partitioning-ab", + "h264-data-partitioning-cip", "h264-intra-refresh-recovery", "h264-invalid-ref-mod", "h264-lossless", @@ -651,6 +752,8 @@ "hevc-bsf-dovi-split-el", "hevc-bsf-dovi-split-el-rpu", "hevc-skiploopfilter", + "hevc-skipframe-dslice", + "hevc-skipframe-slices", "hevc-extradata-reload", "hevc-cabac-tudepth", "hevc-small422chroma", @@ -688,13 +791,16 @@ "vp8-sign-bias", "vp8-size-change", "vp9-05-resize", + "vp9-trim-preroll", "vp9-superframe-bsf" ] }, "vvc.mak": { "pass": [ "vvc-frames-with-ltr", - "vvc-wpp-single-slice-pic" + "vvc-wpp-single-slice-pic", + "vvc-curr-ltrp-alias", + "vvc-mv-clip-wrap" ] }, "mpeg4.mak": { @@ -830,7 +936,8 @@ "smvjpeg", "vqc", "rv60-512x512", - "rv60-72x72" + "rv60-72x72", + "imm6" ] }, "image.mak": { @@ -1100,12 +1207,14 @@ "pass": [ "ac3-fixed-encode", "ac3-fixed-encode-2", + "ac3-fixed-encode-3", "eac3-core-bsf" ] }, "acodec.mak": { "pass": [ - "acodec-dca" + "acodec-dca", + "acodec-dca-lfe" ] }, "opus.mak": { @@ -1119,8 +1228,10 @@ "delphine-cin-audio", "dss-lp", "dss-sp", + "dsf-dst-dsd", "on2avc", "paf-audio", + "rhetorex", "sierra-vmd-audio", "smacker-audio", "ws_snd" @@ -1143,6 +1254,8 @@ "adpcm-ea-r3", "adpcm-ima-amv", "adpcm-ima-apc", + "adpcm-ima-citrix-mono", + "adpcm-ima-citrix-stereo", "adpcm-ima-dk3", "adpcm-ima-dk4", "adpcm-ima-ea-eacs", @@ -1186,6 +1299,7 @@ "pass": [ "iff-pcm", "pcm_dvd", + "pcm_dvda", "pcm-planar", "pcm_s16be-stereo", "pcm_s16le-stereo", @@ -1265,6 +1379,8 @@ "wavpack-lossless-32bit", "wavpack-lossless-float", "wavpack-lossless-dsd", + "wavpack-dsd", + "wavpack-dsd-pcm", "wavpack-lossy-8bit", "wavpack-lossy-16bit", "wavpack-lossy-24bit", @@ -1291,8 +1407,6 @@ }, "dca.mak": { "pass": [ - "dca-xll", - "dca-xll-coded", "dca-core-bsf" ] } @@ -1310,10 +1424,7 @@ "filter-afade-iqsin", "filter-afade-esin", "filter-afade-hsin", - "filter-afade-exp", - "filter-afade-log", - "filter-agate", - "filter-alimiter" + "filter-afade-exp" ] }, "filter-video.mak": { @@ -1325,11 +1436,7 @@ "filter-allrgb", "filter-allyuv", "filter-pal75bars", - "filter-pal100bars", - "filter-rgbtestsrc", - "filter-rgbtestsrc-rgba", - "filter-rgbtestsrc-gbrp", - "filter-rgbtestsrc-gbrap" + "filter-pal100bars" ] }, "ffmpeg.mak": { @@ -1337,6 +1444,7 @@ "ffmpeg-filter_complex", "ffmpeg-filter_complex_audio", "ffmpeg-lavfi", + "ffmpeg-chroma-location", "shortest", "ffmpeg-filter-in-eof" ] @@ -1344,7 +1452,11 @@ "libswscale.mak": { "pass": [ "sws-yuv-colorspace", - "sws-yuv-range" + "sws-yuv-range", + "sws-monob-ed-tail", + "sws-monow-ed-tail", + "sws-monob-ed-tail-bilinear", + "sws-monow-ed-tail-bilinear" ] }, "libswresample.mak": { @@ -1362,12 +1474,14 @@ "ac3.mak": { "pass": [ "ac3-fixed-encode", - "ac3-fixed-encode-2" + "ac3-fixed-encode-2", + "ac3-fixed-encode-3" ] }, "acodec.mak": { "pass": [ - "acodec-dca" + "acodec-dca", + "acodec-dca-lfe" ] }, "opus.mak": { @@ -1494,6 +1608,7 @@ "filter-yuvtestsrc-xv36", "filter-yuvtestsrc-xv48", "filter-scale-fast-bilinear-wide-edge", + "filter-scale-fast-bilinear-wide-wrap", "filter-feedback-hflip", "filter-framerate-up", "filter-framerate-down", @@ -1501,6 +1616,9 @@ "filter-framerate-12bit-down", "filter-minterpolate-up", "filter-minterpolate-down", + "filter-thistogram-scroll", + "filter-photosensitivity-blend", + "filter-blend-expr-clipping", "filter-tpad-add", "filter-tpad-clone", "filter-tpad-add-duration", @@ -1516,6 +1634,8 @@ "filter-mpdecimate-keep1", "filter-mpdecimate-maxdrop-pos", "filter-mpdecimate-maxdrop-neg", + "filter-mpdecimate-mode-1", + "filter-mpdecimate-mode-1-min-3", "filter-fps-up", "filter-fps-up-round-down", "filter-fps-up-round-up", @@ -1525,12 +1645,43 @@ "filter-fps-down-eof-pass", "filter-fps-start-drop", "filter-fps-start-fill", + "filter-fps-single", + "filter-fps-single-before-start", + "filter-fps-single-end-at-start", "filter-fps-cfr", "filter-fps", + "filter-scalechroma-yuyv422", + "filter-scalechroma-uyvy422", + "filter-scalechroma-yuyv422-topleft", + "filter-scalechroma-nv24", + "filter-scalechroma-infer", "filter-scalechroma", - "filter-scale-premultiply" + "filter-scalechroma-alphablend", + "filter-scalechroma-alphablend-scaled", + "filter-scalechroma-matrix", + "filter-scalechroma-downscale", + "filter-scalechroma-setparams", + "filter-scalechroma-ref", + "filter-scalechroma-untagged", + "filter-scalechroma-untagged-422", + "filter-noformat-chroma", + "filter-zscale-chroma-input-override", + "filter-scale-premultiply", + "filter-xfade-slideleft", + "filter-xfade-slideup", + "filter-xfade-revealleft", + "filter-xfade-revealup", + "filter-xfade-squeezeh", + "filter-xfade-squeezev", + "filter-xfade-slideup16", + "filter-xfade-duration0" ], + "fail": { + "filter-scale_cuda-resize-step-p010": "ffmpeg exited -28" + }, "skip": { + "filter-fps-single-zero-duration": "no reference file", + "filter-fps-single-cross-start": "no reference file", "filter-frei0r-filter": "known failure: frei0r is not built into the cores", "filter-frei0r-filter-unaligned": "known failure: frei0r is not built into the cores", "filter-frei0r-source": "known failure: frei0r is not built into the cores" @@ -1541,6 +1692,7 @@ "ffmpeg-filter_complex", "ffmpeg-filter_complex_audio", "ffmpeg-lavfi", + "ffmpeg-chroma-location", "force_key_frames-source", "force_key_frames-source-drop", "force_key_frames-source-dup", @@ -1553,6 +1705,60 @@ "limited_input_seek-copyts", "ffmpeg-streamloop-copy", "ffmpeg-setts-bsf", + "ffmpeg-trim-bsf-pts", + "ffmpeg-trim-bsf-dts", + "ffmpeg-trim-bsf-dts-pts", + "ffmpeg-trim-bsf-pts-dts", + "ffmpeg-trim-bsf-pts-duration", + "ffmpeg-trim-bsf-dts-duration", + "ffmpeg-trim-bsf-pkt", + "ffmpeg-trim-bsf-samples", + "ffmpeg-trim-bsf-msec", + "ffmpeg-trim-bsf-rel", + "ffmpeg-trim-bsf-duration-zero", + "ffmpeg-trim-bsf-pkt-rel", + "ffmpeg-trim-bsf-untrimmed", + "ffmpeg-trim-bsf-skip-samples", + "ffmpeg-trim-bsf-gap-end", + "ffmpeg-trim-bsf-gap-start", + "ffmpeg-trim-bsf-opus-gap-end", + "ffmpeg-trim-bsf-opus-gap-start", + "ffmpeg-trim-bsf-priming", + "ffmpeg-trim-bsf-priming-nodur", + "ffmpeg-trim-bsf-priming-gap", + "ffmpeg-trim-bsf-priming-nopts", + "ffmpeg-trim-bsf-priming-gap-duration", + "ffmpeg-trim-bsf-priming-duration", + "ffmpeg-trim-bsf-priming-untrimmed", + "ffmpeg-side-data-bsf-remove", + "ffmpeg-side-data-bsf-select", + "ffmpeg-side-data-bsf-select-none", + "ffmpeg-trim-bsf-skip-samples-empty", + "ffmpeg-trim-bsf-video-pts", + "ffmpeg-trim-bsf-video-dts", + "ffmpeg-trim-bsf-video-dts-pts", + "ffmpeg-trim-bsf-video-pts-dts", + "ffmpeg-trim-bsf-video-dts-duration", + "ffmpeg-trim-bsf-video-pts-duration", + "ffmpeg-trim-bsf-video-pkt", + "ffmpeg-trim-bsf-video-samples", + "ffmpeg-trim-bsf-video-untrimmed", + "ffmpeg-trim-bsf-video-reordered", + "ffmpeg-trim-bsf-video-preroll", + "ffmpeg-trim-bsf-video-preroll-overflow", + "ffmpeg-trim-bsf-video-preroll-decoded", + "ffmpeg-trim-bsf-video-preroll-keyframe", + "ffmpeg-trim-bsf-video-preroll-on-keyframe", + "ffmpeg-trim-bsf-video-flush", + "ffmpeg-trim-bsf-video-flush-rel", + "ffmpeg-trim-bsf-video-mixed-axes", + "ffmpeg-trim-bsf-video-mixed-axes-empty", + "ffmpeg-trim-bsf-video-nopts-duration", + "ffmpeg-trim-bsf-video-nopts-rel", + "ffmpeg-trim-bsf-video-nopts-empty", + "ffmpeg-trim-bsf-video-partial-dts-duration", + "ffmpeg-trim-bsf-video-reordered-nodts", + "ffmpeg-trim-bsf-video-reordered-count", "time_base", "ffmpeg-input-r", "ffmpeg-bsf-input", @@ -1566,7 +1772,11 @@ "libswscale.mak": { "pass": [ "sws-yuv-colorspace", - "sws-yuv-range" + "sws-yuv-range", + "sws-monob-ed-tail", + "sws-monow-ed-tail", + "sws-monob-ed-tail-bilinear", + "sws-monow-ed-tail-bilinear" ] }, "libswresample.mak": { @@ -1656,6 +1866,7 @@ "mov-bbi-elst-starts-b", "mov-neg-firstpts-discard-frames", "mov-stream-shorter-than-movie", + "mov-aac-2048-priming-seek", "mov-gpmf-remux", "mov-avif-demux-still-image-1-item", "mov-avif-demux-still-image-multiple-items", @@ -1695,7 +1906,8 @@ "matroska-wavpack-missing-codecprivate", "matroska-zlib-decompression", "matroska-lzo-decompression", - "matroska-flac-channel-mapping" + "matroska-flac-channel-mapping", + "matroska-track-timescale" ], "skip": { "matroska-prores-header-insertion-bz2": "known failure: needs bzip2, which the cores are built without" @@ -1928,6 +2140,9 @@ "h264-attachment-631", "h264-skip-nokey", "h264-skip-nointra", + "h264-data-partitioning", + "h264-data-partitioning-ab", + "h264-data-partitioning-cip", "h264-intra-refresh-recovery", "h264-invalid-ref-mod", "h264-lossless", @@ -1948,6 +2163,8 @@ "hevc-bsf-dovi-split-el", "hevc-bsf-dovi-split-el-rpu", "hevc-skiploopfilter", + "hevc-skipframe-dslice", + "hevc-skipframe-slices", "hevc-extradata-reload", "hevc-cabac-tudepth", "hevc-small422chroma", @@ -1985,13 +2202,16 @@ "vp8-sign-bias", "vp8-size-change", "vp9-05-resize", + "vp9-trim-preroll", "vp9-superframe-bsf" ] }, "vvc.mak": { "pass": [ "vvc-frames-with-ltr", - "vvc-wpp-single-slice-pic" + "vvc-wpp-single-slice-pic", + "vvc-curr-ltrp-alias", + "vvc-mv-clip-wrap" ] }, "mpeg4.mak": { @@ -2127,7 +2347,8 @@ "smvjpeg", "vqc", "rv60-512x512", - "rv60-72x72" + "rv60-72x72", + "imm6" ] }, "image.mak": { @@ -2397,12 +2618,14 @@ "pass": [ "ac3-fixed-encode", "ac3-fixed-encode-2", + "ac3-fixed-encode-3", "eac3-core-bsf" ] }, "acodec.mak": { "pass": [ - "acodec-dca" + "acodec-dca", + "acodec-dca-lfe" ] }, "opus.mak": { @@ -2416,8 +2639,10 @@ "delphine-cin-audio", "dss-lp", "dss-sp", + "dsf-dst-dsd", "on2avc", "paf-audio", + "rhetorex", "sierra-vmd-audio", "smacker-audio", "ws_snd" @@ -2440,6 +2665,8 @@ "adpcm-ea-r3", "adpcm-ima-amv", "adpcm-ima-apc", + "adpcm-ima-citrix-mono", + "adpcm-ima-citrix-stereo", "adpcm-ima-dk3", "adpcm-ima-dk4", "adpcm-ima-ea-eacs", @@ -2483,6 +2710,7 @@ "pass": [ "iff-pcm", "pcm_dvd", + "pcm_dvda", "pcm-planar", "pcm_s16be-stereo", "pcm_s16le-stereo", @@ -2562,6 +2790,8 @@ "wavpack-lossless-32bit", "wavpack-lossless-float", "wavpack-lossless-dsd", + "wavpack-dsd", + "wavpack-dsd-pcm", "wavpack-lossy-8bit", "wavpack-lossy-16bit", "wavpack-lossy-24bit", @@ -2588,8 +2818,6 @@ }, "dca.mak": { "pass": [ - "dca-xll", - "dca-xll-coded", "dca-core-bsf" ] } diff --git a/build/ffmpeg-wasm.sh b/build/ffmpeg-wasm.sh index f22bc49dac6..aead1dd5d29 100755 --- a/build/ffmpeg-wasm.sh +++ b/build/ffmpeg-wasm.sh @@ -7,7 +7,7 @@ set -euo pipefail EXPORT_NAME="createFFmpegCore" -# Both cores now build FFmpeg n9.0.2 (which dropped libpostproc) and link the +# Both cores now build FFmpeg n9.1 (libpostproc is gone since 9.0) and link the # fftools objects that build/ffmpeg.sh already compiled from FFmpeg's own # patched source tree (see build/patches/n9). The st core additionally links # a small cooperative pthread shim (src/pthread-fiber) so fftools' scheduler diff --git a/build/patches/n9/fftools-wasm.patch b/build/patches/n9/fftools-wasm.patch index 3abb8f1677e..422bc487acd 100644 --- a/build/patches/n9/fftools-wasm.patch +++ b/build/patches/n9/fftools-wasm.patch @@ -1,6 +1,7 @@ -diff -ruN a/fftools/cmdutils.c b/fftools/cmdutils.c ---- a/fftools/cmdutils.c 2026-09-17 18:19:50.000000000 -0500 -+++ b/fftools/cmdutils.c 2026-10-05 18:57:00.119047436 -0500 +diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c +index 116988e..23da068 100644 +--- a/fftools/cmdutils.c ++++ b/fftools/cmdutils.c @@ -29,6 +29,8 @@ Studio) will not omit unused inline functions and create undefined references to libraries that are not being built. */ @@ -8,9 +9,9 @@ diff -ruN a/fftools/cmdutils.c b/fftools/cmdutils.c +#include + #include "config.h" - #include "compat/va_copy.h" #include "libavformat/avformat.h" -@@ -59,6 +61,20 @@ + #include "libswscale/swscale.h" +@@ -57,6 +59,20 @@ AVDictionary *format_opts, *codec_opts; int hide_banner = 0; @@ -31,10 +32,11 @@ diff -ruN a/fftools/cmdutils.c b/fftools/cmdutils.c void uninit_opts(void) { av_dict_free(&swr_opts); -diff -ruN a/fftools/cmdutils.h b/fftools/cmdutils.h ---- a/fftools/cmdutils.h 2026-09-17 18:19:50.000000000 -0500 -+++ b/fftools/cmdutils.h 2026-10-05 18:57:00.120433352 -0500 -@@ -557,4 +557,20 @@ +diff --git a/fftools/cmdutils.h b/fftools/cmdutils.h +index 85b468f..9ac4808 100644 +--- a/fftools/cmdutils.h ++++ b/fftools/cmdutils.h +@@ -557,4 +557,20 @@ void dump_dictionary(void *ctx, const AVDictionary *m, const char *name, const char *indent, int log_level); @@ -55,9 +57,10 @@ diff -ruN a/fftools/cmdutils.h b/fftools/cmdutils.h +void cmdutils_reset(void); + #endif /* FFTOOLS_CMDUTILS_H */ -diff -ruN a/fftools/ffmpeg.c b/fftools/ffmpeg.c ---- a/fftools/ffmpeg.c 2026-09-17 18:19:50.000000000 -0500 -+++ b/fftools/ffmpeg.c 2026-10-05 18:57:00.112761840 -0500 +diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c +index 186b549..aa2960c 100644 +--- a/fftools/ffmpeg.c ++++ b/fftools/ffmpeg.c @@ -32,6 +32,7 @@ #include #include @@ -74,7 +77,7 @@ diff -ruN a/fftools/ffmpeg.c b/fftools/ffmpeg.c #if CONFIG_MEDIACODEC #include "compat/android/binder.h" #endif -@@ -155,7 +157,7 @@ +@@ -155,7 +157,7 @@ sigterm_handler(int sig) ret = write(2/*STDERR_FILENO*/, "Received > 3 system signals, hard exiting\n", strlen("Received > 3 system signals, hard exiting\n")); if (ret < 0) { /* Do nothing */ }; @@ -83,7 +86,7 @@ diff -ruN a/fftools/ffmpeg.c b/fftools/ffmpeg.c } } -@@ -569,6 +571,53 @@ +@@ -583,6 +585,53 @@ void update_benchmark(const char *fmt, ...) } } @@ -137,7 +140,7 @@ diff -ruN a/fftools/ffmpeg.c b/fftools/ffmpeg.c static void print_report(int is_last_report, int64_t timer_start, int64_t cur_time, int64_t pts) { AVBPrint buf, buf_script; -@@ -585,9 +634,6 @@ +@@ -599,9 +648,6 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti int ret; float t; @@ -147,7 +150,7 @@ diff -ruN a/fftools/ffmpeg.c b/fftools/ffmpeg.c if (!is_last_report) { if (last_time == -1) { last_time = cur_time; -@@ -596,8 +642,21 @@ +@@ -610,8 +656,21 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti (first_report && atomic_load(&nb_output_dumped) < nb_output_files)) return; last_time = cur_time; @@ -169,7 +172,7 @@ diff -ruN a/fftools/ffmpeg.c b/fftools/ffmpeg.c t = (cur_time-timer_start) / 1000000.0; vid = 0; -@@ -635,13 +694,6 @@ +@@ -649,13 +708,6 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti } } @@ -183,7 +186,7 @@ diff -ruN a/fftools/ffmpeg.c b/fftools/ffmpeg.c us = FFABS64U(pts) % AV_TIME_BASE; secs = FFABS64U(pts) / AV_TIME_BASE % 60; mins = FFABS64U(pts) / AV_TIME_BASE / 60 % 60; -@@ -704,7 +756,9 @@ +@@ -718,7 +770,9 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti av_bprintf(&buf, " elapsed=%"PRId64":%02d:%02d.%02d", hours, mins, secs, ms / 10); if (print_stats || is_last_report) { @@ -194,7 +197,7 @@ diff -ruN a/fftools/ffmpeg.c b/fftools/ffmpeg.c if (print_stats==1 && AV_LOG_INFO > av_log_get_level()) { fprintf(stderr, "%s %c", buf.str, end); } else -@@ -727,8 +781,6 @@ +@@ -741,8 +795,6 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti "Error closing progress log, loss of information possible: %s\n", av_err2str(ret)); } } @@ -203,7 +206,7 @@ diff -ruN a/fftools/ffmpeg.c b/fftools/ffmpeg.c } static void print_stream_maps(void) -@@ -903,9 +955,27 @@ +@@ -917,9 +969,27 @@ static int transcode(Scheduler *sch) timer_start = av_gettime_relative(); @@ -232,7 +235,7 @@ diff -ruN a/fftools/ffmpeg.c b/fftools/ffmpeg.c if (received_nb_signals) break; -@@ -931,6 +1001,12 @@ +@@ -945,6 +1015,12 @@ static int transcode(Scheduler *sch) /* dump report by using the first video and audio streams */ print_report(1, timer_start, av_gettime_relative(), transcode_ts); @@ -245,7 +248,7 @@ diff -ruN a/fftools/ffmpeg.c b/fftools/ffmpeg.c return ret; } -@@ -978,13 +1054,55 @@ +@@ -992,13 +1068,55 @@ static int64_t getmaxrss(void) #endif } @@ -302,7 +305,7 @@ diff -ruN a/fftools/ffmpeg.c b/fftools/ffmpeg.c init_dynload(); setvbuf(stderr,NULL,_IONBF,0); /* win32 runtime needs this */ -@@ -1054,5 +1172,10 @@ +@@ -1068,5 +1186,10 @@ finish: av_log(NULL, AV_LOG_VERBOSE, "\n"); av_log(NULL, AV_LOG_VERBOSE, "Exiting with exit code %d\n", ret); @@ -313,10 +316,11 @@ diff -ruN a/fftools/ffmpeg.c b/fftools/ffmpeg.c + return ret; } -diff -ruN a/fftools/ffmpeg.h b/fftools/ffmpeg.h ---- a/fftools/ffmpeg.h 2026-09-17 18:19:50.000000000 -0500 -+++ b/fftools/ffmpeg.h 2026-10-05 18:56:18.654883973 -0500 -@@ -824,6 +824,12 @@ +diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h +index f518674..93546cc 100644 +--- a/fftools/ffmpeg.h ++++ b/fftools/ffmpeg.h +@@ -843,6 +843,12 @@ void fg_send_command(FilterGraph *fg, double time, const char *target, int ffmpeg_parse_options(int argc, char **argv, Scheduler *sch); @@ -329,10 +333,32 @@ diff -ruN a/fftools/ffmpeg.h b/fftools/ffmpeg.h void enc_stats_write(OutputStream *ost, EncStats *es, const AVFrame *frame, const AVPacket *pkt, uint64_t frame_num); -diff -ruN a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c ---- a/fftools/ffmpeg_opt.c 2026-09-17 18:19:50.000000000 -0500 -+++ b/fftools/ffmpeg_opt.c 2026-10-05 18:56:18.655076696 -0500 -@@ -87,6 +87,45 @@ +diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c +index 2bd358f..5b84134 100644 +--- a/fftools/ffmpeg_filter.c ++++ b/fftools/ffmpeg_filter.c +@@ -2229,6 +2229,16 @@ static int configure_filtergraph(FilterGraph *fg, FilterGraphThread *fgt) + } + } else { + fgt->graph->nb_threads = filter_complex_nbthreads; ++#ifdef FFMPEG_WASM_ST ++ /* filter_complex_nbthreads defaults to 0 ("auto"), which overwrites ++ * the filtergraph's own default of 1 and reopens the ++ * avpriv_slicethread_create() auto-resolution path in ++ * libavutil/slicethread.c instead of ff_graph_thread_init()'s clean ++ * "nb_threads == 1, do nothing" return. Keep it forced to 1 so the ++ * st core never spins up filter slice threads. */ ++ if (!fgt->graph->nb_threads) ++ fgt->graph->nb_threads = 1; ++#endif + } + + if (filter_buffered_frames) { +diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c +index 265bfba..855cc58 100644 +--- a/fftools/ffmpeg_opt.c ++++ b/fftools/ffmpeg_opt.c +@@ -87,6 +87,45 @@ int ignore_unknown_streams = 0; int copy_unknown_streams = 0; int recast_media = 0; @@ -378,10 +404,11 @@ diff -ruN a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c // this struct is passed as the optctx argument // to func_arg() for global options typedef struct GlobalOptionsContext { -diff -ruN a/fftools/ffprobe.c b/fftools/ffprobe.c ---- a/fftools/ffprobe.c 2026-09-17 18:19:50.000000000 -0500 -+++ b/fftools/ffprobe.c 2026-10-05 18:57:00.115810341 -0500 -@@ -70,6 +70,7 @@ +diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c +index 0f71c3e..34cc07f 100644 +--- a/fftools/ffprobe.c ++++ b/fftools/ffprobe.c +@@ -71,6 +71,7 @@ #include "opt_common.h" #include "libavutil/thread.h" @@ -389,7 +416,7 @@ diff -ruN a/fftools/ffprobe.c b/fftools/ffprobe.c // attached as opaque_ref to packets/frames typedef struct FrameData { -@@ -90,8 +91,8 @@ +@@ -91,8 +92,8 @@ typedef struct InputFile { int nb_streams; } InputFile; @@ -400,7 +427,7 @@ diff -ruN a/fftools/ffprobe.c b/fftools/ffprobe.c static int do_analyze_frames = 0; static int do_bitexact = 0; -@@ -2569,8 +2570,10 @@ +@@ -2774,8 +2775,10 @@ static int open_input_file(InputFile *ifile, const char *filename, return AVERROR(ENOMEM); err = set_decoders(fmt_ctx); @@ -412,7 +439,7 @@ diff -ruN a/fftools/ffprobe.c b/fftools/ffprobe.c if (!av_dict_get(format_opts, "scan_all_pmts", NULL, AV_DICT_MATCH_CASE)) { av_dict_set(&format_opts, "scan_all_pmts", "1", AV_DICT_DONT_OVERWRITE); scan_all_pmts_set = 1; -@@ -2614,7 +2617,7 @@ +@@ -2819,7 +2822,7 @@ static int open_input_file(InputFile *ifile, const char *filename, ifile->streams = av_calloc(fmt_ctx->nb_streams, sizeof(*ifile->streams)); if (!ifile->streams) @@ -421,7 +448,7 @@ diff -ruN a/fftools/ffprobe.c b/fftools/ffprobe.c ifile->nb_streams = fmt_ctx->nb_streams; /* bind a decoder to each input stream */ -@@ -2635,15 +2638,19 @@ +@@ -2840,15 +2843,19 @@ static int open_input_file(InputFile *ifile, const char *filename, err = filter_codec_opts(codec_opts, stream->codecpar->codec_id, fmt_ctx, stream, codec, &opts, NULL); if (err < 0) @@ -446,7 +473,7 @@ diff -ruN a/fftools/ffprobe.c b/fftools/ffprobe.c if (do_show_log) { // For logging it is needed to disable at least frame threads as otherwise -@@ -2659,14 +2666,17 @@ +@@ -2864,14 +2871,17 @@ static int open_input_file(InputFile *ifile, const char *filename, if (avcodec_open2(ist->dec_ctx, codec, &opts) < 0) { av_log(NULL, AV_LOG_WARNING, "Could not open codec for input stream %d\n", stream->index); @@ -465,7 +492,7 @@ diff -ruN a/fftools/ffprobe.c b/fftools/ffprobe.c } } -@@ -2785,7 +2795,7 @@ +@@ -2990,7 +3000,7 @@ end: static void show_usage(void) { av_log(NULL, AV_LOG_INFO, "Simple multimedia streams analyzer\n"); @@ -474,7 +501,7 @@ diff -ruN a/fftools/ffprobe.c b/fftools/ffprobe.c av_log(NULL, AV_LOG_INFO, "\n"); } -@@ -2797,7 +2807,7 @@ +@@ -3002,7 +3012,7 @@ static void ffprobe_show_program_version(AVTextFormatContext *tfc) avtext_print_section_header(tfc, NULL, SECTION_ID_PROGRAM_VERSION); print_str("version", FFMPEG_VERSION); print_fmt("copyright", "Copyright (c) %d-%d the FFmpeg developers", @@ -483,7 +510,7 @@ diff -ruN a/fftools/ffprobe.c b/fftools/ffprobe.c print_str("compiler_ident", CC_IDENT); print_str("configuration", FFMPEG_CONFIGURATION); avtext_print_section_footer(tfc); -@@ -3042,7 +3052,15 @@ +@@ -3251,7 +3261,15 @@ static int opt_print_filename(void *optctx, const char *opt, const char *arg) return print_input_filename ? 0 : AVERROR(ENOMEM); } @@ -500,7 +527,7 @@ diff -ruN a/fftools/ffprobe.c b/fftools/ffprobe.c { av_log_set_callback(log_callback_help); show_usage(); -@@ -3363,7 +3381,100 @@ +@@ -3578,7 +3596,100 @@ static inline int check_section_show_entries(int section_id, int require_explici do_show_##varname = 1; \ } while (0) @@ -602,7 +629,7 @@ diff -ruN a/fftools/ffprobe.c b/fftools/ffprobe.c { const AVTextFormatter *f; AVTextFormatContext *tctx; -@@ -3373,6 +3484,8 @@ +@@ -3588,6 +3699,8 @@ int main(int argc, char **argv) int ret, input_ret; AVTextFormatDataDump data_dump_format_id = AV_TEXTFORMAT_DATADUMP_XXD; @@ -611,7 +638,7 @@ diff -ruN a/fftools/ffprobe.c b/fftools/ffprobe.c init_dynload(); setvbuf(stderr, NULL, _IONBF, 0); /* win32 runtime needs this */ -@@ -3504,7 +3617,7 @@ +@@ -3724,7 +3837,7 @@ int main(int argc, char **argv) (!do_show_program_version && !do_show_library_versions && !do_show_pixel_formats))) { show_usage(); av_log(NULL, AV_LOG_ERROR, "You have to specify one input file.\n"); @@ -620,7 +647,7 @@ diff -ruN a/fftools/ffprobe.c b/fftools/ffprobe.c ret = AVERROR(EINVAL); } else if (input_filename) { ret = probe_file(tctx, input_filename, print_input_filename); -@@ -3540,5 +3653,10 @@ +@@ -3760,5 +3873,10 @@ end: avformat_network_deinit(); @@ -632,10 +659,11 @@ diff -ruN a/fftools/ffprobe.c b/fftools/ffprobe.c + + return ret; } -diff -ruN a/fftools/opt_common.c b/fftools/opt_common.c ---- a/fftools/opt_common.c 2026-09-17 18:19:50.000000000 -0500 -+++ b/fftools/opt_common.c 2026-10-05 18:57:00.120211017 -0500 -@@ -152,6 +152,17 @@ +diff --git a/fftools/opt_common.c b/fftools/opt_common.c +index 572cc56..114db6a 100644 +--- a/fftools/opt_common.c ++++ b/fftools/opt_common.c +@@ -152,6 +152,17 @@ int show_license(void *optctx, const char *opt, const char *arg) static int warned_cfg = 0; @@ -653,10 +681,11 @@ diff -ruN a/fftools/opt_common.c b/fftools/opt_common.c #define INDENT 1 #define SHOW_VERSION 2 #define SHOW_CONFIG 4 -diff -ruN a/fftools/opt_common.h b/fftools/opt_common.h ---- a/fftools/opt_common.h 2026-09-17 18:19:50.000000000 -0500 -+++ b/fftools/opt_common.h 2026-10-05 18:56:18.655843257 -0500 -@@ -229,4 +229,11 @@ +diff --git a/fftools/opt_common.h b/fftools/opt_common.h +index 32d53b5..9a2927e 100644 +--- a/fftools/opt_common.h ++++ b/fftools/opt_common.h +@@ -229,4 +229,11 @@ int opt_cpucount(void *optctx, const char *opt, const char *arg); { "hide_banner", OPT_TYPE_BOOL, OPT_EXPERT, {&hide_banner}, "do not show program banner", "hide_banner" }, \ CMDUTILS_COMMON_OPTIONS_AVDEVICE \ @@ -668,10 +697,11 @@ diff -ruN a/fftools/opt_common.h b/fftools/opt_common.h +void opt_common_reset(void); + #endif /* FFTOOLS_OPT_COMMON_H */ -diff -ruN a/libavutil/cpu.c b/libavutil/cpu.c ---- a/libavutil/cpu.c 2026-09-17 18:19:50.000000000 -0500 -+++ b/libavutil/cpu.c 2026-10-05 18:56:18.655911276 -0500 -@@ -227,6 +227,15 @@ +diff --git a/libavutil/cpu.c b/libavutil/cpu.c +index 6994166..bb8e958 100644 +--- a/libavutil/cpu.c ++++ b/libavutil/cpu.c +@@ -228,6 +228,15 @@ int av_parse_cpu_caps(unsigned *flags, const char *s) int av_cpu_count(void) { @@ -687,7 +717,7 @@ diff -ruN a/libavutil/cpu.c b/libavutil/cpu.c static atomic_int printed = 0; int nb_cpus = 1; -@@ -277,6 +286,7 @@ +@@ -278,6 +287,7 @@ int av_cpu_count(void) } return nb_cpus; @@ -695,23 +725,3 @@ diff -ruN a/libavutil/cpu.c b/libavutil/cpu.c } void av_cpu_force_count(int count) -diff -ruN a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c ---- a/fftools/ffmpeg_filter.c 2026-09-17 18:19:50.000000000 -0500 -+++ b/fftools/ffmpeg_filter.c 2026-10-05 18:56:18.656191055 -0500 -@@ -2097,6 +2097,16 @@ - } - } else { - fgt->graph->nb_threads = filter_complex_nbthreads; -+#ifdef FFMPEG_WASM_ST -+ /* filter_complex_nbthreads defaults to 0 ("auto"), which overwrites -+ * the filtergraph's own default of 1 and reopens the -+ * avpriv_slicethread_create() auto-resolution path in -+ * libavutil/slicethread.c instead of ff_graph_thread_init()'s clean -+ * "nb_threads == 1, do nothing" return. Keep it forced to 1 so the -+ * st core never spins up filter slice threads. */ -+ if (!fgt->graph->nb_threads) -+ fgt->graph->nb_threads = 1; -+#endif - } - - if (filter_buffered_frames) { diff --git a/scripts/fate/fetch-defs.mjs b/scripts/fate/fetch-defs.mjs index 1482471d4d3..ae8912ee3a6 100644 --- a/scripts/fate/fetch-defs.mjs +++ b/scripts/fate/fetch-defs.mjs @@ -3,7 +3,7 @@ // via a sparse, blobless checkout of just tests/ from the FFmpeg source // tree. Run once per tag before select.mjs. // -// Usage: node scripts/fate/fetch-defs.mjs --tag n9.0.2 +// Usage: node scripts/fate/fetch-defs.mjs --tag n9.1 import { execFileSync } from "node:child_process"; import { existsSync, mkdirSync } from "node:fs"; import { dirname, join } from "node:path"; diff --git a/scripts/fate/fetch-samples.mjs b/scripts/fate/fetch-samples.mjs index 95291f301d8..1a14f4a6f85 100644 --- a/scripts/fate/fetch-samples.mjs +++ b/scripts/fate/fetch-samples.mjs @@ -4,7 +4,7 @@ // nothing (and needs no network) for a manifest that only has synthetic // tests, e.g. the "fast" subset used on pushes to master. // -// Usage: node scripts/fate/fetch-samples.mjs --manifest manifest.json --tag n9.0.2 +// Usage: node scripts/fate/fetch-samples.mjs --manifest manifest.json --tag n9.1 import { execFileSync } from "node:child_process"; import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; diff --git a/scripts/fate/select.mjs b/scripts/fate/select.mjs index a941070b608..01bfb15d2dc 100644 --- a/scripts/fate/select.mjs +++ b/scripts/fate/select.mjs @@ -3,7 +3,7 @@ // framemd5, crc, md5 and md5pipe tests from the allowlisted files in // config.mjs, and writes a manifest of the chosen subset as JSON. // -// Usage: node scripts/fate/select.mjs --tag n9.0.2 --subset fast --out manifest.json +// Usage: node scripts/fate/select.mjs --tag n9.1 --subset fast --out manifest.json import { existsSync, readFileSync, writeFileSync } from "node:fs"; import { dirname, join } from "node:path"; import { fileURLToPath } from "node:url";