Audio Soft Decoding
The topic provides examples for soft decoding an audio file.
The following code block shows the example in different scenarios.
- Soft-decode a WAV file to audio RAW PCM:
ffmpeg -i test1-16k-32b.wav -f s32le -acodec pcm_s32le -ar 16000 -ac 2 output-test1-16k-32b.pcm
- Soft-decode a MP3 file to audio RAW PCM:
ffmpeg -i test1-16k-32b.mp3 -f s32le -acodec pcm_s32le -ar 16000 -ac 2 output-test1-16k-32b.pcm
- Soft-decode a AAC file to audio RAW PCM:
ffmpeg -i test1-16k-32b.aac -f s32le -acodec pcm_s32le -ar 16000 -ac 2 output-test1-16k-32b.pcm