当前位置:网站首页>[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卷积
- How to upload and download files
- 传惠普/戴尔/微软/亚马逊考虑将部分硬件生产线转到大陆以外
- Houdini 笔记2
- 2022 pole technology communication - anmou technology opens a new chapter of commercialization
- 7-year-old boy playing chess too fast? The robot actually broke its finger
- Face recognition and fingerprint recognition are weak? Pentagon develops long-distance heartbeat recognition
- Sword finger offer46 translates numbers into strings
- Gartner released the latest market guide for Chinese AI start-ups, and Hongji cyclone was once again rated as a representative enterprise
- 81. (cesium home) cesium modifies the gray background (default blue)
猜你喜欢

连接池快速入门

Houdini 求中点,点连成线

Easy gene | introduction to macrovirus sequencing technology

SSM integration example

执行上下文与词法环境

Message queue -- the problem introduced: repeated consumption & sequential consumption & distributed transactions

Bean注入和生命周期

Buu brush inscription 3

7-year-old boy playing chess too fast? The robot actually broke its finger

08_ue4进阶_开始结束暂停菜单等ui
随机推荐
[pytorch advanced] preservation and use of pytorch model
英国德国相继推出5G商用服务,华为成幕后功臣
Leetcode hash table class
Arpspoof installation and use
ST表、带权并查集
Transaction rollback and record exception information at the same time
Leetcode linked list class
How to check whether the pytorch you are using is a GPU version
Tinui development history
How to upload and download files
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
传惠普/戴尔/微软/亚马逊考虑将部分硬件生产线转到大陆以外
Correct the classpath of your application so that it contains compatible versions of the classes com
South Korea plans to spend 1 trillion won a year on research and development of semiconductor materials and equipment
09_ UE4 advanced_ Enter the next level and reserve the blood volume
Keepalived high availability introduction and configuration details
Keepalived高可用介绍与配置详解
Gartner发布最新《中国AI初创企业市场指南》,弘玑Cyclone再次被评为代表性企业
Correlation analysis between [machine learning] variables
QT基础第一天 (1)QT,GUI(图形用户接口)开发