tsMuxer icon indicating copy to clipboard operation
tsMuxer copied to clipboard

Ability to split by chapter

Open dikonov opened this issue 4 years ago • 4 comments

There are several almost useless split options, but no option to split output by chapter boundaries. Please, add!

Maybe, it is even possible to extract some meaningful human names for individual titles and chapters on a BD...

dikonov avatar Apr 24 '21 19:04 dikonov

@dikonov +1 splitting by chapter is a good idea. Most of the distributors use images rather than text for chapter names, IMHO extracting these names would be difficult.

jcdr428 avatar Apr 25 '21 16:04 jcdr428

Even if it turns to be impossible to get the names, splitting by nameless numbered chapters would still be useful.

dikonov avatar Apr 28 '21 10:04 dikonov

@jcdr428 It looks like the Blu-Ray structures themselves don't have any information about chapter names. I can't see any code in libbluray which would allow retrieving names. Similarly, mkvtoolnix (which has its own Blu-Ray parsing code as far as I remember) doesn't transfer chapter names when remuxing from BD to MKV. If you have any information about where to find names in the structures, please share, otherwise I'll just carry on without implementing support for names.

lighterowl avatar Apr 29 '21 17:04 lighterowl

Hi @xavery, some distributors such as Criterion or Masters of Cinemas include the chapter names in text files inside the JAR folder -see e.g. eng_us.txt from "Rosemary's Baby", resulting in the following menu: menu_rosemarys_baby_blu-ray_m01 menu_rosemarys_baby_blu-ray_m02 menu_rosemarys_baby_blu-ray_m03 menu_rosemarys_baby_blu-ray_m04

The way Criterion builds his menus via xml/txt files is interesting: much simpler than the BD-Java used by most large distributors; this would need a bit of analysis and work, but tsMuxer could create the same kind of menus by getting the chapter names from the web ditto ChapterGrabber, and even an image for each chapter from the video. This would be a really nice addition, maybe for v3.xx ;)

jcdr428 avatar Apr 29 '21 21:04 jcdr428