我正在对一张透明的图片(spade.png)进行缩放和旋转,并将其作为覆盖层放在输入图像上并保存输出.png。这是我的命令:
ffmpeg -y -i input.png -i spade.png -filter_complex [1]scale=120:114,setsar=1,format=bgra,rotate=0.78:c=none:ow=rotw(0.78):oh=roth(0.78)[s];[0][s]overlay=728-114*sin(0.78):177[out] -pix_fmt bgra -strict experimental -s 640x360 -map [out] output.png
铲子.png(250x238):
当我不对spade.png进行缩放时,它显示正常:
但是当我缩放+旋转spade.png时,颜色填充不正常:
这是已知的ffmpeg bug吗?还是我使用-filter_complex参数的顺序有误?我应该使用另一个pix_frmt吗?有任何想法吗?谢谢。
ffmpeg -y -i input.png -i spade.png -filter_complex [1]scale=120:114,setsar=1,format=bgra,rotate=0.78:c=none:ow=rotw(0.78):oh=roth(0.78)[s];[0][s]overlay=728-114*sin(0.78):177[out] -pix_fmt bgra -strict experimental -s 640x360 -map [out] output.png
铲子.png(250x238):
![shovel](https://i.gyazo.com/f937e9d8d34dc53b92912026beecc398.png)
![ok](https://i.gyazo.com/ca6adccf2ae21fde3438a20bf5354a9f.png)
![problem](https://i.gyazo.com/1c393f955952d59e2a93907352eafdfb.png)
c=black@0
- Gyan