I have an H264 video file I'd like to divide into chapters. And create separate files for each.

What's the best way to go about this? I really don't want to have to re-encode it's to time consuming.

I just want to chop it into chapters, each being it's own file.