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
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.mp4The 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
Only for the first 5 seconds
Top-left this time, and
enableswitches 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
| Flag | What it does | Used here |
|---|---|---|
-i logo.png | The logo is a second input; [1:v] refers to it | Both |
scale=360:-1 | 360 px wide, height from the aspect ratio | Both |
format=rgba | Makes sure there is an alpha channel to work on | Both |
colorchannelmixer=aa=0.7 | Multiplies the alpha by 0.7: 70% opaque | Both |
overlay=W-w-40:H-h-40 | W and H are the video, w and h the logo: 40 px from the bottom-right | Corner |
overlay=40:40 | 40 px from the top-left | First 5 s |
enable='between(t,0,5)' | Only draws the logo from 0 to 5 s | First 5 s |
-map "[v]" -map 0:a | Writes the new picture with the original audio | Both |
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.
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"]
}'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.
- Watermark videoStamp a PNG logo on every frame at any position and opacity with one ffmpeg call, about two thirds of a cent per 30 s clip.
- Remove a logo from a video with ffmpegHide a fixed logo or timestamp with delogo or removelogo, find its exact box with show=1, or crop it away, and know what each leaves behind.
- Picture-in-picture video with ffmpegPut one video in the corner of another with scale, pad and overlay, end it with the main clip, or bring the inset in later.
- Add text to a video with ffmpeg drawtextDraw a title or a running clock on video with drawtext: font, size, a box behind it, position, timing and the colon you have to escape.
- Put two videos side by side with ffmpegPlace videos next to each other with hstack, on top of each other with vstack, or in a 2x2 grid with xstack, after scaling them to match.
- ffmpeg -filter_complex explainedLabels, commas and semicolons: how a filtergraph wires inputs to outputs, with four working graphs and the errors they fix.
- FFmpeg onlineRun your own ffmpeg command on your files in the browser, free and without installing or uploading anything.
- ReelSDK vs self-hosted FFmpegTranscoding a minute of 1080p to 720p takes about 24 seconds of compute: about 0.8 cents on ReelSDK, about a tenth of a cent on a busy 4 vCPU box. Below about 11,000 minutes a month, the API costs less than an always-on box.
Ready to build?
Ship video from your app today
Your first $0.50 is free, and one key covers every endpoint.
