MKVToolNix v5.0.1 released


I’ve released mkvtoolnix v5.0.1. It’s a release with a few improvements/bug fixes and one important fix for a regression introduced in v5.0.0 regarding PGS subtitles.

There were no changes that concern package maintainers.

Here are the usual links: the home page, the source code and the Windows installer and 7zip archive.

All of the binaries that I provide myself are already available.

Here’s the full ChangeLog since release 5.0.0:

  • 2011-10-09 Moritz Bunkus <>
    • Released v5.0.1.
  • 2011-10-08 Moritz Bunkus <>
    • build system: Updated the Debian/Ubuntu files to debhelper v7/quilt 3.0 format.
    • mkvmerge: enhancement: Implemented support for yet another way of storing EAC3 and DTS in MPEG transport streams.
  • 2011-10-05 Moritz Bunkus <>
    • mkvinfo: bug fix: Track information was not reset when opening more than one file in the GUI.
  • 2011-10-03 Moritz Bunkus <>
    • mkvmerge: bug fix: The PGS subtitle output module was not outputting any packet in certain cases due to uninitialized variables.
  • 2011-09-27 Moritz Bunkus <>
    • mkvmerge: bug fix: Fixed mkvmerge not finding any track in TS streams whose first PMT packet could not be parsed (e.g. invalid CRC).
    • mkvmerge: bug fix: Fixed detection of TS streams that only contain one PAT or PMT packet within the first few KB but no others within the first 10 MB.

Have fun.

