ffmpeg 加 logo
How to add a watermark or logo to any corner or the center of a video with FFMPEG.
ffmpeg –i video.mp4 -i logo.png -filter_complex "overlay=10:10" -shortest top_left.mp4
ffmpeg –i video.mp4 -i logo.png -filter_complex "overlay=main_w-overlay_w-10:10" -shortest top_right.mp4
ffmpeg –i video.mp4 -i logo.png -filter_complex "overlay=10:main_h-overlay_h-10" -shortest bottom_left.mp4
ffmpeg –i video.mp4 -i logo.png -filter_complex "overlay=main_w-overlay_w-10/2:main_h-overlay_h-10/2" -shortest bottom_right.mp4
ffmpeg -i video.mp4 -i logo.png -filter_complex "overlay=main_w/2-overlay_w/2:main_h/2-overlay_h/2" -shortest center.mp4