>FFmpegLab Start free
FFmpeg Guide

How to add a watermark or logo with FFmpeg

Drop a PNG logo into any corner with the overlay filter, control padding and transparency, scale it to the footage, or burn in a text watermark.

A watermark is just a second image layered on top of the video. The overlay filter takes an x:y position, and because it understands the main video width W/H and the logo width w/h, you can pin it to a corner with simple math that works at any resolution. Use a transparent PNG so only the logo shows.

Key takeaways

Logo in a corner with padding

Pin it bottom-right with 20px of margin — swap the formula for any corner:

ShareRenders{ } CodeConfig
Generated CodeLogsCustomize
# bottom-right, 20px margin
ffmpeg -i in.mp4 -i logo.png -filter_complex \
  "overlay=W-w-20:H-h-20" -c:a copy out.mp4

# corners:  top-left 20:20   top-right W-w-20:20
#           bottom-left 20:H-h-20

Scale the logo and lower its opacity

Resize the logo relative to the video width so it looks right on any footage, and dial its transparency down so it doesn't dominate:

ShareRenders{ } CodeConfig
Generated CodeLogsCustomize
ffmpeg -i in.mp4 -i logo.png -filter_complex \
  "[1:v]scale=iw*0.15:-1,format=rgba,colorchannelmixer=aa=0.6[wm]; \
   [0:v][wm]overlay=W-w-20:H-h-20" -c:a copy out.mp4

Text watermark (no image needed)

For a quick credit or handle, drawtext burns text directly — semi-transparent white in the bottom-right:

ShareRenders{ } CodeConfig
Generated CodeLogsCustomize
ffmpeg -i in.mp4 -vf \
  "drawtext=text='@yourhandle':[email protected]:fontsize=28:\
   x=W-tw-20:y=H-th-20" -c:a copy out.mp4

Add a watermark visually instead

FFmpegLab lets you drag a logo onto the preview, resize it, and set opacity — then writes the matching overlay command behind the scenes, fully offline. Layer it alongside other filter_complex effects, then compress for delivery.

✦  Fresh from the render queue

Better FFmpeg workflows, delivered.

Get practical commands, new templates, and deep-dive guides for the edits that are usually hardest to get right.

✓  Copy-pasteable commands    ✓  Editor templates    ✓  No noise
One useful email at a time.

Brand your videos — in your browser.

Free in your browser — nothing to install, nothing uploaded.