31 thoughts on “MKVToolNix v5.0.1 released

  1. scar

    when i tried to upgrade i got this error:

    Preparing to replace mkvtoolnix 5.0.0 (using …/mkvtoolnix_5.0.1_amd64.deb) …
    Unpacking replacement mkvtoolnix …
    dpkg: error processing /var/cache/apt/archives/mkvtoolnix_5.0.1_amd64.deb (–unpack):
    trying to overwrite ‘/usr/share/doc/mkvtoolnix/guide/en/images/addingremovingattachments.gif’, which is also in package mkvtoolnix-gui 0:5.0.0

    Errors were encountered while processing:
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    as a workaround i ran `sudo mkdir -p /usr/share/doc/mkvtoolnix/guide/en/images/` and reran apt-get upgrade and all went well, but perhaps there is a better solution?

  2. h0m3r

    Hello mosu,

    Is it possible to add an option to disable all attachments by default?

    Thank you!

  3. sukanime


    How to Extrack Attachment in Linux?
    I can extract audio,video,and subtitle.

    But i fail to extract Attachment.

    Here some info from mkinfo:

    |+ Attachments
    | + Attached
    | + File name: BAARS___.TTF
    | + Mime type: application/x-truetype-font
    | + File data, size: 47864
    | + File UID: 926783898
    | + Attached
    | + File name: PTS75F.ttf
    | + Mime type: application/x-truetype-font
    | + File data, size: 458084
    | + File UID: 1584529577
    | + Attached
    | + File name: BellGothicStd-Black.otf
    | + Mime type: application/x-truetype-font
    | + File data, size: 29996
    | + File UID: 373147531
    | + Attached
    | + File name: BellGothicStd-Bold.otf
    | + Mime type: application/x-truetype-font
    | + File data, size: 30128
    | + File UID: 1142698885
    | + Attached
    | + File name: Domo Aregato.ttf
    | + Mime type: application/x-truetype-font
    | + File data, size: 22176
    | + File UID: 1383002263
    |+ Chapters

    Then I run this command:
    [sukanime@Mandriva_2010_Spring Hunter_X_Hunter-2011]$ /os/data-2/Kompile/mkvtoolnix-5.0.1/src/mkvextract attachments \[Moesubs\]_HUNTERxHUNTER_2011_-_01_\[480p\]\[189517E0\].mkv 1383002263:Domo_Aregato.ttf
    Error: An attachment with the ID 1383002263 was not found.
    [sukanime@Mandriva_2010_Spring Hunter_X_Hunter-2011]$

    ps: you can see full info from here


    1. mosu Post author

      Run “mkvmerge –identify yourfile.mkv”. It will tell you which ID to use with each attachment. Example:

      File ‘v.mkv’: container: Matroska
      Track ID 1: video (V_MS/VFW/FOURCC, DIV3)
      Track ID 2: audio (A_MPEG/L3)
      Attachment ID 1: type ‘text/plain’, size 1274 bytes, file name ‘’

      This “ID 1” is the one you need for mkvextract.

  4. Alex

    Hi guys I have a quick question. I frequently add English subtitles to mkv files and I have to click each stream every time and set Video, Audio and Subtitle tracks as eng (English. I also set the default track flag for all three track to Yes. This is quite tedius when I have to process many files. Is there a way to automate this so all tracks are auomatically set as English and default-flaged as Yes? Thanks in advance for any replies!

    1. a_sh

      I second that, and also I’d like to ask if it’s possible to set the default framerate for H.264. Currently it’s 25 FPS, but I’d like to have an option to change it to 23.976 (for example).

      1. mosu Post author

        No. And I won’t add such an option. I have proper support for extracting the frame rate stored in the h264 headers on my TODO list. No time frame for it, though.

  5. Sascha

    Gibt es einen Tip wie ich mit mkvmerge zusammengestellet mkv`s an einem DB-Player von Toshiba zum laufen bekomme? Das forced Subtitles weder an meinem Samsung TV noch an dem BD`s Player laufen damit habe ich mich abgefunden. Ich hab auch verstanden das ich Header Kompremierenung für den Samsung TV auschalten muss, aber warum mein Toshiba BD diese mkv`s nicht abspielen will, bleibt mir ein Rätsel. Mit anderen Tools funktioniert das abspielen auf dem Toshiba BD – Player nur mit mkvmerge nicht.Über ne Info würde ich mich freuen.


    1. mosu Post author

      Versuch’s mal mit dem Modus für, wie ich sie nenne, echt-unvollständige-Matroska-Implementierungen, aka der Option “–engage no_simpleblocks”. Wenn das nicht hilft hab ich keine weiteren Ideen.

      1. Sascha

        Hat leider nicht geholfen. Datein die Ripbot zusammenbaut laufen sowohl auf TV und BD – P
        layer. Mir fehlt da leider da know-how bie mkv`s.

  6. Alex

    Mosu, it would be great to have an option where as soon as a file is opened via mkvmerge – or when new streams are added – all video/audio/sub tracks are automatically set to a language of the user’s choice and default-flaged as Yes? If users have to precess many files which are all of the same language, such a feature would save them having to click and set each individual stream for every single file. Thanks!

    1. mosu Post author

      I assume you mean mmg and not mkvmerge. Anyway, I’m not in the mood for a lot of GUI programming at the moment, so the answer is a solid “maybe in the future”. I’m not dismissing the idea outright, but I’m also skeptical about the number of people for which such a feature would be useful. A lot of the time people add files with multiple streams, or multiple tracks in parallel, and it’s not often that they all should have their default flag turned on and they’re all in the same language — e.g. three audio tracks in “ger” for a single output file.

  7. Xenos

    Thank you so much for this great tool, it really works great and saves me a lot of time.
    However I have a problem when I try to wrap mpg files recorded from DVB-T TV tuner (in PS mode) in mkv container (I use mmg).
    No matter which media player I use, the mkv file seems to have a length that is a few hundred times bigger than its real one.
    For example, a 5 minutes mpg produces an mkv that appears to have more than 5 hours duration. So there is no way to move accurately in the clip, using the slider in the timeline of any player.
    Any other format I’ve tried, works perfectly.
    Do you have any idea why this is happening?
    Sorry to bother you, I’ve been searching the internet for a couple of days now, but didn’t come up with anything useful…
    Thanks in advance for your time and help.

    1. mosu Post author

      Upload the file to my FTP server (“”, user “upload”, password “only”) and I’ll try to take a look at it sometime.

      1. Xenos

        Thank you for your immediate response.
        I just uploaded “Problem with false length.mkv”.
        Actual length 4m21sec, but appears as 4h35m.

        Thanks again, I appreciate your work and your effort.

        1. Xenos

          …and of course now I’m uploading the original mpg “Original – Correct lenght” (as recorded with a DVB-T tv tuner dongle in PS mode), which is probably what you asked for in the first place, but I missunderstood, sorry…

          1. Xenos

            Hello again,
            Yes, with your last revision the lenght of the clip is displayed correctly.
            However, I’m sorry to report a new problem. After wrapping DVB-T mpg into mkv, although audio and video start in sync, as the playback goes on the video speeds up increasingly (audio speed seems to remain constant).
            For example, in the clip that I’ve uploaded before, the video finishes about 12 seconds earlier that the audio.
            I’m sure you’ll fix that eventually but anyhow, thank you again for all your work.

          2. mosu Post author

            Thanks for the hint. I’ve fixed the problem (again), and the upcoming release v5.1.0 will contain the fix.

  8. Xenos

    I just tried the new release, problem solved.
    Thanks for your immediate responses and for such a useful tool.

  9. akovia

    First, thank you for the wonderful tools that have helped me for years now. I just wanted to know if there are any plans in the future to see a GUI for mkvpropedit?

    After extensive searching I’ve not found a solution to deal with multiple files at a time and most people think you have to remux to even do a single file. I just think that an accessible tag editor for Matroska is needed badly and would benefit the format. Either way I’m thankful for mkvpropedit and will continue using it.

    1. mosu Post author

      As GUI programming is something I absolutely dislike I don’t think I’ll write a GUI for mkvpropedit any time soon. Sorry.

      1. akovia

        Understood, thanks anyway. Maybe someone else will pick up the framework you created and run with it. If I was talented enough I wouldn’t hesitate. Maybe I’ll try my hand at an interactive script instead.

        Keep up the great work!

Comments are closed.