2017-09-26 36 views
0

我需要在指定的片段中分割mp4。他们都是不同的持续时间。示例分割:如何用ffmpeg或avconv快速分割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 
... 

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

回答

0

的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.