我使用此命令淡化2张照片,它可以与 1024×768 测试图片完美配合。
ffmpeg -loop 1 -i 1-test.jpg -loop 1 -i 2-test.jpg -filter_complex "[1:v][0:v]blend=all_expr='A*(if(gte(T,3),1,T/3))+B*(1-(if(gte(T,3),1,T/3)))'" -t 4 frames_%04d.png
但是我的原始图片为1920×1080 ,此错误会显示:
[Parsed_blend_0 @ 0x97c8240] First input link top parameters (size 1920x1080, SAR 0:1) do not match the corresponding second input link bottom parameters (1920x1080, SAR 1:1)
[Parsed_blend_0 @ 0x97c8240] Failed to configure output pad on Parsed_blend_0
为什么会发生这种情况,我该如何解决? 谢谢你的帮助!