feat(ffmpeg): add BGRA1010102/RGBA1010102 pixel format support - #762
Open
luanweslley77 wants to merge 2 commits into
Open
feat(ffmpeg): add BGRA1010102/RGBA1010102 pixel format support#762luanweslley77 wants to merge 2 commits into
luanweslley77 wants to merge 2 commits into
Conversation
21 tasks
ReenigneArcher
requested changes
Aug 29, 2026
ReenigneArcher
left a comment
Member
There was a problem hiding this comment.
Thanks for the PR! I have a few requested changes below.
luanweslley77
marked this pull request as draft
August 29, 2026 03:12
luanweslley77
force-pushed
the
fix/ffmpeg-patch-fallback
branch
from
August 29, 2026 03:21
763cbd0 to
aabd22d
Compare
luanweslley77
marked this pull request as ready for review
August 29, 2026 14:10
Register the DRM fourccs BGRA1010102/RGBA1010102 in libavutil, libavcodec/pixdesc and libswscale. These are the 10-bit RGB formats with alpha in the low bits used by 10-bit HDR captures on Linux (e.g. KMS and PipeWire), which upstream FFmpeg does not provide.
Collect FFmpeg patch files in a single FFMPEG_PATCH_FILES list and apply them in one loop. The new BUILD_FFMPEG_LIBAVUTIL_PATCHES option (default ON) gates the patches/FFmpeg/FFmpeg/libavutil directory.
luanweslley77
force-pushed
the
fix/ffmpeg-patch-fallback
branch
from
August 29, 2026 14:37
aabd22d to
2d41a16
Compare
ReenigneArcher
approved these changes
Aug 29, 2026
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Adds an FFmpeg patch that registers the
BGRA1010102/RGBA1010102pixel formats (DRM fourccs used by 10-bit HDR captures on Linux) inlibavutil,libavcodec/pixdescandlibswscale. The patch lives inpatches/FFmpeg/FFmpeg/libavutil/and is applied through the sharedFFMPEG_PATCH_FILESlist, gated by a newBUILD_FFMPEG_LIBAVUTIL_PATCHESoption (defaultON).This follows the existing convention of carrying FFmpeg patches in this repo (
cbs/,vulkan/,x265_git/). The pixel format patch is needed by Sunshine PR #5568, which makes capture backends declare their pixel format explicitly instead of guessing frompixel_pitch.Screenshot
Issues Fixed or Closed
Roadmap Issues
Type of Change
Checklist
AI Usage
See our AI usage policy.