ffmpeg screen blending mode makes transparent png pink

佐手、 提交于 2019-12-03 07:29:52

Try to convert colorspace before output with format=yuva422p10le (maybe similar colorspace, but this works for me), and maybe you need to convert input colorspace of overlay (or both movies) to rgba (format=rgba). Like this:

ffmpeg -i ttt.jpg -vf "movie=fix2.png [fix]; [in] setsar=sar=1,format=rgba [inf]; [inf][fix] blend=all_mode=overlay:all_opacity=1,format=yuva422p10le [out]" -q:v 1 -y xxx.jpg

This workaround is helped me to avoid pink overlay.

ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
  built on Sep 15 2013 12:22:11 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!