Skip to content

Instantly share code, notes, and snippets.

View andrewslotin's full-sized avatar

Andrey Slotin andrewslotin

  • Pawtucket Pat, Inc.
  • Berlin, Germany
View GitHub Profile
@andrewslotin
andrewslotin / GNU-Make.md
Created August 12, 2020 11:47 — forked from rueycheng/GNU-Make.md
GNU Make cheatsheet
@andrewslotin
andrewslotin / flac2alac.sh
Last active April 19, 2024 17:39 — forked from vol4ok/gist:2587886
Split .ape and .flac and convert to .m4a (ALAC) or .mp3 on MacOS X
# brew install flac ffmpeg cuetools shntool # ставим нужные пакеты
ffmpeg -i 1.ape 1.flac # конвертируем во flac, так как libmac для APE не ставится на osx
cuebreakpoints 1.cue | shnsplit -o flac 1.flac #нарезаем на треки
cuetag.sh 1.cue split-track*.flac #прописываем тэги (cuetag.sh ставится отдельно отдельно)
# конвертируем в ALAC
for f in split-track*.flac ; do
ffmpeg -i "$f" -acodec alac "${f%.flac}.m4a";
done