Sound into PCM

Problem

Transcode a sound file using a PCM codec.

Solution

ffmpeg \
    -i input_file \
    -c:a pcm_s24le \
    output_file

Command syntax

ffmpeg
starts the command
-i input_file
path, name and extension of the input file
-c:a pcm_s24le
The audio codec PCM with a sampling rate of 24 bit is selected.
output_file
path, name and extension of the output file

Discussion

The WAVE or BWF containers are often used for the PCM (pulse-code modulation) audio codecs, and both use the .wav file extension.

Popular PCM codecs include pcm_s16le, pcm_s24le and pcm_s32le.


2021-06-08