Audio Soft Encoding

The topic provides examples for soft encoding an audio file.

The following code block shows the example in different scenarios.
  • Soft-encode a RAW PCM file to WAV:
    ffmpeg -f s32le -ac 2 -ar 16000 -i output-test1-16k-32b.pcm -acodec pcm_s32le output-test1-16k-32b.wav
  • Soft-encode a RAW PCM file to AAC:
    ffmpeg -f s32le -ac 2 -ar 16000 -i output-test1-16k-32b.pcm output-test1-16k-32b.aac
  • Soft-encode a RAW PCM file to MP3:
    ffmpeg -f s32le -ac 2 -ar 16000 -i output-test1-16k-32b.pcm output-test1-16k-32b.mp3