Specify background colour when generating movie fr

2019-07-04 20:44发布

I generate a 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 images have transparencies, they become black. Can I somehow make them white?

1条回答
聊天终结者
2楼-- · 2019-07-04 21:39

Before running ffmpeg, use ImageMagick to "flatten" each PNG against white.

mogrify -background white -flatten visualization/*.png
查看更多
登录 后发表回答