Skip to content

ffmpeg 8.1.3 r4 - #5

Merged
zackees merged 1 commit into
obs-rust:mainfrom
rdoupe:build/linux-ffmpeg-8.1.3
Oct 17, 2026
Merged

zackees merged 1 commit into
obs-rust:mainfrom
rdoupe:build/linux-ffmpeg-8.1.3

Conversation

@rdoupe

@rdoupe rdoupe commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Refs obs-rust/obs-studio#1091

What and why

Bumps FFmpeg in the Linux ffmpeg artifact from 8.1.2 to 8.1.3 (recipes/linux/ffmpeg.sh, ffmpeg()), packed as ffmpeg 8.1.3 r4. It builds on #4 (the libsrt 1.5.7 rebuild, r3, merged).

The OBS-Studio-Rust AppImage takes its FFmpeg from this artifact. Every file or URL that its Media Source and image loader open goes through FFmpeg's demuxers and decoders, with full probing and no format whitelist. FFmpeg 8.1.2 has public memory-corruption CVEs there, all fixed in 8.1.3:

CVE Component Severity Built in this artifact
CVE-2026-64830 VobSub demuxer 8.8 yes
CVE-2026-64832 NVDEC 8.8 yes (--enable-nvdec); OBS uses it only with hardware decoding on, on NVIDIA
CVE-2026-64835 ADX decoder 8.8 yes
CVE-2026-66039 MACE6 decoder (CAF) 7.8 yes
CVE-2026-65703 TDSC decoder 7.8 yes
CVE-2026-70632 CFHD decoder 7.8 yes
CVE-2026-70628 DVB subtitle parser 7.8 yes
CVE-2026-58049 RASC decoder 8.6 yes
CVE-2026-75146 DASH demuxer 8.1 no: the DASH demuxer needs libxml2, which this build doesn't enable

The fixes are the cherry-picks in n8.1.2..n8.1.3, for example 4fe710047d (VobSub, from dbd495f0 on master), 9cbcf979a5 (NVDEC, from 4c621747) and 62d4ca1f3e (DASH, from 65b0dab9).

  • Source. ffmpeg() now takes the ffmpeg.org release tarball ffmpeg-8.1.3.tar.xz by its sha256, 7138d28c96d9d3e3af4ee3d8cad72741f8ffb40da90c1112235dea3ecd3178a3, instead of a git commit.
    • The tarball's tree is the n8.1.3 tag's (commit 1041abdc), compared file by file with a clone of the tag. The tarball leaves out the .gitignore/.gitattributes files and adds a VERSION file that holds 8.1.3.
    • That VERSION file replaces the echo 8.1.2 >VERSION the recipe needed for a shallow checkout. OBS's FindFFmpeg still sees the release number.
    • The tarball's detached signature (.asc) verifies with the FFmpeg release signing key FCF9 86EA 15E6 E293 A564 4F10 B432 2F04 D676 58D8.
  • Options. Every configure option is unchanged. Configure's summary of enabled components (decoders, encoders, demuxers, muxers, parsers, protocols, filters, hwaccels, external libraries) is identical to r3's, line for line.
  • The other libraries in the artifact keep their versions (libsrt 1.5.7 from r3, mbedTLS 3.6.4, libvpx 1.14.1, ...). They are rebuilt only because they are in the same artifact. In the AppImage, libvpx, x264, lame, ogg/vorbis decoding, theora and librist come out byte-identical to r3's. libaom, SVT-AV1, opus, libsrt, mbedTLS and libvorbisenc differ only by the mktemp build directory embedded in their assert strings (plus the string offsets that move with it in SVT-AV1) and by their build IDs.
  • ABI. The sonames are unchanged: libavcodec.so.62, libavformat.so.62, libavutil.so.60, libavfilter.so.11, libavdevice.so.62, libswscale.so.9 and libswresample.so.6, with minor version 102 → 103.
    • The exported symbols (name, type, binding, version node) of all seven libraries are identical to r3's.
    • Only the imports change: libavfilter imports avio_vprintf instead of avio_write, and libswscale also imports fmin, fmax and round from libm. All of these come from the artifact itself or from glibc ≤ 2.28.
    • The installed headers differ only in the version macros and one moved #define in swscale.h.

