Specify background color when creating movie from images

I generate video from png images using

ffmpeg -i visualization/%d.png -c:v libx264 -vf "scale=500:trunc(ow/a/2)*2"  -pix_fmt yuv420p z.mov

and if the images have transparencies, they turn black. Can I somehow make them white?

+3
source share
1 answer

Before running ffmpeg, use ImageMagick to “smooth” each PNG on a white background.

mogrify -background white -flatten visualization/*.png
+7
source

All Articles