2

How to encode WAV PCM into WAV with ADPCM encoding?

I tried FFmpeg. I can see from the old FFmpeg codec list, that it previously supported encoding into adpcm_adx, adpcm_ima_qt, adpcm_ima_wav, adpcm_ms, adpcm_swf and adpcm_yamaha. However, these codecs seem to be not included into FFmpeg anymore (at least, in my v.4.1.3 installation).

The purpose is to include a miniature audio file into an embedded project and then decode it with dr_wav library, which supports IMA ADPCM and Microsoft ADPCM.

1 Answers1

6

Just to close the question, here are two ways to convert audio into WAV with ADPCM encoding:

1) With FFmpeg:

ffmpeg -i INPUT.wav -f wav -acodec adpcm_ms OUTPUT.wav

2) With SoX:

sox INPUT.wav -e ms-adpcm OUTPUT.wav

Thanks to @grawity for the help!