Answers.Body: <p>mkvmerge, a part of <a href="http://www.videohelp.com/software/MKVtoolnix" rel="noreferrer">MKVtoolnix</a>, will split a MKV file by chapters.</p>
  
  <p>Basic syntax is</p>
  
  <pre><code>mkvmerge -o chapter.mkv --split chapters:all input.mkv
  </code></pre>
  
  <p>but see <a href="https://mkvtoolnix.download/doc/mkvmerge.html#mkvmerge.description" rel="noreferrer">Section 2.5 #7</a> of the documentation for more details.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-04T17:30:39.787Z
Answers.LastActivityDate: 2015-12-04T17:30:39.787Z
Answers.UserDisplayName: Gyan
Body: <p>Is there a way to automatically split a video into multiple files based on chapter markers?</p>
  
  <p>I don't want to re-encode the file, just a video/audio passthru.</p>
  
  <p>The source file is a MKV container, but I guess it doesn't really matter.</p>
  
  <p>Apple OS X, Windows… either OS would be fine.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-04-09T07:49:02.607Z
Comments.Text: [Use ffmpeg to split file by chapters](https://gist.github.com/dcondrey/469e2850e7f88ac198e8c3ff111bda7c)
Comments.UserDisplayName: davidcondrey
Tags: <video>
Title: How to split video into multiple files based on chapter markers?
UserDisplayName: Gabriele
ThreadText: # How to split video into multiple files based on chapter markers?
  
  (Asked by: username_0 on 2015-12-04)
  
  Is there a way to automatically split a video into multiple files based on chapter markers?
  
  I don't want to re-encode the file, just a video/audio passthru.
  
  The source file is a MKV container, but I guess it doesn't really matter.
  
  Apple OS X, Windows… either OS would be fine.
  
  **Tags:** video
  
  > **Comments:**
  > **username_1**: [Use ffmpeg to split file by chapters](https://gist.github.com/dcondrey/469e2850e7f88ac198e8c3ff111bda7c)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2015-12-04. Score: 6 | Accepted answer
  
  mkvmerge, a part of [MKVtoolnix](http://www.videohelp.com/software/MKVtoolnix), will split a MKV file by chapters.
  
  Basic syntax is
  
  ```
  mkvmerge -o chapter.mkv --split chapters:all input.mkv
  
  ```
  
  but see [Section 2.5 #7](https://mkvtoolnix.download/doc/mkvmerge.html#mkvmerge.description) of the documentation for more details.
  
  
  ---
  
  