Skip to content

Allows you to generate a working chapters.xml file from a text file.

License

Notifications You must be signed in to change notification settings

KlevGG/GenerateChapters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Allows you to generate a working chapters.xml file from a text file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages