最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to timestamp video with seconds and milliseconds with ffmpeg? - Stack Overflow

programmeradmin3浏览0评论

I am trying to timestamp an .mp4 video with seconds and milliseconds using ffmpeg. I can timestamp with hours, minutes, seconds and milliseconds using the code below but just can't figure out how to print seconds and milliseconds.

ffmpeg -i input.mp4 -vf "drawtext=:text='%{pts\:s}':rate=25:start_number=0:x=(w-tw)/2:y=h-(3*lh):fontcolor=white:fontsize=50,drawtext=:text='%{pts\:hms}':rate=25:start_number=0:x=(w-tw)/2:y=h-(2*lh):fontcolor=white:fontsize=50" output.mp4
发布评论

评论列表(0)

  1. 暂无评论