织梦CMS - 轻松建站从此开始!

欧博ABG官网-欧博官方网址-会员登入

How to set pts time皇冠 format when using ffmpeg fil

时间:2025-08-20 14:18来源: 作者:admin 点击: 3 次
In order to draw Timestamp: 01:25., you should specify this one to (feed) ffmpeg: drawtext = text = 'Timestamp\: %{pts\:gmtime\:0\:%M\\\:%S}.' Don'

In order to draw Timestamp: 01:25., you should specify this one to (feed) ffmpeg:

drawtext = text = 'Timestamp\: %{pts\:gmtime\:0\:%M\\\:%S}.' Don't

If you specify this one to (feed) ffmpeg:

drawtext = text = '%{pts\:gmtime\:0\:%M\\:%S}'

, it gives Unterminated %{} near '{pts:gmtime:0:%M\' error.

But in bash

But if you're using bash-like shell and a weak quote, "......", to feed it,

\\ is escaped to \, and

\: is not escaped but remains without any changes because \: is not an escape sequence.

So it should be:

-filter_complex "drawtext = text = '%{pts\:gmtime\:0\:%M\\\\\:%S}'"

i.e. bash's "\\\\\:" for ffmpeg's \\\: for getting a single character : displayed.

Note that

If you only want to apply one or more filters to one video stream (e.g, drawtext), you can use -vf instead of using --filter_complex. The latter is reserved for applying filters on multiple streams.

(责任编辑:)
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:
发布者资料
查看详细资料 发送留言 加为好友 用户等级: 注册时间:2025-08-23 15:08 最后登录:2025-08-23 15:08
栏目列表
推荐内容