Skip to content

Make VideoDecoder Support Videos with Alpha - #7

Open
menvae wants to merge 1 commit into
InventiveRhythm:masterfrom
menvae:alpha-decode
Open

Make VideoDecoder Support Videos with Alpha#7
menvae wants to merge 1 commit into
InventiveRhythm:masterfrom
menvae:alpha-decode

Conversation

@menvae

@menvae menvae commented Jul 19, 2026

Copy link
Copy Markdown

This doesn't support all formats with alpha, it only supports formats with YUVA (and other pixel formats with alpha) such as mov (codec must be ProRes 4444 or QuickTime) and webm (VP8 and VP9). (webm isn't YUVA but you get the point).

Since the ffmpeg build of the framework doesn't include the necessary build flags to do this natively we have to do some fuckery by manually getting the side data (BlockAdditional), which is not really necessary for mov but it is needed for webm.

Side Note: mov codecs with transparency do not work cuz the framework build of ffmpeg does not have the decoders for ProRes and QuickTime. I only mentioned it cuz it should work if it is ever added to the framework. Only webm works for transparency as of now.

@menvae menvae changed the title Make VideoDecoder support Videos with Alpha Make VideoDecoder Support Videos with Alpha Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant