Category Archives: Matroska

MKVToolNix v9.7.0 released

this is a more substantial release. There were a lot of enhancements to the GUI all over the place, several bug fixes in mkvmerge, a couple of enhancements there, too.

Note that this release deprecates the options (e.g. “--identify-verbose“) and features. These are scheduled to be removed early in 2018. See the first top-most entry in the ChangeLog below for details.

Notes for package maintainers: MKVToolNix now requires a compiler that supports certain features of the C++14 standard. For gcc v4.9.x or later will work, for clang v3.4 or newer is required. Additionally Qt v5.3.x is now required.

You can download the source code or one of the binaries. The Windows and Mac OS binaries have been built already and are available for download. The Linux binaries will be available later today.

Here’s the full ChangeLog since the previous release:

  • 2016-12-27 Moritz Bunkus <moritz@bunkus.org>
    • Released v9.7.0 "Numbers".
    • Deprecation warning: Several options and features are now deprecated and will be removed at the start of 2018. These are:
      • mkvmerge: the options "--identify-verbose", "identify-for-gui", "identify-for-mmg" and "identification-format verbose". Please convert existing users of these interfaces to use mkvmerge’s JSON identification output which can be invoked with "–identification-format json –identify …".
      • all command line tools: the old, proprietary format used for option files. Please convert users of this interface to the new JSON option file format introduced in this release.
      • all command line tools: the option "–check-for-updates" (the GUI will keep its online check for updates, though). There is and will be no equivalent interface in the tools themselves. Users of this interface can switch to retrieving the information about available updates directly from the MKVToolNix website. The information is available as JSON and XML files at the following URLs:
        • https://mkvtoolnix.download/latest-release.json.gz
        • https://mkvtoolnix.download/latest-release.xml.gz
  • 2016-12-26 Moritz Bunkus <moritz@bunkus.org>
    • mkvmerge: enhancement: added a new track property in JSON/verbose identification mode called "multiplexed_tracks". It’s an array of track IDs that describe which of the tracks mkvmerge reports as separate ones were originally part of the same source track (e.g. TrueHD+AC-3 in a single track in MPEG transport streams). Implements #1835.
  • 2016-12-23 James Almer <jamrial@gmail.com>
    • mkvmerge: added support for skipping APE(v2) tags in TTA files.
  • 2016-12-22 Moritz Bunkus <moritz@bunkus.org>
    • mkvextract: enhancement: added support for reporting progress in --gui-mode the same way mkvmerge does.
    • mkvmerge: bug fix: when using --track-order without specifying all tracks, the track numbers could end up in a way the user did not expect. Now mkvmerge will always assign track numbers for those tracks that are listed in –track-order first. The other tracks are assigned numbers afterwards. Fixes the second part of #1832.
    • mkvmerge: bug fix: when reading Matroska files the movie title was always taken from the first Matroska source file, even if that file didn’t have a title set. Fixes one part of #1832.
  • 2016-12-19 Moritz Bunkus <moritz@bunkus.org>
    • all: new feature: all command line tools can now read JSON-formatted option files. Such a file’s name must have an extension of ".json" (e.g. "mkvmerge @options.json"). Its content must be a valid JSON array consisting solely of JSON strings.
  • 2016-12-17 Moritz Bunkus <moritz@bunkus.org>
    • build system: building the GUI components of MKVToolNix now requires Qt v5.3.0 or newer.
  • 2016-12-16 Moritz Bunkus <moritz@bunkus.org>
    • MKVToolNix GUI: header editor & job output enhancement: added menu entries for saving or closing all open tabs.
  • 2016-12-13 Moritz Bunkus <moritz@bunkus.org>
    • MKVToolNix GUI: chapter editor enhancement: added menu entries for saving or closing all open tabs.
    • build system: MKVToolNix now requires a compiler that supports the following features of the C++14 standard: "std::make_unique()", "digit separators", "binary literals" and "generic lambdas". For the GNU Compiler Collection (gcc) this means v4.9.x or newer; for clang it means v3.4 or newer.
  • 2016-12-11 Moritz Bunkus <moritz@bunkus.org>
    • mkvmerge: MPEG TS/MPLS reader improvements: added support for subtitle tracks that are referenced from the MPLS file as sub-paths in other M2TS files than the main tracks.
  • 2016-12-08 Moritz Bunkus <moritz@bunkus.org>
    • MKVToolNix GUI: re-worked the startup code not to use lock files when trying to open a socket for communicating with an already-running instance. This aims to prevent situations with stale lock files not being cleaned up and the GUI not starting anymore as a result. This might fix or prevent issues like #1805.
    • mkvmerge: teletext subtitle bug fix: fixed the handling of DVB teletext subtitles signaled with data unit ID 0x02 and that contain pages from multiple magazines.
  • 2016-12-05 Moritz Bunkus <moritz@bunkus.org>
    • MKVToolNix GUI: multiplexer enhancement: the file identification process has been re-written to be properly multi-threaded. This allows the user to continue working with the GUI while e.g. playlists from a Blu-ray are identified.
  • 2016-12-03 Moritz Bunkus <moritz@bunkus.org>
    • mkvmerge: enhancement: mkvmerge can now handle Blu-ray playlists from the "BACKUP" sub-directory of a Blu-ray disc.
    • MKVToolNix GUI: new multiplexer feature: added a menu entry for copying the title to the destination file name. It will replace the destination file’s base name but keep its path & extension.
    • MKVToolNix GUI: new multiplexer feature: all positive file identification results will now be cached between runs. This speeds up adding the same file a lot, especially when scanning the same Blu-ray playlists again. Cached results are invalidated automatically with newer MKVToolNix releases or when the source file changes.
  • 2016-12-02 Moritz Bunkus <moritz@bunkus.org>
    • MKVToolNix GUI: multiplexer enhancement: when the user tries to add one of the main Blu-ray index files (index.bdmv, MovieObject.bdmv) the GUI will automatically scan the Blu-ray playlist files and offer them for selection.
    • mkvmerge: bug fix: files smaller than 4 bytes were wrongly identified as MPEG transport streams.
    • MKVToolNix GUI: multiplexer enhancement: tracks, chapters, tags, attachments not selected for multiplexing will be displayed the same way as other disabled controls. Implements #1819.
  • 2016-11-30 Moritz Bunkus <moritz@bunkus.org>
    • mkvmerge: bug fix: the MPEG transport stream reader was using an outdated format for the "CodecPrivate" element for HDMV TextST subtitles. This has been updated to the current format which only contains the "dialog style element". Existing Matroska files using this outdated scheme can be fixed by running them through mkvmerge v9.6.0 itself or any later release as the old format is automatically converted to the new one when it is read from Matroska files.

