Skip to content

Instantly share code, notes, and snippets.

@ScribbleGhost
Last active October 27, 2023 07:05
Show Gist options
  • Save ScribbleGhost/27211d4dd541b7b86d4edc468d6ac796 to your computer and use it in GitHub Desktop.
Save ScribbleGhost/27211d4dd541b7b86d4edc468d6ac796 to your computer and use it in GitHub Desktop.

Some handy MKVToolNix commands

Extract chapter XML files for all MKVs:

for /r %i in (*.mkv) do (mkvextract "%i" chapters "%~ni".xml)

Remove all chapters from MKVs:

for /r %i in (*.mkv) do (mkvpropedit "%i" --chapters "")

Merge chapter XML with MKV of same file name:

for /r %i in (*.mkv) do (mkvpropedit --chapters "%~dpni".xml "%i")

Remove Application metadata tag:

for /r %i in (*.mkv) do (mkvpropedit "%i" -s "writing-application"="")

Remove muxing metadata tag:

for /r %i in (*.mkv) do (mkvpropedit "%i" -s "muxing-application"="")

Remove date from MKVs:

for /r %i in (*.mkv) do (mkvpropedit "%i" -d date)
@ScribbleGhost
Copy link
Author

how can I extract fonts from a video to a separate folder?

You want to save the actual font file to the computer? Or do you mean how to extract the subtitle file?

@AdventurerRussia
Copy link

how can I extract fonts from a video to a separate folder?

You want to save the actual font file to the computer? Or do you mean how to extract the subtitle file?

yes, fonts should be extracted from mkv.

@ScribbleGhost
Copy link
Author

That depends on the container. For Bluray fonts I usually use SubtitleEdit. For ASS/SSA subs I use Aegisub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment