AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1261476
Accepted
ydhhat
ydhhat
Asked: 2020-07-24 09:35:19 +0800 CST2020-07-24 09:35:19 +0800 CST 2020-07-24 09:35:19 +0800 CST

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

  • 772

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

  • 如何使用 ffmpeg 自动分割视频而不重新编码?
  • 分割 MP4 文件
video mkv
  • 1 1 个回答
  • 2684 Views

1 个回答

  • Voted
  1. Best Answer
    andrew.46
    2020-07-24T17:40:38+08:002020-07-24T17:40:38+08:00

    这可以通过 mkvmerge 使用选项的简单变体很容易地完成--split:

    mkvmerge --split duration:00:10:00.000 input_file.mkv -o split.mkv
    

    这个朴素的命令行(其他更复杂的选项可用于--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.
    

    命令行多么酷:)

    • 4

相关问题

  • Ubuntu 和 VLC - 设置默认值和色调

  • 如何为我的 Sansa Fuze 转换视频?

  • 断断续续的视频播放[关闭]

  • 帮助让 Flash 播放器在第二个屏幕上工作?

  • Ubuntu 和交互式媒体安装

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve