<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>

CC BY-SA 3.0
2015-12-04T17:30:39.787Z
2015-12-04T17:30:39.787Z
Gyan
<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>

CC BY-SA 4.0
2021-04-09T07:49:02.607Z
[Use ffmpeg to split file by chapters](https://gist.github.com/dcondrey/469e2850e7f88ac198e8c3ff111bda7c)
davidcondrey
<video>
How to split video into multiple files based on chapter markers?
Gabriele
# 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, 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 of the documentation for more details.


---

