Я ищу и нахожу способ использования mkvtoolnox для разделения видеофайла таким образом, чтобы каждый файл имел одинаковый размер в здесь , но не нахожу способ так, чтобы каждый файл имел одинаковую длительность (вроде 10 минут). Там в любом случае? Мой вопрос о mkvtoolnox, а не об использовании других инструментов. Я искал и нашел другие способы с помощью ffmpeg:
Это можно сделать довольно просто с помощью mkvmerge, используя простой вариант опции - split
:
mkvmerge --split duration:00:10:00.000 input_file.mkv -o split.mkv
Эта неукрашенная командная строка (другая намного больше сложных опций доступно для - split
) создаст шаблон именования файлов out для split-001.mkv, split-002.mkv, split-003.mkv и т. д.
Полная запись справочной страницы для разделения времени / продолжительности с помощью mkvmerge выглядит следующим образом:
2. Splitting after a duration.
Syntax: --split [duration:]HH:MM:SS.nnnnnnnnn|ds
Examples: --split duration:00:60:00.000 or --split 3600s
The parameter must either have the form HH:MM:SS.nnnnnnnnn for
specifying the duration in up to nano-second precision or be a
number d followed by the letter 's' for the duration in
seconds. HH is the number of hours, MM the number of minutes,
SS the number of seconds and nnnnnnnnn the number of
nanoseconds. Both the number of hours and the number of
nanoseconds can be omitted. There can be up to nine digits
after the decimal point. After the duration of the contents in
the current output has reached this limit a new output file
will be started.
Насколько крута командная строка:)