Replies: 1 comment 2 replies
-
Hi @jjouppi, we have some support for alpha channel, but it does not work with every image format. I have a FLV video where alpha works fine, but also a ProRes file where alpha is not being used. Generally, you must allow BGRA8 and disable all other output formats:
Then set the background of the top level grid in the samples to blue, so you can see if alpha is in use or not. One issue is that black bars on top and bottom are always black, even if the video has transparency. There does not seem to be a way in MediaPlayerElement to disable or change that color. You could only try to work around this by sizing the MediaPlayerElement so that there are no bars. The frame grabber currently drops the alpha channel, but I just created a PR #313 to allow exporting as PNG with alpha channel. |
Beta Was this translation helpful? Give feedback.
-
Hey ffmpeginteropx folks!
Wondering about handling alpha channels for video files such as ProRes 4444 with alpha? Is it at all possible to display transparency when video is playing back? Right now I can load such files but transparency is just rendered as black.
Also when using framegrabber is it possible to retain the alpha channel and encode a PNG or BMP with transparency? I use the frame grabber for an annotation feature in a media player and also am building a GIF exporter and it'd be great to retain transparency in both instances.
Thanks for all your work on this!
Beta Was this translation helpful? Give feedback.
All reactions