Tested

  • Build. Built in the pinned manylinux_2_28 image with this recipe. The glibc 2.28 floor check passes. uv run --group dev pytest (9 passed) and ruff check pass.

  • FATE. FFmpeg's own suite ran on 8.1.3 with this recipe's exact configure line, except that the programs are built because FATE needs ffmpeg/ffprobe. All 2812 tests that need no external sample files passed (make -k fate, no failures). The same run on 8.1.2 passed 2808; the 4 extra tests are new in 8.1.3. The only test not run, in both, is fate-hwdevice, which needs a hardware device. The fate-suite sample corpus was not used, see below.

  • Product A/B. The AppImage was built the way CI builds it, once with r3 (A) and once with this r4 (B), from obs-studio's AppImage branch. The OBS binaries and plugins of A and B are byte-identical; only the FFmpeg libraries (and the rebuilt codec libraries' embedded build paths) differ. Each build then ran the full app with UI, headless (private Xvfb, D-Bus and HOME, ulimit -c 0), in a private network namespace with only loopback. The test media were ordinary valid files generated by a separate ffmpeg. All 25 checks gave the same result on A and B, and the measured values matched within run-to-run noise. The checks covered:

    • the Media Source on 34 files: h264/hevc/vp8/vp9/av1/mpeg2/ProRes/mjpeg/mpeg4/theora/ffv1, VP8/VP9 alpha WebM and ProRes 4444, and aac/opus/vorbis/mp3/flac/pcm/ac3 5.1/alac;
    • seeks, loop and the media controls, and VAAPI hardware decoding;
    • http/HLS/udp inputs;
    • 11 image formats and the slideshow (pixel hashes identical between A and B);
    • recordings in every container, the encoders (AV1, FLAC, ALAC, PCM, Opus, AAC, VAAPI), the Custom FFmpeg output, the replay buffer, auto-remux and audio resampling;
    • the libsrt checks.

    The few failures are pre-existing OBS issues, identical in both builds. B logs no error line that A doesn't.

  • Write-up with the inventory of every FFmpeg use in OBS, every check and its pass criteria, and what was not covered: kept with the obs-studio PR.

Not run: FFmpeg's fate-suite samples. The corpus includes regression files from crash and fuzzing reports, and these tests were limited to ordinary valid media.

After merge

Please publish the r4 artifact (release ffmpeg-8.1.3). The obs-studio PR for #1091 pins it by sha256. The sha256 there, 2ec70342896410937218e5b42a211e65f2ba2eaa927293a06ac7335ddcd9d895, comes from a local build and gets replaced with the published asset's.

AI note: Claude Code (Claude Opus 5.5) wrote the change and this text under the submitter's direction, and ran the tests above on the submitter's machines.

🤖 Generated with Claude Code

The Linux ffmpeg artifact built FFmpeg 8.1.2, which OBS-Studio-Rust's
AppImage bundles: every file or URL its Media Source and image loader
open reaches FFmpeg's demuxers and decoders. 8.1.2 has public CVEs there
that 8.1.3 fixes: CVE-2026-64830 (VobSub demuxer), CVE-2026-64835 (ADX
decoder), CVE-2026-66039 (MACE6), CVE-2026-65703 (TDSC), CVE-2026-70632
(CFHD), CVE-2026-70628 (DVB subtitle parser), CVE-2026-58049 (RASC) and
CVE-2026-64832 (NVDEC); CVE-2026-75146 (DASH demuxer) is not built here
(no libxml2).

ffmpeg() takes the ffmpeg.org release tarball of 8.1.3 by its sha256.
Its tree is the n8.1.3 tag's (1041abdc) without the git dotfiles, plus
the VERSION file (8.1.3) that the old `echo 8.1.2 >VERSION` wrote by
hand; its detached signature verifies with the FFmpeg release key
FCF986EA15E6E293A5644F10B4322F04D67658D8. Every configure option is
unchanged (configure's summary of enabled components is identical), as
are the sonames and every other library in the artifact (libsrt 1.5.7
from r3). Packed as ffmpeg 8.1.3 with --label r4, continuing the
revisions of this artifact.

Built in the pinned manylinux_2_28 image: the glibc 2.28 floor check
passes; exported symbols of all seven libraries are identical to r3's.

Refs obs-rust/obs-studio#1091

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants