2021年4月11日星期日

ffmpeg doesn't respect the transparency of the overlayed image by default

Here is what I am running

ffmpeg -i urban_pop.mp4 -i C:/Users/hp/Documents/Projects/raceit/logos/logo.png -filter_complex "overlay=540:95" output.mp4  

But the original image has transparent areas and opaque areas. I want the transparent areas to remain transparent so that we can see the video through those areas. How can I do it?

As per docs here I can see it should respoect transparency by default https://ffmpeg.org/ffmpeg-filters.html#Examples-88 Help me understand what I am doing wrong

Note that I am not talking about customizing the overall transparency of the image while overlaying, but to load the image itself maintaining its original transparency

https://stackoverflow.com/questions/67051549/ffmpeg-doesnt-respect-the-transparency-of-the-overlayed-image-by-default April 12, 2021 at 09:06AM

没有评论:

发表评论