我用貼別人的代碼由LordNeckbeard這裏:FFmpeg move overlay from one pixel coordinate to anotherFFmpeg的 - 從A點移動覆蓋到B到C到d
我修改了它一下這個:
ffmpeg -i 4632.mpg -i 4632.bmp -filter_complex "[0]scale=320:240[over];
[1][over]overlay=enable='between=(t,0,50)':x=20+t*30:y=20+t*20" -s
1280:720 -c:a copy -y output.mpg
我想爲了能夠限制移動,覆蓋層不會脫離屏幕。 如何在四個方向上移動縮放的剪輯疊加層,X & Y從原始位置開始並返回?
太棒了。這工作。非常感謝。 – techr
我該如何平滑運動?我在Adobe Premiere上看到了類似的效果,並且與ffmpeg結果相比,動畫平穩移動。 – techr
分享Premiere視頻。 – Mulvya