MKV - Auto Batch Chapter Renaming

Everything related to MakeMKV
Post Reply
Message
Author
jfred305
Posts: 6
Joined: Thu Jan 21, 2010 7:49 am

MKV - Auto Batch Chapter Renaming

#1 Post by jfred305 » Wed Mar 09, 2011 10:20 pm

I have a drive full of .mkv movies; all with default chapter names (i.e. Chapter01, Chapter02 etc.). MkvMerge has a chapter editor that is able to change chapter names without remuxing the .mkv. So, I can look up the names of the chapters and rename them appropriately.

There are online databases out there that have chapter titles for numerous movies. It must be possible to create a program that uses MkvMerge or MakeMKV in conjunction with online databases to automatically rename the chapters of all of the movies on my drive.

It would be quite a headache to have to manually rename the chapter titles for all of the movies in my collection.

It’s too bad MakeMKV doesn’t have this feature built in, so that the chapters have the correct names to start with.

Any Ideas, suggestions or comments?

mike admin
Posts: 4075
Joined: Wed Nov 26, 2008 2:26 am
Contact:

Re: MKV - Auto Batch Chapter Renaming

#2 Post by mike admin » Thu Mar 10, 2011 9:14 am

For the record, what online database are you referring to?

jfred305
Posts: 6
Joined: Thu Jan 21, 2010 7:49 am

Re: MKV - Auto Batch Chapter Renaming

#3 Post by jfred305 » Thu Mar 10, 2011 8:20 pm

Tag Chimp is one.

http://www.tagchimp.com/

robpdotcom
Posts: 86
Joined: Thu Nov 11, 2010 5:58 pm

Re: MKV - Auto Batch Chapter Renaming

#4 Post by robpdotcom » Fri Mar 11, 2011 5:11 pm

There's a program called ChapterGrabber that will read the chapters from a disc, and create a chapter file with the names. To use it on something you have already ripped, you need to scan the disc (it just takes a few seconds) and use MKVMerge to add the chapters to the mkv.

jfred305
Posts: 6
Joined: Thu Jan 21, 2010 7:49 am

Re: MKV - Auto Batch Chapter Renaming

#5 Post by jfred305 » Wed Mar 16, 2011 3:41 am

Thanks for the info, I will look into Chapter Grabber. It seems like a good tool but I have so many DVDs already ripped to mkv that it would still be too much work to rip the chapters one by one. Programs like XBMC will search a drive or folder, read the movie file names and automatically download each movie's metadata. If there was only a way to do this for chapters and then batch process them with MKVMerge.

If Chapter Grabber can pull up chapter names then there must be a way for MakeMKV to do this. This way chapter names could be added when the MKV file is created.

trondmm
Posts: 82
Joined: Thu Jan 21, 2010 12:50 pm

Re: MKV - Auto Batch Chapter Renaming

#6 Post by trondmm » Fri Mar 18, 2011 11:24 am

jfred305 wrote:I have a drive full of .mkv movies; all with default chapter names (i.e. Chapter01, Chapter02 etc.). MkvMerge has a chapter editor that is able to change chapter names without remuxing the .mkv. So, I can look up the names of the chapters and rename them appropriately.

There are online databases out there that have chapter titles for numerous movies. It must be possible to create a program that uses MkvMerge or MakeMKV in conjunction with online databases to automatically rename the chapters of all of the movies on my drive.

It would be quite a headache to have to manually rename the chapter titles for all of the movies in my collection.

It’s too bad MakeMKV doesn’t have this feature built in, so that the chapters have the correct names to start with.

Any Ideas, suggestions or comments?
Actually, it shouldn't be that hard to fix chapternames automatically, as longs as you have the list of names.

You can use the command line version of mkvextract to get the list of chapters

mkvextract chapters -s movie.mkv

Will output something like this:

CHAPTER01=00:00:00.000
CHAPTER01NAME=Chapter 00
CHAPTER02=00:08:49.278
CHAPTER02NAME=Chapter 01
CHAPTER03=00:14:52.641
CHAPTER03NAME=Chapter 02
...

If you have a list of proper chapternames, it shouldn't take too many lines of perl to replace the generic chapter names with the proper names. You can then use mkvmerge with the result to add the chapters back into the mkv-file.

All of this should be fairly simple to script, assuming you already have the list of chapternames you want to use.

Post Reply