# Chapters when merging mkv files

**URL:** <https://help.mkvtoolnix.download/t/chapters-when-merging-mkv-files/1604>\
**Category:** Help\
**Created:** [October 12, 2026, 7:35am UTC](https://help.mkvtoolnix.download/t/chapters-when-merging-mkv-files/1604 "2026-10-12T07:35:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![depechefan](https://help.mkvtoolnix.download/letter_avatar_proxy/v4/letter/d/7cd45c/32.png) [@depechefan](https://help.mkvtoolnix.download/u/depechefan)\
**Post date:** [October 12, 2026, 7:35am UTC](https://help.mkvtoolnix.download/t/chapters-when-merging-mkv-files/1604/1 "2026-10-12T07:35:00Z")

</div>

Hi,

I have 2 mkv files that I want to merge into one and add a chapter so I can directly access the contents of the second file. The first file is a music file with 8 tracks and the second one only contains one track.

I’ve use this command to merge the files:

mkvmerge -o concatenated.mkv --generate-chapters when-appending SM1.mkv SM2.mkv

That generates a file with 9 chapters but if I go directly to chapter 9 in VLC it just goes to the beginning of the file and plays track 1…

Am I doing something wrong?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![mbunkus](https://help.mkvtoolnix.download/user_avatar/help.mkvtoolnix.download/mbunkus/32/11_2.png) [@mbunkus](https://help.mkvtoolnix.download/u/mbunkus)\
**Post date:** [October 12, 2026, 10:05am UTC](https://help.mkvtoolnix.download/t/chapters-when-merging-mkv-files/1604/2 "2026-10-12T10:05:09Z")

</div>

Welcome!

That doesn’t actually append the two files, it only adds both. Please read [this FAQ entry](https://codeberg.org/mbunkus/mkvtoolnix/wiki/Adding-files-vs.-Appending-files-vs.-adding-as-additional-parts) for the difference.

See [the mkvmerge documentation](https://mkvtoolnix.download/doc/mkvmerge.html#mkvmerge.description.plus_sign) for the correct syntax.

---

<div class="post-metadata">

**Author:** ![depechefan](https://help.mkvtoolnix.download/letter_avatar_proxy/v4/letter/d/7cd45c/32.png) [@depechefan](https://help.mkvtoolnix.download/u/depechefan)\
**Post date:** [October 12, 2026, 1:36pm UTC](https://help.mkvtoolnix.download/t/chapters-when-merging-mkv-files/1604/3 "2026-10-12T13:36:43Z")

</div>

Thanks for the reply!  
Doing this instead:  
mkvmerge -o concatenated.mkv --generate-chapters when-appending SM1.mkv + SM2.mkv  
worked. It added an additional empty chapter for some reason but I can remove that in the Chapter Editor. I had to omit one sound track because the bitrate was different. Is there a way to work around that? (One was PCM 48K and the other was PCM 96K)

---

<div class="post-metadata">

**Author:** ![mbunkus](https://help.mkvtoolnix.download/user_avatar/help.mkvtoolnix.download/mbunkus/32/11_2.png) [@mbunkus](https://help.mkvtoolnix.download/u/mbunkus)\
**Post date:** [October 12, 2026, 1:37pm UTC](https://help.mkvtoolnix.download/t/chapters-when-merging-mkv-files/1604/4 "2026-10-12T13:37:59Z")

</div>

> [@depechefan](#):
>
> I had to omit one sound track because the bitrate was different. Is there a way to work around that?

No. Those parameters must match.
