From 56c58590d706939fb05191ec143b083d7df22785 Mon Sep 17 00:00:00 2001 From: adnan-bhaldar Date: Fri, 20 Nov 2026 19:23:59 +0530 Subject: [PATCH] build(engines): update the Windows FFmpeg download to 9.1 Point the Windows FFmpeg entry in engines.json at the gyan.dev 9.1 "full_build-shared" build (new url, size and sha256). Change the version named in THIRD-PARTY-NOTICES.md, docs/ENGINES.md and in the example comments in FfmpegConverter.cs. The Linux x64 and arm64 entries stay on FFmpeg 9.0.2: there is no 9.1 build for them yet. --- THIRD-PARTY-NOTICES.md | 2 +- docs/ENGINES.md | 2 +- src/Filee.Engines/Infrastructure/engines.json | 8 ++++---- src/Filee.Engines/Media/FfmpegConverter.cs | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/THIRD-PARTY-NOTICES.md b/THIRD-PARTY-NOTICES.md index a055b0c51..5769a96fc 100644 --- a/THIRD-PARTY-NOTICES.md +++ b/THIRD-PARTY-NOTICES.md @@ -87,7 +87,7 @@ Downloaded from their official release pages when the user chooses to install th | Pandoc | GPL-2.0-or-later | https://github.com/jgm/pandoc | | Ghostscript (conda-forge build) | AGPL-3.0 | https://www.ghostscript.com, https://github.com/conda-forge/ghostscript-feedstock | | Microsoft Visual C++ Redistributable (for Ghostscript and Upscayl, conda-forge `vc14_runtime` and `vcomp14`) | Microsoft Visual C++ Redistributable license | https://github.com/conda-forge/vc-feedstock | -| FFmpeg 9.0.2 (gyan.dev "full_build-shared" Windows build; ffmpeg.exe, ffprobe.exe and their libraries, incl. x264, x265, libvpx, LAME, Opus, Vorbis, Theora, OpenCORE AMR) | GPL-3.0-or-later (the build is configured with `--enable-gpl --enable-version3`); FFmpeg itself LGPL-2.1-or-later | https://ffmpeg.org, build: https://www.gyan.dev/ffmpeg/builds/ (source: https://github.com/GyanD/codexffmpeg) | +| FFmpeg 9.1 (gyan.dev "full_build-shared" Windows build; ffmpeg.exe, ffprobe.exe and their libraries, incl. x264, x265, libvpx, LAME, Opus, Vorbis, Theora, OpenCORE AMR) | GPL-3.0-or-later (the build is configured with `--enable-gpl --enable-version3`); FFmpeg itself LGPL-2.1-or-later | https://ffmpeg.org, build: https://www.gyan.dev/ffmpeg/builds/ (source: https://github.com/GyanD/codexffmpeg) | | calibre (ebook-convert) | GPL-3.0 | https://calibre-ebook.com | | WeasyPrint 70.0 (Windows "onedir" build, `weasyprint-windows-onedir.zip`: `weasyprint.exe` with its `_internal` folder, built with PyInstaller on MSYS2 UCRT64; it embeds Python 3.14, Pango, HarfBuzz, FreeType, Fontconfig, FriBidi, GLib, libthai, Pillow, fontTools, Pyphen, pydyf, tinycss2, cssselect2, Brotli, Zopfli, OpenSSL, zlib, libpng, Expat and the MinGW runtime) | BSD-3-Clause (WeasyPrint); PSF-2.0 (Python); LGPL-2.1-or-later (Pango, GLib, FriBidi, libthai); MIT (HarfBuzz, Fontconfig, fontTools, Brotli, Expat); FreeType License; HPND (Pillow); GPL/LGPL/MPL tri-licence (Pyphen); BSD-3-Clause (pydyf, tinycss2, cssselect2); Apache-2.0 (Zopfli, OpenSSL); GCC Runtime Library Exception (MinGW runtime); zlib and libpng licences | https://github.com/Kozea/WeasyPrint | | Tesseract OCR 5.4 (UB Mannheim Windows build, with Leptonica and the MinGW libraries it ships; their notices are in its `doc` folder) | Apache-2.0 (Tesseract); Leptonica BSD-2-Clause; others as listed in the build | https://github.com/tesseract-ocr/tesseract, build: https://github.com/UB-Mannheim/tesseract | diff --git a/docs/ENGINES.md b/docs/ENGINES.md index b2cb79974..300e9cccf 100644 --- a/docs/ENGINES.md +++ b/docs/ENGINES.md @@ -2123,7 +2123,7 @@ target and PNG frames. FFmpeg has no FLIC encoder, so nothing writes them. A Video CD's `MPEGAV/AVSEQ01.DAT` (MPEG-1 in a RIFF/CDXA wrapper) counts as MPEG: `.dat` is an extension of that format, and FFmpeg reads what the file holds, so a `.dat` with no video in it fails instead of making a file. -- The download is the gyan.dev **9.0.2 "full_build-shared"** Windows build (GPL-3.0, run as a separate program). +- The download is the gyan.dev **9.1 "full_build-shared"** Windows build (GPL-3.0, run as a separate program). It is smaller than the "essentials" build (100 vs 115 MB download, 272 vs 329 MB on disk, because ffmpeg.exe and ffprobe.exe share their libraries) and has a superset of its encoders. It links only Windows system DLLs; GPU and Vulkan libraries are loaded only if present. Being over 60 MB, it is offered but not ticked on first run. diff --git a/src/Filee.Engines/Infrastructure/engines.json b/src/Filee.Engines/Infrastructure/engines.json index 96a5dde00..56d12aed6 100644 --- a/src/Filee.Engines/Infrastructure/engines.json +++ b/src/Filee.Engines/Infrastructure/engines.json @@ -65,10 +65,10 @@ "kind": "conda" }, "ffmpeg": { - "version": "9.0.2", - "url": "https://github.com/GyanD/codexffmpeg/releases/download/9.0.2/ffmpeg-9.0.2-full_build-shared.zip", - "sha256": "8D31E162F1616E37AAB3FA2DB991B97E1B8DBEB1C8465FD81A81BE16FF91B328", - "size": 99899672, + "version": "9.1", + "url": "https://github.com/GyanD/codexffmpeg/releases/download/9.1/ffmpeg-9.1-full_build-shared.zip", + "sha256": "D010A19B78D5EAE62DCA8D4C7F195ACD56DAE8ED6FB85F72821EDD9437DA2898", + "size": 104990867, "kind": "zip" }, "calibre": { diff --git a/src/Filee.Engines/Media/FfmpegConverter.cs b/src/Filee.Engines/Media/FfmpegConverter.cs index 898832511..b1815a431 100644 --- a/src/Filee.Engines/Media/FfmpegConverter.cs +++ b/src/Filee.Engines/Media/FfmpegConverter.cs @@ -782,7 +782,7 @@ internal static (string Ffmpeg, string Ffprobe)? Locate() Path.Combine(folder, EngineEnvironment.ProgramName("ffprobe.exe"))); } - /// "9.0.2" from ffmpeg -version; cached per executable so re-checking the engines stays cheap. + /// "9.1" from ffmpeg -version; cached per executable so re-checking the engines stays cheap. /// FFmpeg does not start, fails or does not answer within . internal static string VersionOf(string ffmpeg, TimeSpan? timeout = null) => Versions.GetOrAdd($"{ffmpeg}|{File.GetLastWriteTimeUtc(ffmpeg).Ticks}", _ => @@ -798,7 +798,7 @@ internal static string VersionOf(string ffmpeg, TimeSpan? timeout = null) => } if (result.ExitCode != 0) throw new InvalidOperationException($"FFmpeg does not start (exit code {result.ExitCode})."); - // "ffmpeg version 9.0.2-full_build-www.gyan.dev Copyright …" → "9.0.2" + // "ffmpeg version 9.1-full_build-www.gyan.dev Copyright …" → "9.1" var firstLine = result.StandardOutput.Split('\n', 2)[0]; var match = VersionPattern().Match(firstLine); return match.Success ? match.Groups[1].Value : firstLine.Trim();