![Ffmpeg 首先创建水印,然后创建文本](https://linux22.com/image/1564988/Ffmpeg%20%E9%A6%96%E5%85%88%E5%88%9B%E5%BB%BA%E6%B0%B4%E5%8D%B0%EF%BC%8C%E7%84%B6%E5%90%8E%E5%88%9B%E5%BB%BA%E6%96%87%E6%9C%AC.png)
我的代码:
ffmpeg -y -i tt.mp4 -i qmy.png -filter_complex "[1:v]
overlay=100:100:enable='if(gt(t,5),lt(t,10))'[img];[img][0:v]
drawtext=text='test':fontfile=PingFang-SC-
Regular.ttf:fontcolor=#FFFFFF:fontsize=36:x=120:y=120:enable='if(gt(t,5),lt
(t,10))'[out]" -map "[out]" out.mp4