当前位置:网站首页>ffmpeg drawtext 添加文本水印
ffmpeg drawtext 添加文本水印
2022-08-05 09:26:00 【Ternence_Hsu】
API 参考:http://ffmpeg.org/ffmpeg-all.html#drawtext-1 参考 drawtext 的功能实现设置相关的值就可以
demo1 :实现添加
ffmpeg -pix_fmt yuv420p10le -s 3840x4320 -i 0_all_3840x4320_yuv420p10le.yuv -vf “drawtext=text=V1:fontcolor=White:shadowcolor=Blue:shadowx=4:shadowy=4:expansion=normal:x=3840/4:y=2160/4:fontsize=200:fontfile=/usr/share/fonts/truetype/liberation/LiberationSerif-Regular.ttf,drawtext=text=V2:fontcolor=White:shadowcolor=Blue:shadowx=4:shadowy=4:expansion=normal:x=3840/43:y=2160/4:fontsize=200:fontfile=/usr/share/fonts/truetype/liberation/LiberationSerif-Regular.ttf,drawtext=text=V1:fontcolor=White:shadowcolor=Blue:shadowx=4:shadowy=4:expansion=normal:x=3840/4:y=2160/43:fontsize=200:fontfile=/usr/share/fonts/truetype/liberation/LiberationSerif-Regular.ttf,drawtext=text=V2:fontcolor=White:shadowcolor=Blue:shadowx=4:shadowy=4:expansion=normal:x=3840/43:y=2160/43:fontsize=200:fontfile=/usr/share/fonts/truetype/liberation/LiberationSerif-Regular.ttf” -vframes 1 out.png -y
ffmpeg -pix_fmt yuv420p10le -s 3840x4320 -i 0_all_3840x4320_yuv420p10le.yuv -vf “drawtext=text=V1:fontcolor=White:shadowcolor=Blue:shadowx=4:shadowy=4:expansion=normal:x=3840/4:y=2160/4:fontsize=200:fontfile=/usr/share/fonts/truetype/liberation/LiberationSerif-Regular.ttf,drawtext=text=V2:fontcolor=White:shadowcolor=Blue:shadowx=4:shadowy=4:expansion=normal:x=3840/43:y=2160/4:fontsize=200:fontfile=/usr/share/fonts/truetype/liberation/LiberationSerif-Regular.ttf,drawtext=text=V1:fontcolor=White:shadowcolor=Blue:shadowx=4:shadowy=4:expansion=normal:x=3840/4:y=2160/43:fontsize=200:fontfile=/usr/share/fonts/truetype/liberation/LiberationSerif-Regular.ttf,drawtext=text=V2:fontcolor=White:shadowcolor=Blue:shadowx=4:shadowy=4:expansion=normal:x=3840/43:y=2160/43:fontsize=200:fontfile=/usr/share/fonts/truetype/liberation/LiberationSerif-Regular.ttf” 0_all_3840x4320_yuv420p10le_text.yuv
边栏推荐
猜你喜欢

Redis源码解析:Redis Cluster

欧盟 | 地平线 2020 ENSEMBLE:D2.13 SOTIF Safety Concept(上)

【LeetCode】623. 在二叉树中增加一行

上海控安技术成果入选市经信委《2021年上海市网络安全产业创新攻关成果目录》

汇编语言(8)x86内联汇编

express hot-reload

开源一夏|OpenHarmony如何查询设备类型(eTS)

There is only one switch, how to realize the nqa of master-slave automatic switching

ECCV 2022 Oral 视频实例分割新SOTA:SeqFormer&IDOL及CVPR 2022 视频实例分割竞赛冠军方案...

CCVR eases heterogeneous federated learning based on classifier calibration
随机推荐
正则表达式replaceFirst()方法具有什么功能呢?
【Excel实战】--图表联动demo_001
Code Audit - PHP
使用稀疏 4D 卷积对 3D LiDAR 数据中的运动对象进行后退分割(IROS 2022)
Voice conversion相关语音数据集综合汇总
韦东山 数码相框 项目学习(六)tslib的移植
shell脚本实例
seata源码解析:TM RM 客户端的初始化过程
Weekly Report 2022-8-4
放大器OPA855的噪声计算实例
Going to book tickets tomorrow, ready to go home~~
线程之Happens-before规则
施一公:科学需要想象,想象来自阅读
长达四年的减肥记录
深度学习21天——卷积神经网络(CNN):服装图像分类(第3天)
CPU的亲缘性affinity
动态内存开辟(C语言)
How ali cloud storage database automatically to speed up the loading speed of www.cxsdkt.cn how to set up the case?
Excuse me if you want to write data in mysql, with flink - connector - JDBC directly is ok, but I'm in the f
tensorflow.keras无法引入layers