Have fun :)

MKVToolNix v9.6.0 released

This release fixes one major bug in mkvmerge (an endless loop) when appending files. It mostly occurred when muxing MPLS playlists. Several other minor bug fixes and usability enhancements were implemented.

Nothing’s been changed regarding the packaging since v9.5.0.

You can download the source code or one of the binaries. All of the binaries that I provide myself have been built already and are available for download.

Here’s the full ChangeLog since the previous release:

  • 2016-11-29 Moritz Bunkus <moritz@bunkus.org>
    • Released v9.6.0 "Slave To Your Mind".
  • 2016-11-28 Moritz Bunkus <moritz@bunkus.org>
    • mkvmerge & mkvextract: added support for HDMV TextST subtitles.
  • 2016-11-20 Moritz Bunkus <moritz@bunkus.org>
    • mkvextract: VobSub bug fix: mkvextract will add a "langidx" line to the .idx file upon extraction. Fixes #1810.
  • 2016-11-14 Moritz Bunkus <moritz@bunkus.org>
    • MKVToolNix GUI: multiplexer enhancement: added a column "source file’s directory" to the track list. Implements #1809.
    • MKVToolNix GUI: multiplexer enhancement: added an option for selecting all tracks of the currently selected source files in the source file context menu. Inspired by #1809.
  • 2016-11-07 Moritz Bunkus <moritz@bunkus.org>
    • MKVToolNix GUI: job output tool bug fix: the button for acknowledging warnings & errors wasn’t properly disabled when the user used outside methods of acknowledging them (e.g. via the menu or via the job queue). Fixes #1802.
  • 2016-10-31 Moritz Bunkus <moritz@bunkus.org>
    • mkvmerge: MPLS parser bug fix: fixed reading the "in" & "out" timestamps for "play items". This bug resulted in mkvmerge not reading the correct range from the referenced M2TS file under certain rare circumstances.
  • 2016-10-30 Moritz Bunkus <moritz@bunkus.org>
    • mkvmerge: bug fix: mkvmerge was entering endless loops under certain conditions when appending files. This was a regression introduced with the fix to #1774 (using very large –sync values causing mkvmerge to abort).
  • 2016-10-23 Moritz Bunkus <moritz@bunkus.org>
    • MKVToolNix GUI: new feature: added options in the preferences to only show the list of often used languages/country codes/character sets in their respective selections instead of both the often used and the full list. Implements #1796.

