使用 mkvtoolnix 分割视频文件以使每个文件的持续时间相同?

ydh*_*hat 3 video mkv

我在这里搜索并找到了使用 mkvtoolnix 分割视频文件以使每个文件具有相同大小的方法,但没有找到使每个文件具有相同持续时间(例如 10 分钟)的方法。有什么办法吗?我的问题是关于 mkvtoolnix 的,而不是关于使用其他工具的。我搜索了一下,找到了一些使用 ffmpeg 的其他方法:

and*_*.46 5

使用 mkvmerge 可以使用该选项的简单变体轻松完成此操作--split

mkvmerge --split duration:00:10:00.000 input_file.mkv -o split.mkv
Run Code Online (Sandbox Code Playgroud)

这个未经修饰的命令行(其他更复杂的选项可用于--split)将生成 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.
Run Code Online (Sandbox Code Playgroud)

命令行有多酷:)