![ffmpeg 将覆盖从 x1 移动到 x2,持续时间为 3 秒](https://linux22.com/image/1553180/ffmpeg%20%E5%B0%86%E8%A6%86%E7%9B%96%E4%BB%8E%20x1%20%E7%A7%BB%E5%8A%A8%E5%88%B0%20x2%EF%BC%8C%E6%8C%81%E7%BB%AD%E6%97%B6%E9%97%B4%E4%B8%BA%203%20%E7%A7%92.png)
如何将覆盖从 移动x1
到秒x2
之间00:00:05-00:00:08
,然后再次从 移动x2
到秒x1
之间00:00:17-00:00:20
使用表达式求值?
[bg][fg]overlay= {??????} : 230
答案1
使用
x='X1+(X2-X1)*(between(t,5,8)*(t-5)/3+between(t,8,17)-between(t,17,20)*(t-20)/3)'
如何将覆盖从 移动x1
到秒x2
之间00:00:05-00:00:08
,然后再次从 移动x2
到秒x1
之间00:00:17-00:00:20
使用表达式求值?
[bg][fg]overlay= {??????} : 230
使用
x='X1+(X2-X1)*(between(t,5,8)*(t-5)/3+between(t,8,17)-between(t,17,20)*(t-20)/3)'