Add image overlay on video FFmpeg

前端 未结 2 1274
一整个雨季
一整个雨季 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 17:51

    I used this on android and its working fine :-

    String[] cmd = new String[]{ "-i", video.mp4, "-i", image.png, "-filter_complex", "overlay=0:main_h-overlay_h", outputFile.getPath()};
    

提交回复
热议问题