MKVToolNix v9.5.0 released

A new release of MKVToolNix with several bug fixes in mkvmerge and minor feature enhancements in the GUI. Nothing critical.

Nothing’s been changed regarding the packaging since v9.4.2.

You can download the source code or one of the binaries. The Windows and Mac OS binaries are available. Most of the Linux binaries are still being built and will be available in a couple of hours.

Here’s the full ChangeLog since the previous release:

  • 2016-10-16 Moritz Bunkus <moritz@bunkus.org>
    • Released v9.5.0 "Quiet Fire".
    • mkvmerge, mkvextract: VobSub handling bug fix: mkvmerge and mkvextract will now update the duration stored in the SPU bitsream with the duration from the container level if it differs at least 1ms. Fixes #1771.
  • 2016-10-15 Moritz Bunkus <moritz@bunkus.org>
    • mkvmerge: h.264 elementary stream handling bug fix: if mkvmerge ever encounters changing SPS or PPS NALUs (ones where their ID has been encountered before with different settings) in the h.264 then it will prepend all following key frames with all currently active SPS and PPS NALUs. This enables playback from arbitrary key frames even if they require other SPS or PPS settings than the ones stored in the AVCC in CodecPrivate. Fixes #1711.
  • 2016-10-12 Moritz Bunkus <moritz@bunkus.org>
    • mkvmerge, mkvpropedit, MKVToolNix GUI: added support for the "field order" video track header element.
    • mkvinfo: added support for the "field order" video track header element. Patch by James Almer (see AUTHORS).
    • mkvmerge: MPEG transport stream reader bug fix: fixed the handling of Blu-ray PCM audio with an odd number of channels by removing their alignment bytes.
  • 2016-10-10 Moritz Bunkus <moritz@bunkus.org>
    • mkvmerge: MPEG transport stream reader bug fix: fixed mis-detection of certain h.264 files as MPEG transport streams.
  • 2016-10-09 Moritz Bunkus <moritz@bunkus.org>
    • mkvmerge: WAV reader bug fix: the track properties (channels, sample rate) for DTS and AC-3 in WAV will now be derived from the decoded bitstream headers instead of the WAV file header as the latter is often incorrect.
    • mkvmerge: WAV reader bug fix: fixed detection and merging of DTS in WAV that uses the 14-bytes-in-16-bytes packing method.
  • 2016-10-08 Moritz Bunkus <moritz@bunkus.org>
    • MKVToolNix GUI: merge tool enhancement: added menu entries that execute the "close", "save settings", "start muxing" or "add to job queue" action for all currently open tabs.
  • 2016-10-07 Moritz Bunkus <moritz@bunkus.org>
    • MKVToolNix GUI: merge tool enhancement: when dragging & dropping directories the GUI will process all files within those directories recursively instead.
  • 2016-10-06 Moritz Bunkus <moritz@bunkus.org>
    • mkvpropedit, MKVToolNix GUI’s header editor: added options to modify the "muxing application" and "writing application" elements in the "segment information" container. Implements #1788.
  • 2016-09-30 Moritz Bunkus <moritz@bunkus.org>
    • mkvmerge: bug fix: The Ogg/OGM reader did not recognize Opus files with comment headers anymore. This was broken by the fix to not require Ogg/OGM files to have comment headers in v9.4.0.

