我有两个 FFmpeg 覆盖命令。这两个脚本可以合并为一个吗
修复顶部:
ffmpeg -i final.mp4 -i "logo.mov" -filter_complex "[1:v:0]scale=100:-1[inner];[0:v:0][inner]overlay=10:10:enable='between(t,0,5)',drawtext=fontfile=C\:/Windows/Fonts/arial.ttf:fontsize=20:fontcolor=white:shadowcolor=black:shadowx=2:shadowy=2:x=5:y=50:text=@(youraccountname):enable='between(t,0,5)'[out]" -map [out] -map 0:a? TOP.mp4
将顶部最终与底部固定:
ffmpeg -i TOP.mp4 -i "logo.mov" -filter_complex "[1:v:0]scale=100:-1[inner];[0:v:0][inner]overlay=main_w-(overlay_w+10):main_h-(overlay_h+10):enable='between(t,6,10)',drawtext=fontfile=C\:/Windows/Fonts/arial.ttf:fontsize=20:fontcolor=white:shadowcolor=black:shadowx=2:shadowy=2:x=220:y=720:text=@(youraccountname):enable='between(t,6,10)'[out]" -map [out] -map 0:a? FIXa.mp4