Splitting the last chapter of a bluray
The man page for mkvmerge states the following:
7. Splitting before specific chapters.
Syntax: --split chapters:all or --split chapters:A[,B[,C...]]
Example: --split chapters:5,8
The parameters A, B, C etc must all be positive integers. Numbering starts at 1. The list of chapter numbers
is separated by commas. Splitting will occur right before the first key frame whose timestamp is equal to or
bigger than the start timestamp for the chapters whose numbers are listed. A chapter starting at 0s is never
considered for splitting and discarded silently.
This would seem to imply that if one wanted to split off the last chapter of say a 30 item playlist, one could simply pass the following:
$ mkvmerge --split chapters:30 -o out.mkv path/to/bluray/BDMV/PLAYLIST/00000.mpls
However, this results in a single file being created, followed by this error:
Warning: Invalid chapter number '30' for '--split' in '--split chapters:30': Only 30 chapters found in source files & chapter files.
This seems to be a simple off-by-one error. Would be really great to see a fix!