当前位置:网站首页>Ffmpeg command (VIII). Add watermark to video
Ffmpeg command (VIII). Add watermark to video
2022-04-22 07:38:00 【Xu Sanduo 2020】
Video watermark
ffmpeg -i input.mp4 -i input.png -filter_complex overlay=main_w-overlay_w:main_h-overlay_h overlay.mp4
// input.mp4: The original video
// input.png: Watermark image
// overlay How to stack
// main_w-overlay_w:main_h-overlay_h The location of the watermark image (X:Y) This indicates that the watermark is in the lower right corner ,main_w Represents the width of the video ,overlay_w Represents the width of the watermark ,main_h Is the height of the original video ,overlay_h Represents the height of the watermark
// overylay.mp4 : Generated watermark video
The generated video effect is as follows :

Watermark location
| Location | command |
|---|---|
| top left corner | overlay=0:0 |
| The lower left corner | overlay=0:main_h-overlay_h |
| Upper right corner | overlay=main_w-overlay_w:0 |
| The lower right corner | overlay=main_w-overlay_w:main_h-overlay_h |
| middle | overlay=main_w/2-overlay_w/2:main_h/2-overlay_h/2 |
版权声明
本文为[Xu Sanduo 2020]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220617337234.html
边栏推荐
- 2021 learning plan
- Redis的设计与实现(2):如何处理过期键
- E. Figure skiing (string sorting / check-in) (Game 5 of 2021 training League warm-up training competition)
- LeetCode - 1 - (树的子结构、组合、螺旋矩阵、全排列<ⅠⅢ>)
- Codeforces Round #774 (Div. 2)
- 换根dp(啊啊啊啊啊)
- Leetcode - 2 - (parenthesis generation, longest palindrome string, ring linked list, reverse linked list, nodes in pairwise exchange linked list)
- Minimum circle coverage (basis of computational geometry)
- A. Weird flecks, but OK (Computational Geometry & three-dimensional minimum circle coverage) (the first game of 2021 Training Alliance warm-up training competition)
- 深入理解MySQL(5):详谈MySQL锁算法
猜你喜欢

Leetcode - 6 - (string multiplication, next larger element < Ⅰ Ⅱ Ⅲ >, K sets of inverted linked list)

1005 Monopoly 同余求解(2021中国大学生程序设计竞赛CCPC-网络选拔赛重赛)

The system log file is too large

1. Jam packed (Game 5 of 2021 training League warm-up training competition)

LeetCode - 1 - (树的子结构、组合、螺旋矩阵、全排列<ⅠⅢ>)

L1-071 previous life files (20 points) (similar two points)

Linked list problem record I

L2-002 linked list weight removal (pit of test point 1)

L2-005 set similarity (set judgment)

B.Cutting Corners (简单几何/签到)(2021年度训练联盟热身训练赛第五场)
随机推荐
762 · longest common subsequence II
Can the following SQL optimize query performance with index
Leetcode - 3 - (string addition, maximum number of consecutive 1 < Ⅰ Ⅲ >, maximum difficulty of the exam, deletion of the penultimate node of the linked list)
Explanation and use of interface
189. Rotation array
Bom 浏览器对象模型
Kotlin学习一、作用域函数let、with、run、apply、also
Dom 文档对象模型
C language | array
C.Ducky Debugging(简单判断/签到)(2021年度训练联盟热身训练赛第五场 )
Pointer structure const summary
Detailed explanation of linked list
pip一直更新失败?多数是网络问题!
Instructions and examples of instanceof
Final keyword
L1-064 AI core code valued at 100 million (20 points) has wrong format
15. Full arrangement
并发编程的艺术(11):JUC里的工具类介绍
并发编程的艺术(6):详解ReentrantLock的原理
Leetcode - 4 - (longest substring without repeated characters, candy distribution, binary tree traversal)