Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 1.04 KB

README.md

File metadata and controls

18 lines (13 loc) · 1.04 KB

Generate Chapters From Text File

Automatically generates a working chapterx.xml file from a text file that you can use within MKVToolNix and sets the chapters language to English.

How To Use?

  • 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.

Examples

Picture 1: Chapters copied from mediainfo into the text file. inputtxt

Picture2: The generated output.xml file in MKVToolNix. mkvtoolnixchapters