Open d8bauxit8 opened 1 year ago
I seriously doubt that transparent videos are widely supported in decoders, and for encrypted video, different decoders and compositing methods may be used.
If there's evidence that Shaka Packager is removing your transparency, that would be a bug for us. But AFAICT, it could be removed during transcoding (before Packager) or ignored by the decoder (after Packager).
I experience the same behavior, but with different codec and also without encryption.
I have a vp8 webm video with alpha channel and it plays correctly with Chrome natively, but after packaging the output webm file lost its alpha channel. You can check out with the links
original file: https://thumbplayer-76307.gzc.vod.tencent-cloud.com/testvideo/dash/alpha-webm-vp9/alpha.webm mpd: https://thumbplayer-76307.gzc.vod.tencent-cloud.com/testvideo/dash/alpha-webm-vp9/alpha-clear.mpd webm generated by Shaka: https://thumbplayer-76307.gzc.vod.tencent-cloud.com/testvideo/dash/alpha-webm-vp9/video-clear.webm
the original file in chrome://media correctly shows the alpha flag and file after packaging does not
I noticed in second case, vpx decoder of Chrome is failed to initialized without meaningful message, but the only different between two files are the later one went through Shaka
I use the following command to generate them
packager \
> in=/media/alpha-webm-vp9/alpha.webm,stream=video,output=/media/alpha-webm-vp9/video-clear.webm \
> --mpd_output /media/alpha-webm-vp9/alpha-clear.mpd
with latest Shaka running in docker
Edited: FFmpeg also reports the metadata for alpha mode is lost after packaging
if you have issue access those file, the original file is acquired from https://developer.chrome.com/blog/alpha-transparency-in-chrome-video/
Okay, thanks. I've tagged the issue, but this is marked as a low priority for now. Feel free to contribute a PR if you'd like to get it fixed soon.
any updates here?
I have a video (Codecs: AAC, Timecode, HEVC with Alpha) with transparent background (I continuously scroll a given text over the transparent background) which I want to play with DRM content protection.
System info
Operating System: MacOs Big Sur 2,6 GHz 6-Core Intel Core i7 Shaka Packager Version: v2.5.1-9f11077-release
Issue and steps to reproduce the problem
I converted this video (which I mentioned above) to VP9 with ffmpeg. The converted video is worked on my local environment (my webm video has still transparent background).
After that I used shaka-packager to create Widevine encryption with test environment (like here), but the transparent background is changed to black color.
Packager Command:
Extra steps to reproduce the problem? (1) I tried it with vp8 codec but it did not work either after shaka-packager using.
Do you have any ideas or advice?
What is the expected result? I expected my background of video to be transparent.
What happens instead? My background of video turned black.
https://user-images.githubusercontent.com/25309438/215476016-51931b21-2b00-4fc0-8f04-b56ab1881eb5.mp4