Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use ffmpeg to remove video watermark

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "how to use ffmpeg to remove video watermark". In daily operation, I believe many people have doubts about how to use ffmpeg to remove video watermark. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubt of "how to use ffmpeg to remove video watermark". Next, please follow the editor to study!

I. premise of use

1. Make sure that the ffmepg tool is installed, and check the version of ffmepg on the Linux command line

Ffmpeg-version

I installed it myself.

Ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers

two。 Find a video with a watermark and test it in the same directory where the current command is entered.

For example, 1.MP4, here is a screenshot of my video.

Upload the video to the server and use the rz command (this command can be viewed by Baidu)

2. Remove watermark code and logic

1. To remove the watermark, you need to know the location of the watermark. How do you know the location of the watermark?

You can capture a complete picture from a video, and related software, such as PR, have tools to capture video frames. Here is a picture generated by PR, which will be more accurate.

Of course, you can also take your own screenshots and cut them to ensure the corresponding resolution of the video.

two。 Use the drawing tool to open the screenshot of the video and calculate the location of the watermark

Calculated, my video watermark coordinates are: 50640. The width and height of the watermark is 180 and 60.

3. Execute the command: / usr/bin/ffmpeg-I 1.mp4-vf "delogo=x=50:y=640:w=180:h=60:show=0"-CRAV a copy 2.mp4

The generated 2.mp4 is a video with the watermark removed.

The show=0 watermark position has no border, and the show=1 watermark position is overwritten by a green box.

/ usr/bin/ffmpeg uses different paths according to different installation paths, or it can be a global command ffmpeg

For the effect, I set the show to 1 to see the comparison with the picture above.

At this point, the study on "how to use ffmpeg to remove video watermark" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report