diff --git a/packaging/frame/ffmpeg-v4l2.patch b/packaging/frame/ffmpeg-v4l2.patch index d2ae59a..a7e751c 100644 --- a/packaging/frame/ffmpeg-v4l2.patch +++ b/packaging/frame/ffmpeg-v4l2.patch @@ -1,5 +1,5 @@ # Build the Frame's V4L2 decoder (packaging/frame/ffmpeg/, copied over FFmpeg's own) -# and refuse to map Qualcomm compressed frames to the CPU. Apply to FFmpeg 9.0.2. +# and refuse to map Qualcomm compressed frames to the CPU. Apply to FFmpeg 9.1. --- a/configure +++ b/configure @@ -3727,6 +3727,7 @@ vp9_vaapi_encoder_select="vaapi_encode" diff --git a/packaging/frame/ffmpeg/README.md b/packaging/frame/ffmpeg/README.md index bca099b..d896c4f 100644 --- a/packaging/frame/ffmpeg/README.md +++ b/packaging/frame/ffmpeg/README.md @@ -7,7 +7,7 @@ Frame build replaces it with the files in `libavcodec/` here. `vp9_v4l2m2m` is built too, but the app decodes VP9 in software. The release recipe (`packaging/release/build-sdk.sh`) copies them over the files -of the same name in official FFmpeg 9.0.2, then applies `../ffmpeg-v4l2.patch`. +of the same name in official FFmpeg 9.1, then applies `../ffmpeg-v4l2.patch`. That patch adds the extra files to FFmpeg's build and refuses to map Qualcomm compressed frames to the CPU. Nothing else in FFmpeg is changed, and the desktop build uses FFmpeg unmodified. @@ -25,7 +25,7 @@ build uses FFmpeg unmodified. them the Frame's FFmpeg is GPL-3.0-or-later as a whole. Until November 2026 the build used the rpi-ffmpeg source tree with those changes -as seven patches. The files here are that code, updated for FFmpeg 9.0.2. +as seven patches. The files here are that code, updated for FFmpeg 9.1. ## What this project changed @@ -66,6 +66,14 @@ All of it works around the Frame's `iris_driver` or fits the decoder to this app header itself still goes to Iris with those sets in it; - `hevc_mp4toannexb` puts the header's parameter sets before a keyframe's own instead of after them. + + For 9.0.2 to 9.1, `hevc_mp4toannexb` leaves out a header parameter set that a + keyframe already carries byte for byte, and takes a new header from a packet's + side data. It keeps that header after a seek back unless the demuxer sends the + earlier one again (MP4 does, FLV and mpv's cache don't). A header that + arrives on a non-keyframe is kept, but its parameter sets are only sent from + the next keyframe, so that packet goes without them. FFmpeg's own + `v4l2_buffers.c` fixed a reference count these files don't have. 3. Compare FFmpeg's own `v4l2_*` files with the previous release for fixes worth taking. 4. Play the hardware checks on a headset before release. A build that compiles diff --git a/packaging/release/build-sdk.sh b/packaging/release/build-sdk.sh index 11e1e38..58a569c 100644 --- a/packaging/release/build-sdk.sh +++ b/packaging/release/build-sdk.sh @@ -64,7 +64,7 @@ export CXXFLAGS="$CFLAGS" json_source=/work/source/json mpv_source=/work/source/mpv-0.41.0 -ffmpeg_source=/work/source/ffmpeg-9.0.2 +ffmpeg_source=/work/source/ffmpeg-9.1 smb2_source=/work/source/libsmb2-2bcb014b23a8c8cccf534eea8bda2fe5df453cfd ssh_source=/work/source/libssh-0.12.2 udfread_source=/work/source/libudfread-1.2.0 diff --git a/packaging/release/sources.json b/packaging/release/sources.json index b8659d3..2a2ad38 100644 --- a/packaging/release/sources.json +++ b/packaging/release/sources.json @@ -7,7 +7,7 @@ {"name":"json", "version":"3.11.3", "published":"2023-11-28T00:00:00Z", "file":"json-3.11.3.tar.xz", "directory":"json", "url":"https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz", "sha256":"d6c65aca6b1ed68e7a182f4757257b107ae403032760ed6ef121c9d55e81757d"}, {"name":"nv-codec-headers", "version":"12.0.16.1", "published":"2023-10-06T13:30:54Z", "file":"nv-codec-headers-12.0.16.1.tar.gz", "directory":"nv-codec-headers-12.0.16.1", "url":"https://github.com/FFmpeg/nv-codec-headers/releases/download/n12.0.16.1/nv-codec-headers-12.0.16.1.tar.gz", "sha256":"bfb3306f22c169fedcfc5489b344f414089eec796ffd528412677b0c872bc6e2"}, {"name":"mpv", "version":"0.41.0", "published":"2025-12-21T19:17:10Z", "file":"mpv-0.41.0.tar.gz", "directory":"mpv-0.41.0", "url":"https://github.com/mpv-player/mpv/archive/refs/tags/v0.41.0.tar.gz", "sha256":"ee21092a5ee427353392360929dc64645c54479aefdb5babc5cfbb5fad626209"}, - {"name":"ffmpeg", "version":"9.0.2", "published":"2026-09-18T02:30:12Z", "file":"ffmpeg-9.0.2.tar.xz", "directory":"ffmpeg-9.0.2", "url":"https://ffmpeg.org/releases/ffmpeg-9.0.2.tar.xz", "sha256":"8c3850283eb25fa026482078a04051e0be17347b09ef81a0849bec15a96e002e"} + {"name":"ffmpeg", "version":"9.1", "published":"2026-11-20T00:16:41Z", "cooldown_waiver":"Owner approved 2026-11-21", "file":"ffmpeg-9.1.tar.xz", "directory":"ffmpeg-9.1", "url":"https://ffmpeg.org/releases/ffmpeg-9.1.tar.xz", "sha256":"1a4d394ae63d190a526cd052eb4415c156b5c5e2df37efab41a7de0b8fde2433"} ], "fonts": [ {"name":"NotoSans-CondensedMedium.ttf", "published":"2023-01-25T13:40:16Z", "url":"https://raw.githubusercontent.com/notofonts/noto-fonts/ffebf8c1ee449e544955a7e813c54f9b73848eac/hinted/ttf/NotoSans/NotoSans-CondensedMedium.ttf", "sha256":"3e47ff38200ef203ccd19cf23a3b5dcc834bc170b123ab4440be72adee0e5444"},