Skip to content

Instantly share code, notes, and snippets.

@shinchiro
Last active January 7, 2019 10:03
Show Gist options
  • Save shinchiro/20eee418864797e7417fb23d6032abd1 to your computer and use it in GitHub Desktop.
Save shinchiro/20eee418864797e7417fb23d6032abd1 to your computer and use it in GitHub Desktop.
mkvpropedit's usage
@echo OFF
set mkvpropedit="D:\mkvtoolnix\mkvpropedit.exe"
for %%A in (%*) do (
::%mkvpropedit% "%%~fA" --delete-attachment name:"Impress BT.ttf"
::%mkvpropedit% "%%~fA" --chapters "%%~nA_chapter.xml"
:: Comment should be placed above.
::
:: This will select first video/subtitle tracks to rename name and make first subtitle as default.
:: Adding fonts to the mkv.
%mkvpropedit% "%%~fA" --edit track:v1 --set name="[LowPower-Raws]" --set language=jpn ^
--edit track:s1 --set name="[Funimation]" --set language=eng --set flag-default=1 ^
--attachment-mime-type application/x-truetype-font --add-attachment "Cabin-Bold.otf" ^
--attachment-mime-type application/x-truetype-font --add-attachment "Cabin-BoldItalic.ttf" ^
--attachment-mime-type application/x-truetype-font --add-attachment "Cabin-Regular-TTF.ttf"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment