ref: c1a707427fbbb5129e467516fc671e976ee3e398
dir: /ape2flac/
#!/bin/rc # Convert APE to FLAC using ffmpeg, bchunk, and flac, # then delete the intermediate WAV files. # This program is intended to run on a UNIX-like operating system. # Usage: Running alac2flac converts files in the current directory. # Dependencies: # https://9fans.github.io/plan9port/ # http://he.fi/bchunk # https://ffmpeg.org # https://www.xiph.org/flac rfork e ffmpeg -i $2 out.wav && bchunk -w out.wav $1 FILE && rm -f out.wav && for(i in FILE*.wav){ flac --best $i && rm -f $i }