I have two transparent pictures, one is in completely transparent png format, its name is C0.png, the other is the main picture, and its name is C1.png. I want to superimpose two pictures with xfade and transparency effects.
I used the command below:
ffmpeg -loop 1 -t 12 -i c0.png -t 12 -loop 1 -i c1.png -filter_complex "[0]format=rgb24,drawbox=thickness=fill,split[black][black2];[black2]negate[white];[black][white]xfade=transition=wipedown:duration=1:offset=0[alf];[0][1]overlay=format=auto[ovr];[ovr][alf]alphamerge[fg];[0][fg]overlay=format=auto:alpha=1,format=yuv420p" -t 12 -pix_fmt yuv420p 1p.webm
But after executing this way, the final webm video will have a black background, and what I want is a video with a transparent background。
How to optimize it, look forward to your help, thank you