Scale the logo, lower its alpha and overlay it: a PNG at 360 px wide and 70% opacity, 40 px in from the corner of a 1920x1080 video. Stamping a 10-second clip on ReelSDK costs under half a cent, at $0.02 per compute minute.

Add a watermark or logo to a video with ffmpeg

A watermark is a second input laid over the video with overlay: about 360 px wide on 1920x1080 video, less on vertical. ReelSDK's API takes the logo as one more input, and enable= shows it for only the first 5 seconds.

GuidesUpdated

watermark
ffmpeg -i in.mp4 -i logo.png -filter_complex \
  "[1:v]scale=360:-1,format=rgba,colorchannelmixer=aa=0.7[logo];\
   [0:v][logo]overlay=W-w-40:H-h-40[v]" \
  -map "[v]" -map 0:a -c:v libx264 -crf 20 -c:a copy watermarked.mp4

The logo is scaled to 360 px wide, its alpha cut to 70%, and placed 40 px in from the right and bottom. The audio is copied.

Variations

The other commands you will need

  1. Only for the first 5 seconds

    Top-left this time, and enable switches it off after 5 s. At 4.9 s the logo is there; at 5.2 s the frame matches the source.

    first 5 s
    ffmpeg -i in.mp4 -i logo.png -filter_complex \
      "[1:v]scale=360:-1,format=rgba,colorchannelmixer=aa=0.7[logo];\
       [0:v][logo]overlay=40:40:enable='between(t,0,5)'[v]" \
      -map "[v]" -map 0:a -c:v libx264 -crf 20 -c:a copy first-5s.mp4

The flags

The options in these commands

The options in these commands
FlagWhat it doesUsed here
-i logo.pngThe logo is a second input; [1:v] refers to itBoth
scale=360:-1360 px wide, height from the aspect ratioBoth
format=rgbaMakes sure there is an alpha channel to work onBoth
colorchannelmixer=aa=0.7Multiplies the alpha by 0.7: 70% opaqueBoth
overlay=W-w-40:H-h-40W and H are the video, w and h the logo: 40 px from the bottom-rightCorner
overlay=40:4040 px from the top-leftFirst 5 s
enable='between(t,0,5)'Only draws the logo from 0 to 5 sFirst 5 s
-map "[v]" -map 0:aWrites the new picture with the original audioBoth

Sources: ffmpeg filters: overlay, ffmpeg filters: colorchannelmixer, checked November 2026.

Placing it with W, w, H and h

In overlay, capital W and H are the size of the video underneath, lowercase w and h the size of the logo. W-w-40 is the x that puts the logo's right edge 40 px from the frame's right edge, wherever the video size. For our clip that worked out to x 1520, y 937.

The other corners follow the same idea: 40:40 is top-left, W-w-40:40 top-right, 40:H-h-40 bottom-left, and (W-w)/2:(H-h)/2 centers it.

Size it for the video, not the file

A logo file is usually made for print or the web, not for a 1920x1080 frame. Ours was 560x160; at that size it covers too much of the picture. scale=360:-1 sets the width and keeps the shape, giving 360x103. For vertical video, pick a smaller width, since the frame is only 1080 px across.

Transparency without a second file

colorchannelmixer=aa=0.7 scales the logo's alpha channel, so the whole logo becomes 70% opaque while its transparent parts stay transparent. format=rgba first makes sure there is an alpha channel to scale: a JPG has none, and some PNGs are stored as a palette.

The picture is re-encoded, because the logo becomes part of every frame. Copying the audio with -c:a copy is safe.

Show it only part of the time

enable takes an expression in t, the time in seconds. between(t,0,5) shows the logo for the first 5 seconds. We checked a frame on each side: at 4.9 s the logo was there, and at 5.2 s the frame matched the source.

Without installing ffmpeg

The same command as one API call

Send the same args to POST /v1/ffmpeg with the video and the logo URLs in inputs. Each job runs ffmpeg 8.1 on a fresh machine at $0.02 per compute minute, billed per second; this one finished in about 14 seconds and cost under half a cent.

terminalTry it
curl "https://api.reelsdk.com/v1/ffmpeg?wait=60" \
  -H "Authorization: Bearer $REELSDK_KEY" \
  --json '{
    "inputs": {
      "in.mp4": "https://api.reelsdk.com/f/lib/demo/landscape.mp4",
      "logo.png": "https://api.reelsdk.com/f/lib/in/guides/reelsdk-logo.png"
    },
    "args": [
      "-i", "in.mp4", "-i", "logo.png", "-filter_complex",
      "[1:v]scale=360:-1,format=rgba,colorchannelmixer=aa=0.7[logo];[0:v][logo]overlay=W-w-40:H-h-40[v]",
      "-map", "[v]", "-map", "0:a", "-c:v", "libx264", "-crf", "20", "-c:a",
      "copy", "watermarked.mp4"
    ],
    "outputs": ["watermarked.mp4"]
  }'
The logo at 360x103, 70% opaque, 40 px from the bottom-right corner, on every frame.Input: landscape clipreelsdk-logo.png

FAQ

Questions, answered

How do I add a logo to a video with ffmpeg?

Give the logo as a second input and overlay it: ffmpeg -i in.mp4 -i logo.png -filter_complex "[0:v][1:v]overlay=W-w-40:H-h-40" -c:a copy out.mp4.

How do I make the watermark semi-transparent?

Scale its alpha before the overlay: [1:v]format=rgba,colorchannelmixer=aa=0.7[logo] makes it 70% opaque.

How do I remove a watermark again?

Keep the original file. Filters like delogo can only blur the area; see our guide on removing a logo with ffmpeg.

Can I watermark videos with an API?

Yes. POST the same args to https://api.reelsdk.com/v1/ffmpeg with the video and logo URLs in inputs. It runs ffmpeg 8.1 for $0.02 per compute minute, billed per second.

Ready to build?

Ship video from your app today

Your first $0.50 is free, and one key covers every endpoint.

Moonlit lake with a lit cabin under the mountains