3

我正在尝试使用ffprobe. 我使用以下命令:

ffprobe -show_frames -of compact=p=0 -f lavfi "movie=test_clip.avi,select=gt(scene\,.4)" > test_clip_cuts.txt

它工作得很好,毫无疑问。但现在我只想检测特定范围内的削减。假设从 3 到 8 秒。我怎么能那样做?

我尝试使用-read_intervals 3%8,但它给了我一个错误:

Could not seek to position 3000000: Invalid argument
Could not read packets in interval id:0 start:3 end:8

命令-read_intervals %+3(从一开始到第 3 秒读取)有效,但以奇怪的方式 - 它检测到第 4 秒(我猜是超过)的剪切。

所以我很困惑。这些“间隔”是什么以及如何使用它们?是否可以在常规秒内设置范围?

以防万一这是我的测试剪辑https://yadi.sk/i/nd-c12mYeQ2nb

4

1 回答 1

0

最后我找到了答案 =)
要检测到只有 3 到 8 秒之间的切割,我必须更换

"movie=test_clip.avi,select=gt(scene\,.4)"

"movie=test_clip.avi,select=between(t\,3\,8)*gt(scene\,.4)"
于 2019-07-08T15:57:48.157 回答