I had the need to split some mkv (matroska video) files on chapter marks.
I'd normally use handbrake for this - split and encode. But I didn't really want to reencode each time.
Downloaded mkvtoolsnix (machomebrew: brew install mkvtoolsnix).
Most tutorials concentrate on mkvmerge gui which I didn't have - just the command line
So - an example: