Watermark recipe
Add Image Watermark with FFmpeg
Overlay a logo or PNG watermark on a video with FFmpeg.
Command
Use this when
- You want to add a logo, icon, or PNG watermark to a video.
- You need to place the watermark in a corner with a margin.
- You can re-encode the video after overlaying the image.
Customize it
Generate FFmpeg overlay commands to add a logo or PNG watermark to a video.
Open Add Image WatermarkParameter breakdown
-i "logo.png"
Adds the watermark image as the second input.
overlay=W-w-20:H-h-20
Places the watermark 20px from the bottom-right corner.
-c:v libx264
Re-encodes video because overlay changes frame pixels.
-c:a copy
Keeps the original audio stream unchanged.