Skip to content

I created this as way to process a bunch of mkv files in a series using the original MKVToolNix-batch program as a reference .

License

Notifications You must be signed in to change notification settings

montypx/MKVToolNix-Sequential-Batch-Mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

MKVToolNix Sequential Batch Mapper

Notes:

  • I created this as way to process a bunch of mkv files in a series using the original MKVToolNix-batch program as a reference .
  • It's not that hard to use and you only need Python 3.
  • It's really useful for merging individual subtitles or dub tracks; anything that needs to be mapped to something.
  • I also nicked the GitHub readme for this from the MKVToolNix-batch repo sorry.

Dependencies:

Usage:

  1. Make sure all your MKV files have the same name apart from the number of the episode.

  2. Open mkvtoolnix-gui.exe.

  3. Insert all the media for your first episode of the batch.

  4. Do your edits here in the GUI including naming the output file whatever you want at the bottom if you'd like. (Leave the episode number how it is for now)

  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:

  • Where there is an episode number (S01E01), replace the number with the text EPNUM (S01EEPNUM)

  • Do this for all the file paths in the JSON file.

  1. Download mkvtoolnix_merge_mapper.py from this repository and put it in the working directory with all the files so far.

  2. Find the mkvmerge.exe executable within MKVToolNix and get its path (Shift + Right-Click > Copy as path from Windows File Explorer).

  3. Edit mkvtoolnix_merge_mapper.py and insert your path to mkvmerge.exe from step 6 into the quotes after the variable mkv_merge_path . You MUST include two backslashes \\ in the path, where there is only one, for this to work.

  4. Run mkvtoolnix_merge_mapper.py by double-clicking it.

  5. When prompted enter the first episode number and last episode number and your files will be sequentially created in the mkvmerge_out directory as it goes on.

  6. Pretend you didn't see any of the hideous code that took me like 3 hours to write.

License

Code licensed under GNU General Public License v3.0.

About

I created this as way to process a bunch of mkv files in a series using the original MKVToolNix-batch program as a reference .

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages