Any way to edit metadata of MKV files (without re-encoding)?

Solution 1:

I have found a way to do this using mkvpropedit which is part of mkvtoolnix.

mkvpropedit "foo.mkv" -e info -s title="This Is The Title"

There is a GUI wrapper for this app and other Mac installation instructions available at the official website.

Solution 2:

As an addition one could use mkvpropedit in a bash script to set the title of all mkv files in a directory. (Given the filename is the desired title.)

#!/bin/bash

# This script takes all mkv files in the current directory and sets the filename
# (without .mkv) as its title in metadata

for mkvfile in *.mkv; do
    mkvpropedit "$mkvfile" -e info -s title="${mkvfile%.mkv}"
done

Solution 3:

The MKVToolNix GUI way:

  1. From the menu choose header editor.

enter image description here

  1. Open the mkv file.

  2. Under segment information there is a title item, change title as you wish.

enter image description here

  1. There is not a save button, use the main menu to save changes.

enter image description here

macOS Version Support

Current versions of MKVToolNix require macOS Mojave (10.14) or newer, but earlier versions of MKVToolNix might work for previous versions of macOS/OS X.

As of v42.0.0, MKVToolNix uses std::optional,a which requires macOS 10.14.b

macOS High Sierra (10.13) and Sierra (10.12) should run up to v41.0.0 "Smarra" (2019-Dec-06).

As of v30.0.0, MKVToolNix uses Qt 5.12,c which requires macOS 10.12.d

OS X El Capitan (10.11) should run up to v29.0.0 "Like It Or Not" (2018-Dec-01).

As of v26.0.0, the "README.macOS.txt" file states that it works only with macOS 10.11 "El Capitan" or newere (although MACOSX_DEPLOYMENT_TARGET and LSMinimumSystemVersion are still at 10.9, so it might run in Yosemite 10.10 or Mavericks 10.9).

OS X Yosemite (10.10) and Mavericks (10.9) should run up to v25.0.0 "Prog Noir" (2018-July-12).

As of v9.7.1-build4, MACOSX_DEPLOYMENT_TARGET and LSMinimumSystemVersion are set to 10.9.f

OS X Mountain Lion (10.8) might run up to v9.7.1-build2 "Pandemonium" (2016-Dec-27).

As of v8.2.0, the "README.macOS.txt" file states that it works only with Mac OS X 10.9 and higher, although LSMinimumSystemVersion is still at 10.8.0, so it might run in Mountain Lion 10.8.

Furthermore, MACOSX_DEPLOYMENT_TARGET is not set, so it should target whatever OS version it was built in.g As v9.7.0-build2 and v9.7.1-build2 were built in Sierra 10.12, they won't run in Yosemite 10.10 nor El Capitan 10.11 (although they will run in Mavericks 10.9 and Mountain Lion 10.8, which appear to ignore that restriction). See the relevant discussion here.

Solution 4:

Just open the file in VLC player, Ctrl+I, choose the desired Metadata, title etc, change and then in the bottom, click 'Save Data'. That's all.

No other external editor is needed.