Have fun :)

MKVToolNix v9.4.2 released

Unfortunately the just-released v9.4.2 contained a nasty regression in both the AVC and HEVC readers. I’m therefore releasing v9.4.2 mere hours after v9.4.1. The only difference is the fix to the aforementioned regression. I’m including the whole announcement for v9.4.1 below.

Somewhat unscheduled I’m releasing v9.4.1. It fixes several errors in mkvmerge, most of which are exploitable via specially crafted file. They were found by fuzzing done by Justin Smith.

Nothing’s been changed regarding the packagin since v9.4.0.

You can download the source code or one of the binaries. The Windows and Mac OS binaries are available. Most of the Linux binaries are still being built and will be available in a couple of hours.

Here’s the full ChangeLog since the previous release:

  • 2016-09-11 Moritz Bunkus <moritz@bunkus.org>
    • Released v9.4.2 "So High".
    • mkvmerge: bug fix: AVC & HEVC readers: release v9.4.1 contains a change to both readers so that they will refuse to handle files where the detected pixel width or height is equal to or less than 0. This check was wrong in certain cases causing mkvmerge to reject a file as an unsupported file type. This has been fixed while keeping the constraints on width & height having to be positive.
    • Released v9.4.1 "Black Rain".
  • 2016-09-07 Moritz Bunkus <moritz@bunkus.org>
    • Note: most of the bugs fixed on 2016-09-06 and 2016-09-07 for issue #1780 are potentially exploitable. The scenario is arbitrary code execution with specially-crafted files. Updating is highly recommended.
    • mkvmerge: bug fix: AVC & HEVC readers: the readers will now refuse to handle files where the detected pixel width or height is equal to or less than 0. Before this fix the muxing process aborted with an assertion inside libMatroska. Fixes the last test case of #1780.
    • mkvmerge: bug fix: HEVC parser: fixed another invalid memory access (beyond the end of allocated space). Fixes two test cases of #1780.
  • 2016-09-06 Moritz Bunkus <moritz@bunkus.org>
    • mkvmerge: bug fix: HEVC parser: fixed another invalid memory access (beyond the end of a fixed-size array). Fixes several test cases of #1780.
    • mkvmerge: bug fix: MP4 reader: an error message will be printed instead of an uncaught exception when an invalid atom chunk size is encountered during resync. Fixes a test case of #1780.
    • mkvmerge: bug fix: AAC reader: fixed mkvmerge throwing an uncaught exception due to the sample rate being 0. Fixes a test case of #1780.
    • mkvmerge: bug fix: MP4 reader: fixed an invalid memory access (beyond the end of allocated space). Fixes several test cases of #1780.
    • mkvmerge: bug fix: HEVC parser: fixed an invalid memory access (beyond the end of allocated space). Fixes several test cases of #1780.
    • mkvmerge: bug fix: fixed an invalid memory access (use after free) during global destruction phase. Fixes several test cases of #1780.
  • 2016-09-02 Moritz Bunkus <moritz@bunkus.org>
    • mkvmerge: bug fix: using very large –sync values (several minutes) with certain container formats was causing mkvmerge to abort muxing. Fixes #1774.

Have fun :)