[英]How to segment mp4 with ffmpeg or avconv, fast, where times are specified?
我需要將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.
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.