How to Encode into Wav Adpcm?

How to Encode into Wav Adpcm?

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.

2

1 Answer

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!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Marcus Vance
Author

Marcus Vance

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.