我需要在指定的零件中分割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.