当前位置:网站首页>[ffmpeg] add timestamp summary to video files
[ffmpeg] add timestamp summary to video files
2022-07-26 20:56:00 【darlingmz】
Command record
Add local timestamp :( Close test effectively )
ffmpeg -re -i input.mp4 -vf “drawtext=fontsize=60:fontfile=FreeSerif.ttf:text=‘%{localtime:%Y-%m-%d %H-%M-%S}’:fontcolor=green:box=1:boxcolor=yellow” output.mp4
Add timestamp watermark :( suffer ffmpeg Version impact ? Only from 1970-01-01 80:00:00 Start )
ffmpeg -i input.mp4 -vf “settb=AVTB,setpts=‘trunc(PTS/1K)1K+st(1,trunc(RTCTIME/1K))-1Ktrunc(ld(1)/1K)’,drawtext=fontsize=100:fontcolor=white:text='%{localtime}.%{eif:1Mt-1Ktrunc(t*1K):d}:fontsize=40:fontcolor=white:box=1:x=50:y=70:boxcolor=black” -c:v libx264 -an -f mp4 output.mp4 -y
Add calculator watermark :( It can support to the millisecond level )
ffmpeg -i input.mov -vf “drawtext=fontsize=160:text=‘%{pts:hms}:fontsize=40:fontcolor=white:box=1:x=70:y=100:boxcolor=black’” -c:v libx264 -an -f mp4 output.mp4 -y
to A File plus system time :( Various online searches , Just try !!!)
ffmpeg -I input.mp4 -vf “drawtext=fontsize=60:text=‘%{localtime:%Y-%m-%d %H:%M:%S’}':fontsize=40:fontcolor=red:box=1:x=50:y=70:[email protected]:” -y output.mp4
ffmpeg -i input.mp4 -vf “drawtext=fontsize=160:text=‘%{localtime}’:fontsize=40:fontcolor=red:box=1:x=50:y=70:[email protected]:” -c:v libx264 -an -f mp4 output.mp4 -y
ffmpeg -i input.mp4 -vf “drawtext=fontsize=160:text=‘%{localtime:%T}’:fontsize=40:fontcolor=red:box=1:x=50:y=70:boxcolor=white:” -c:v libx264 -an -f mp4 output.mp4 -y
Reference address
Copyright : Link to this article :https://blog.csdn.net/ternence_hsu/article/details/102540626
Reference resources :《FFmpeg Beginner to master 》- “ Watermark the video ”

边栏推荐
- 深度可分离卷积(DepthwiseSeparableConvolution):Depthwise卷积与Pointwise卷积
- Nmap installation and use
- 消息队列——引入的问题:重复消费&顺序消费&分布式事务
- What is the role of cache in the storage system of data blocks?
- LeetCode链表问题——19.删除链表的倒数第N个节点(一题一文学会链表)
- 易基因|宏病毒组测序技术介绍
- [pyqt5 basic control usage analysis]
- 全球最聪明50家公司公布:中国厂商占据近半,华为名列第一
- BGP routing black hole and anti ring
- 7.25 simulation summary
猜你喜欢
随机推荐
Using union to sort MySQL
[基础服务] [数据库] ClickHouse的安装和配置
08_ UE4 advanced_ Start end pause menu UI
Interceptors
Installation and configuration of [basic services] [database] Clickhouse
【问题篇】浏览器get请求带token
MPLS multi protocol label switching technology
Buu brush inscription 4
2022 pole technology communication - anmou technology opens a new chapter of commercialization
LCP 11. Statistics of expected number
New features of ES6
[JVM series] JVM tuning
Marketing and sales document management and workflow solutions
Shell function, system function, basename [string / pathname] [suffix] can be understood as taking the file name in the path, dirname file absolute path, and user-defined function
hello 你好吗
从零开始搭建etcd分布式存储系统+Web管理界面
Gartner released the latest market guide for Chinese AI start-ups, and Hongji cyclone was once again rated as a representative enterprise
Establishment of APP automation testing framework (VIII) -- establishment of ATX server2 multi device cluster environment
What is the origin of CNEX labs, which let Huawei lose the lawsuit?
LCP 11. 期望个数统计


![Chapter 2: encounter obstacles! Bypass WAF filtering! [SQL injection attack]](/img/f8/e6991852547a370f4363a2b763e52e.png)






