gpt4 book ai didi

video - ffplay : Show timestamp (When paused)

转载 作者:行者123 更新时间:2023-12-03 23:48:46 29 4
gpt4 key购买 nike

可以像这样使用 ffplay 显示时间戳:

ffplay -vf "drawtext=text='%{pts\:hms}':fontcolor=white:shadowcolor=black:shadowx=3:shadowy=3:fontsize=48:x=(w-tw)/2:y=h-(2*lh)" video.mp4

但是,我想显示时间戳 仅在视频暂停时 .

ffplay可以吗?此外,如果可能的话,我希望在浏览视频时暂时显示时间戳。

最佳答案

不完全符合您的要求,但请尝试 mpvbookmarker.lua .
创建配置文件后,如 https://github.com/nimatrueway/mpv-[bookmark-lua-script][1] 中所述,您将能够使用以下快捷方式来保存/检索时间戳书签(保存在 JSON 文件中):

Ctrl+1 script_message bookmark-set  1       #  `Ctrl+1` will "save current filePath and seekPos to bookmark #1 slot"
Alt+1 script_message bookmark-load 1 # `Alt+2` will "restore current filePath and seekPos from bookmark #1 slot"
Alt+Ctrl+1 script_message bookmark-peek 1 # `Alt+Ctrl+2` will give you a "peek of the filename, its immediate parent directory and seek-pos saved in the bookmark #1 slot"
Ctrl+2 script_message bookmark-set 2
Alt+2 script_message bookmark-load 2
Alt+Ctrl+2 script_message bookmark-peek 2
s script_message bookmark-update # `s` will update last saved/restored bookmark
d script_message bookmark-peek-current # `d` will peek last saved/restored bookmark (lastest saved/restored bookmark is only considered if current file is in the same directory as the bookmark file)
u script_message bookmark-set-undo # `u` will undo/revert last save or update action

关于video - ffplay : Show timestamp (When paused),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60763536/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com