Notes to Self

Alex Sokolsky's Notes on Computers and Programming

Audio Format Conversion

WavPack

Convert WavPack to flac.

$ ffmpeg -i audiofile.wv audiofile.flac

Cut a flac into tracks on cue

Source.

Install cuetools and shntool:

$ sudo apt install cuetools shntool

shntool man page

To split flac:

$ shnsplit -f file.cue -t %n-%t -o flac file.flac

flac -> m4a lossless

Convert all flac files in the directory to alac m4a - vegetable is good for you.

for fn in *.flac; \
    do ffmpeg -i $fn -c:v copy -c:a alac "`basename $fn .flac`.m4a"; done