I tried installing ffmpeg
$ brew install ffmpeg
and running ffmpeg
$ ffmpeg -i audio.m4a -ar 8000 -ab 12.2k audio.amr
I got the following error:
Automatic encoder selection failed for output stream #0:0. Default encoder for format amr (codec amr_nb) is probably disabled. Please choose an encoder manually. Error selecting an encoder for stream 0:0
I can't figure out how to enable amr_nb.
Step 1: Find the AMR install option for ffmpeg Homebrew package
List all install options for ffmpeg Homebrew package:
More concisely:
Step 2: Install ffmpeg using Homebrew install options
Step 3: Run ffmpeg