Add image overlay on video FFmpeg

前端 未结 2 1275
一整个雨季
一整个雨季 2020-12-31 17:09

I have a video, test.mp4, and an image, test.png.

test.png is a black image with a transparent \"hole\" in the center.

2条回答
  •  独厮守ぢ
    2020-12-31 18:14

    Try this:

    ffmpeg -i test.mp4 -framerate 30000/1001 -loop 1 -i test.png -filter_complex "[1:v] fade=out:st=30:d=1:alpha=1 [ov]; [0:v][ov] overlay=10:10 [v]" -map "[v]" -map 0:a -c:v libx264 -c:a copy -shortest out.mp4
    

提交回复
热议问题