gpt4 book ai didi

matlab - 下面的截图功能是否可能比一秒更准确? (MATLAB,ffmpeg)

转载 作者:行者123 更新时间:2023-12-04 22:57:10 26 4
gpt4 key购买 nike

snip = 'ffmpeg -i %s -ss %d:%d:%d -t %d:%d:%d -async 1 -strict -2 %s';
snipstr = sprintf(snip,UncutFile,StartHRS,StartMIN,StartSEC,DurHRS,DurMIN,DurSEC,CutFile);
runsnip = system(snipstr);
这些行根据开始时间输入和持续时间输入来剪辑视频。我需要将我的视频剪辑到比一秒更准确的时间。
谢谢你。

最佳答案

time duration 的文档说:

There are two accepted syntaxes for expressing time duration.

[-][HH:]MM:SS[.m...]

HH expresses the number of hours, MM the number of minutes for amaximum of 2 digits, and SS the number of seconds for a maximum of 2digits. The m at the end expresses decimal value for SS.

or

[-]S+[.m...][s|ms|us]

S expresses the number of seconds, with the optional decimal part m.The optional literal suffixes s, ms or us indicate to interpretthe value as seconds, milliseconds or microseconds, respectively.

In both expressions, the optional - indicates negative duration.


示例: -ss 01:23:45.4-ss 5025.4

关于matlab - 下面的截图功能是否可能比一秒更准确? (MATLAB,ffmpeg),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68443337/

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