Describe the bug
i have two materials,one is a webm video with alpha channel,and another is a png image,i need to generate a video with background,the background is png image,and ensure alpha channel are preserved
i use libvpx to decode the input webm video, but the console reports the following error:
Expected behavior
I hope ffmpeg.wasm can decode webm format based video with transparent channel for easy operation
Screenshots
I use native ffmpeg to execute the same command, and it shows that the video input stream format output by ffmpeg is yuva420p, but the input stream format output using ffmpeg.wasm is yuv420p, and it feels like the transparent channel is lost.
native ffmpeg
ffmpeg.wasm
Desktop (please complete the following information):
Describe the bug i have two materials,one is a webm video with alpha channel,and another is a png image,i need to generate a video with background,the background is png image,and ensure alpha channel are preserved
To Reproduce here is code:
i use libvpx to decode the input webm video, but the console reports the following error:
Expected behavior
I hope ffmpeg.wasm can decode webm format based video with transparent channel for easy operation
Screenshots I use native ffmpeg to execute the same command, and it shows that the video input stream format output by ffmpeg is
yuva420p
, but the input stream format output using ffmpeg.wasm isyuv420p
, and it feels like the transparent channel is lost.native ffmpeg
ffmpeg.wasm
Desktop (please complete the following information):
Additional context png:![bg-vertical](https://github.com/ffmpegwasm/ffmpeg.wasm/assets/30484035/649758ac-5c7c-466b-9692-6daf0396c256)