artclarke / humble-video

Humble Video: Demuxing, Decoding, Filtering, Encoding and Muxing of 100's of video and audio formats and Codecs from the JVM
GNU Affero General Public License v3.0
551 stars 113 forks source link

Alpha channeled video support for VP8/VP9 #121

Open korrix opened 5 years ago

korrix commented 5 years ago

Whenever I'm trying to decode file encoded with alpha channel according to FFMPEG documentation (https://trac.ffmpeg.org/wiki/Encode/VP8#AlphaChannel) using humble-video - the frame pixel format defaults to yuv420p, and alpha channel is lost. Video plays correctly in chromium browser, so it is not an encoding mistake.

Also MediaPictureConverterFactory only supports RGB and BGR target frame format, so I needed to implement my own converter.

How to correctly deal with alpha channeled video?