Here’s an update to the previous script, I have added some additional features and corrected a major issue with the previous approach.
The FLAC files created by the previous script have the wrong timecodes. All files have the length of the original source MKV file, with the track start time being at the chapter start point. This confuses some players, although they worked on my Squeezebox, they didn’t work on a friend’s Naim streamer.
Having reached out to the mkvtoolnix developer I was pointed to this issue: –
Basically FLAC is far from ideal and this problem can’t be fixed! Bugger 🙂
The solution is to rip the raw LPCM stream from the BluRay without FLAC compression, split the resulting MKV at the chapter points, then encode to FLAC.
Having done a little more research I came across metaflac, which is capable of editing / adding tags to FLAC files via the command line, I’ve modified the previous script accordingly and added additional user prompts for Artist, Album, Year and Genre and then tagged the resulting FLAC file with this and the track names and numbers. For the background read the original article here.
Here’s the revised script: –