delogo=x=1516:y=933:w=368:h=111 paints over a fixed logo with the pixels around its box; a box that touches the frame edge fails. Through ReelSDK's API a 10-second 1080p clip costs under a third of a cent, at $0.02 per compute minute.
Remove a logo from a video with ffmpeg
ffmpeg can't see behind a logo, only paint over it. Give delogo a box 4 px bigger than the logo on each side, 1 px inside the frame; on ReelSDK, removelogo with a mask took over 5 times as long. A crop just cuts the strip off.
GuidesUpdated
ffmpeg -i in.mp4 -vf delogo=x=1516:y=933:w=368:h=111 -c:v libx264 -crf 20 -c:a copy clean.mp4The box covers the logo plus 4 px on each side. The video is re-encoded; the audio is copied.
Variations
The other commands you will need
Find the box first
show=1draws the box in green on one frame, so you can check it before encoding the whole video.show box ffmpeg -ss 1 -i in.mp4 -vf delogo=x=1516:y=933:w=368:h=111:show=1 -frames:v 1 box.pngUse a mask with removelogo
The mask is a 1920x1080 image: white where the logo is, black elsewhere. Only the white pixels are filled.
removelogo ffmpeg -i in.mp4 -vf removelogo=mask.png -c:v libx264 -crf 20 -c:a copy removed.mp4Or crop it off
If the logo sits near an edge, cutting the edge away leaves no trace. Here the bottom 150 rows go.
crop ffmpeg -i in.mp4 -vf crop=1920:930:0:0 -c:v libx264 -crf 20 -c:a copy cropped.mp4
The flags
The options in these commands
| Flag | What it does | Used here |
|---|---|---|
delogo=x=1516:y=933 | Top-left corner of the box, in pixels | delogo |
w=368:h=111 | Width and height of the box; it must stay inside the frame | delogo |
show=1 | Draws the box in green instead of hiding it | Find the box |
-ss 1 ... -frames:v 1 box.png | Grabs one frame 1 s in to check the box | Find the box |
removelogo=mask.png | Fills the white pixels of a mask image from their surroundings | removelogo |
crop=1920:930:0:0 | Keeps the top 930 rows, full width | Crop |
Sources: ffmpeg filters: delogo, ffmpeg filters: removelogo, checked November 2026.
What these filters can and cannot do
The pixels under a logo are gone. delogo fills the box by blending the pixels just outside it, and removelogo fills the masked pixels from their neighbors. On our clip, delogo left a smeared patch with streaks, and removelogo a softer blur. Both are fine for a small mark on a busy picture and obvious on flat areas like sky or walls.
Use them on footage you have the rights to: an old logo in your own archive, a timestamp a camera burned in, a channel bug added by mistake. If you still have the original file, use that instead.
Finding the box
Guessing coordinates wastes encodes. Run delogo with show=1 on a single frame and look at the green box: it should cover the whole logo with a few pixels to spare, because edges of a logo blend into the picture. We knew where our logo sat and how big it was, so we added 4 px on each side.
Why boxes at the edge fail
delogo needs pixels on every side of the box to paint with. Our logo sat 40 px from the corner, but a box stretched to the frame edge, x=1520:y=937:w=400:h=143, failed with "Logo area is outside of the frame". One pixel less, w=399:h=142, worked. For a logo flush with the edge, crop that strip off instead.
delogo or removelogo
delogo works on a rectangle, so it also repaints the background around a round or thin logo. removelogo only touches the pixels of its mask, which follows the logo's shape; ours came from the logo's own alpha, grown by 4 px. The price is time: on the API, removelogo took almost a minute against about 10 seconds for delogo, more than 5 times as long.
Both work only on a logo that stays in place. A moving watermark needs tracking that ffmpeg filters do not do.
Without installing ffmpeg
The same command as one API call
Send the same args to POST /v1/ffmpeg with the video URL in inputs; for removelogo, add the mask's URL too. Each job runs ffmpeg 8.1 on a fresh machine at $0.02 per compute minute, billed per second; the delogo job finished in about 10 seconds and cost under a third of 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/out/job_cdbvzy6e6l8xaa8o6pqk/watermarked.mp4"
},
"args": [
"-i", "in.mp4", "-vf", "delogo=x=1516:y=933:w=368:h=111", "-c:v",
"libx264", "-crf", "20", "-c:a", "copy", "clean.mp4"
],
"outputs": ["clean.mp4"]
}'FAQ
Questions, answered
How do I remove a logo from a video with ffmpeg?
Cover it with delogo: ffmpeg -i in.mp4 -vf delogo=x=1516:y=933:w=368:h=111 -c:a copy out.mp4, with your own box. Check the box first with show=1 on one frame.
Why does delogo say the logo area is outside of the frame?
The box touches or crosses the frame edge. Keep it at least 1 px inside, or crop the edge away.
Can ffmpeg restore what is under a watermark?
No. It fills the area from the pixels around it, which leaves a blur or smear. Only the original file has the real picture.
Can I run delogo with an API?
Yes. POST the same args to https://api.reelsdk.com/v1/ffmpeg with the video URL in inputs. It runs ffmpeg 8.1 for $0.02 per compute minute, billed per second.
- Add a watermark or logo to a video with ffmpegPut a PNG logo in a corner with overlay: scale it, make it semi-transparent, keep it off the edge, or show it only for the first seconds.
- Crop a video with ffmpegCut a frame down with crop=w:h:x:y: a centered 9:16 or square crop, a fixed region, and cropdetect to find black bars.
- Remove a green screen with ffmpeg chromakeyKey out a green backdrop with chromakey, clean the green edges with despill, put a new background behind it or export a transparent WebM.
- 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.
- ffmpeg -filter_complex explainedLabels, commas and semicolons: how a filtergraph wires inputs to outputs, with four working graphs and the errors they fix.
- 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.
- 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.
Sources, checked November 2026
Ready to build?
Ship video from your app today
Your first $0.50 is free, and one key covers every endpoint.
