Automatically generates a working chapterx.xml file from a text file that you can use within MKVToolNix and sets the chapters language to English.
- Have Python installed and added to the PATH
- Place the script
gen-chapters.py
in a folder, and create an empty input.txt file. - Copy paste the chapters from the mediainfo into input.txt.
- Run the script using
python gen-chapters.py output.xml input.txt
- If your chapters mediainfo has chapter names and you want to copy them, you can add the argument
-names
to the end of the command. This will tell the script to copy the chapter names as it is.
Picture 1: Chapters copied from mediainfo into the text file.