Awesome Open Source
Awesome Open Source



Windows Batch script to automate batch processing using mkvtoolnix.



  1. Download MKVToolNix.
  2. Open mkvtoolnix-gui.exe.
  3. Add any of the MKV files to be processed (drag-and-drop works just fine).
  4. Perform your changes within the GUI (disable tracks, rename tracks, set default tracks, etc.).
  5. Go to Menu Bar > Multiplexer > Create option file, and save it as 'options.json' in the same directory where all MKV files to be processed are. You can then close the GUI.
  6. Open said JSON file with your favourite editor and completely delete:
    • The "--output", line along with the one coming right after it.
    • The "(", and ")", lines together with the one in between them.
  7. Find the mkvmerge.exe executable within MKVToolNix and get its path (Shift + Right-Click > Copy as path from Windows File Explorer).
  8. Download mkvtoolnix-batch.bat from this repository and put it in the directory where all MKV files and the JSON are.
  9. Edit mkvtoolnix-batch.bat and replace "D:\...\mkvmerge.exe" with your path to mkvmerge.exe from step 6.
  10. Run mkvtoolnix-batch.bat by double-clicking it.
  11. Go grab yourself a cup of coffee and wait for the multiplexing process to complete. Processed MKV files will appear inside the mkvmerge_out directory.
  12. Profit.


Code licensed under GNU General Public License v3.0.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Json (10,940
Batchfile (8,043
Batch (772
Subtitles (554
Options (341
Batch Script (338
Batch Processing (200
Related Projects