I've been using a small script wrapped in an app (using Platypus) to convert my audio to ADPCM.
Today I updated that from using ffmpeg
to using adpcm-xq (thanks to @mandra via @neven for the tip!)
Results are higher quality, compatible ADPCM audio files albeit with slightly longer conversion time.
usage
- run app and select files to process
or - drag and drop files onto the app icon
output
- folder
ADPCM
next to source files - 22050 Hz stereo
options
- hold Alt: 44100 Hz stereo
- hold Shift: larger lookahead mode (slower, marginally better results)
download
- ADPCM.app.zip (225.7 KB) Intel only
- Apple silicon build soon
notes
- app is signed by me, but I can only test on Mojave - so no support on other versions of macOS, sorry
- requires
ffmpeg
to be installed at/usr/local/bin
to handle the sample rate conversion
screenshots
source code
optKeyDown=`./keys option`
shiftKeyDown=`./keys shift`
if [ $optKeyDown -eq 0 ]
then
RATE=22050
else
RATE=44100
fi
if [ $shiftKeyDown -eq 0 ]
then
LOOK=3
else
LOOK=5
fi
echo "Converting... @ $RATE Hz, lookahead $LOOK"
for file in "$@"
do
FILENAME=`basename "$file"`
FILENAME="${FILENAME%.*}"
FOLDER=`dirname "$file"`
mkdir -p "$FOLDER/ADPCM/"
echo "$FILENAME"
/usr/local/bin/ffmpeg -i "$file" -ar $RATE "$FOLDER/ADPCM/.temp.wav" 2> /dev/null
./adpcm-xq -$LOOK -q -y "$FOLDER/ADPCM/.temp.wav" "$FOLDER/ADPCM/$FILENAME.wav"
rm "$FOLDER/ADPCM/.temp.wav"
done