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
本文介绍如何使用FFMPEG工具将水印或logo添加到视频的四个角落及中心位置。通过不同的命令参数设置,可以实现将图片水印放置在视频的不同区域,包括左上角、右上角、左下角、右下角和中心。
1189

被折叠的 条评论
为什么被折叠?



