Skip to content

Instantly share code, notes, and snippets.

@thekiba
Forked from vol4ok/gist:2587886
Last active February 14, 2018 11:28
Show Gist options
  • Save thekiba/6943266 to your computer and use it in GitHub Desktop.
Save thekiba/6943266 to your computer and use it in GitHub Desktop.
brew install flac ffmpeg cuetools # ставим нужные пакеты
# скачиваем cuetag.sh скрипт, например отсюда https://github.com/gumayunov/split-cue/blob/master/cuetag
ffmpeg -i 1.ape 1.flac # конвертируем во flac, так как libmac для APE не ставится на osx
cuebreakpoints 1.cue | shnsplit -o flac 1.flac #нарезаем на треки
cuetag 1.cue split-track*.flac #прописываем тэги (cuetag.sh ставится отдельно отдельно)
#конвертируем в ALAC
for f in *.flac
do
ffmpeg -i "$f" -acodec alac "${f%.flac}.m4a";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment