Skip to content

Instantly share code, notes, and snippets.

@buttreygoodness
Last active September 10, 2024 01:23
Show Gist options
  • Save buttreygoodness/582950815f22997a784cb823460582c7 to your computer and use it in GitHub Desktop.
Save buttreygoodness/582950815f22997a784cb823460582c7 to your computer and use it in GitHub Desktop.
How to split FLAC files by cue and convert to ALAC on Mac OS X
  • Install required packages
brew install cuetools flac ffmpeg shntool
  • Split flac file by cue
$ shnsplit -o flac -f file.cue file.flac
$ cuetag file.cue split-track*.flac
  • Convert flac files to alac
$ for i in *.flac; do ffmpeg -i "$i" -acodec alac "`basename "$i" .flac`.m4a"; done;

from https://coderwall.com/p/6ydyoq/how-to-split-flac-files-by-cue-and-convert-to-alac-on-mac-os-x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment