Skip to content

Instantly share code, notes, and snippets.

@namndev
Forked from buttreygoodness/FLACConvert.md
Created June 6, 2025 10:52
Show Gist options
  • Save namndev/17ec34e7eb1e2b35bd215f4de7c95cbf to your computer and use it in GitHub Desktop.
Save namndev/17ec34e7eb1e2b35bd215f4de7c95cbf 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