Discussions

Ask a Question
Back to All

Overlay a transparent webm video onto an mp4

Hi, I'm trying to overlay a transparent webm video onto an mp4 video while maintaining transparency.

I'm using the following FFmpeg command:

ffmpeg -i "main_video.mp4" -c:v libvpx-vp9 -i "transparent-video-abigail_expressive_2024112501.webm" -filter_complex "[1:v]scale=300:300,format=yuva420p[overlay];[0:v][overlay]overlay=500:100" -t 5 "output_video.mp4"

And it works great with "Professional" avatars created by v1/video.webm EP, but when I try "lifestyle" avatars with transparent backgrounds (like Abigail_expressive_2024112501) after overlaying I still see a black background but with some opacity.

Do you know why this happens?