Posted: . At: 9:29 AM. This was 4 years ago. Post ID: 14634
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


Remove a logo from a video easily with ffmpeg.


It is very easy with ffmpeg to remove a logo from a video. This is done with the delogo filter.

Below is an example. Here I am using the delogo filter. This is the x and y locations of the logo and the width and height: “delogo=x=483:y=25:w=298:h=77”.

┌─[jason@jason-desktop][~/Videos]
└──╼ $ffmpeg -i input.mp4 -vf "delogo=x=483:y=25:w=298:h=77" -c:a copy output.mp4

Test it this way. Use the :show=1 parameter to the filter to place a green box around the selected area. Keep adjusting the filter until it works just the way you want.

┌─[jason@jason-desktop][~/Videos]
└──╼ $ffplay -i input.mp4 -vf "delogo=x=483:y=25:w=298:h=77:show=1"

Another way is to take a screenshot of the video and find the x and y coordinates in a graphics program to determine the location of the logo, and the size.

A shot taken of the video before the filter.

Our video before removing the logo.
Our video before removing the logo.

And, this is the video after removing the logo from it. This worked pretty well, but this is not perfect. But it works better on smaller logo sizes. This has blurred it out. This does work very well in an ideal use case though. It is well worth trying out if you wish to create a torrent and wish to remove a screener logo or the station ID from a TV show.

Our video after removing the logo.
Our video after removing the logo.

Try this out today and see how you go with it. it should be a very useful tool for video creators.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.