当前位置:网站首页>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
边栏推荐
猜你喜欢

shell脚本实例

Concurrent CAS

2.4G无线收发模块的应用

Two-table query average grouping in sql server

2022.8.3

Embedded practice ---- based on RT1170 transplant memtester to do SDRAM test (25)

Thinking and summary of the efficiency of IT R&D/development process specification

pytorch余弦退火学习率CosineAnnealingLR的使用

Redis源码解析:Redis Cluster

eKuiper Newsletter 2022-07|v1.6.0:Flow 编排 + 更好用的 SQL,轻松表达业务逻辑
随机推荐
营销建议 | 您有一份八月营销月历待查收! 建议收藏 !
周报2022-8-4
HStreamDB Newsletter 2022-07|分区模型优化、数据集成框架进一步完善
2.4G无线收发模块的应用
express hot-reload
无题十三
Is there a problem with writing this?How to synchronize data in sql-client
CCVR eases heterogeneous federated learning based on classifier calibration
汇编语言(8)x86内联汇编
使用稀疏 4D 卷积对 3D LiDAR 数据中的运动对象进行后退分割(IROS 2022)
随时牵手 不要随意分手[转帖]
leetcode 剑指 Offer 10- II. 青蛙跳台阶问题
IO流篇 -- 基于io流实现文件夹拷贝(拷贝子文件夹及子文件夹内文件)满满的干货
flink cdc支持从oracle dg库同步吗
How ali cloud storage database automatically to speed up the loading speed of www.cxsdkt.cn how to set up the case?
21 Days of Deep Learning - Convolutional Neural Networks (CNN): Weather Recognition (Day 5)
十一道家常小菜详细攻略[图文并茂]
手把手教你纯c实现异常捕获try-catch组件
Creo 9.0 基准特征:基准平面
Excuse me, guys, is it impossible to synchronize two databases in real time using Flink SQL CDC?