Skip to content

Update FFmpeg to 9.1 - #90

Merged
seaweeduk merged 2 commits into
masterfrom
build/ffmpeg-9.1
Nov 22, 2026
Merged

seaweeduk merged 2 commits into
masterfrom
build/ffmpeg-9.1

Conversation

@seaweeduk

@seaweeduk seaweeduk commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner
  • Both release builds move from FFmpeg 9.0.2 to 9.1, from ffmpeg.org, signature checked and checksum pinned. The desktop build uses it unmodified.
  • The Steam Frame's V4L2 decoder (packaging/frame/ffmpeg/libavcodec/) and ffmpeg-v4l2.patch apply unchanged. FFmpeg's one V4L2 change in 9.1, a reference count fix in v4l2_buffers.c, is for code the Frame's decoder doesn't have.
  • The build gains FFmpeg's new components. The one it loses is the asf_o demuxer, which FFmpeg removed.

What the headset's decoder receives differently, because FFmpeg 9.1 does it:

  • At an HEVC keyframe that already carries the codec header's parameter sets, the header's copies are left out instead of sent twice.
  • An HEVC header that changes partway through a file (an MP4 with several sample descriptions) now reaches the decoder. 9.0.2 kept sending the first one.

Steam Frame, 3780 px eyes at 120 Hz, means of two launches each:

master (9.0.2) This PR (9.1)
8K HEVC, hardware: frames/s, drops 59.95, 0 59.97, 0
8K HEVC, hardware: app CPU (% of a core) 13.4 13.2
8K HEVC, hardware: headset power (W) 14.2 14.3
4K VP9, software: app CPU (% of a core) 119.5 121.8
Software decoding, 8K HEVC 8-bit (frames/s) 29.3 30.3
Software decoding, 8K HEVC 10-bit (frames/s) 19.7 20.4

Known and left as is

  • After a mid-stream HEVC header change, seeking back in FLV or through mpv's cache can leave the later header in use. Ordinary MP4 demuxer seeks resend the earlier header.
  • A new HEVC header that arrives on a non-keyframe is kept, but FFmpeg only sends its parameter sets from the next keyframe, so that packet goes without them. That case also failed with 9.0.2.

Important

AI disclosure

Model Variant Role
anthropic/claude-opus-5-5 high Investigation, update, build, verification and Steam Frame measurements
openai/gpt-6.2-astra high Independent review

Agent harness OpenCode 2.3.2

@seaweeduk seaweeduk added the dependencies Bundled library updates (release notes: Other changes) label Nov 22, 2026
@opencode-agent

Copy link
Copy Markdown
  1. Low — packaging/frame/ffmpeg/README.md:72–74: A header received on a non-keyframe is retained. FFmpeg 9.1’s hevc_mp4toannexb_filter stores the new header before checking whether the packet contains a random-access picture. It removes the packet’s side data, so Iris can miss parameter sets needed for that picture, but the filter still uses the updated sets at the next keyframe unless another header supersedes them. Replace “drops one that arrives on a non-keyframe” with “retains a header received on a non-keyframe but does not send its parameter sets until the next keyframe.”

github run

@seaweeduk

Copy link
Copy Markdown
Owner Author

/oc Please re-review. Finding 1 (Low, README wording about a header on a non-keyframe) was fixed in c015464: the README now says the header is kept and its parameter sets are sent from the next keyframe, so that packet goes without them. I checked this against n9.1's hevc_mp4toannexb_filter: the side data is stored before the IRAP check, and emit is set only when got_irap. The PR description's matching "Known and left as is" item now says the same.

@opencode-agent

Copy link
Copy Markdown

Finding 1 is resolved in c015464a. I verified that FFmpeg 9.1’s hevc_mp4toannexb_filter stores the new header before checking for a keyframe. It does not insert the header’s parameter sets into the non-keyframe packet; it uses the retained header at the next keyframe unless another header supersedes it.

The updated README and the PR’s “Known and left as is” item both describe that behavior accurately. No further findings.

github run

@seaweeduk
seaweeduk merged commit 460d233 into master Nov 22, 2026
2 checks passed
@seaweeduk
seaweeduk deleted the build/ffmpeg-9.1 branch November 22, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Bundled library updates (release notes: Other changes)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant