gpt4 book ai didi

video - 如何用ffmpeg或avconv快速分割mp4,在哪里指定时间?

转载 作者:行者123 更新时间:2023-12-04 23:26:15 45 4
gpt4 key购买 nike

我需要在指定的片段中分割 mp4。它们都是不同的持续时间。分割示例:

1 - 0:00:00 to 0:01:11
segment 2 - 0:01:11 to 0:04:24
segment 3 - 0:05:51 to 0:06:30
...

我已经写了一个脚本来逐个提取它们,但是速度很慢。
我猜是因为它浪费了大量时间打开文件,从一开始就解码和寻找。

最佳答案

ffmpeg 有这个选项

- segment_times times 
Specify a list of split points. times contains
a list of comma separated duration specifications,
in increasing order. See also the segment_time option.

关于video - 如何用ffmpeg或avconv快速分割mp4,在哪里指定时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46418283/

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