[FFmpeg-user] G723.1 conversion to PCM

Moritz Barsnick barsnick at gmx.net
Tue Sep 25 10:55:19 EEST 2018


On Mon, Sep 24, 2018 at 20:13:15 -0400, esikcalabrese at verizon.net wrote:
> For the issue of converting G723.1 to PCM format – please see the below input and output and advise.  
> C:\ffmpeg\bin>ffmpeg -acodec g723.1 Robinson.wav -f PCM robinsonconverted.wav

"PCM" is not a format. Even if you mean an encoding, WAV output
defaults to PCM anyway.

As Carl Eugen mentioned, please try
$ ffmpeg -i Robinson.wav robinsonconverted.wav
first.

If that does not "work", because it sounds incorrect, i.e. ffmpeg did
not recognize the G723.1 codec, you can do:
$ ffmpeg -c:a g723_1 -i Robinson.wav robinsonconverted.wav
But see below - ffmpeg understands automatically.

(As I mentioned, ffmpeg's codec implementation is named g723_1, not
g723.1.)

> C:\ffmpeg\bin>ffmpeg -i Robinson.wav g723.1 -f robinsonconverted.wav PCM

This syntax is totally incorrect.

> Input #0, wav, from 'Robinson.wav':
>   Duration: 00:07:48.95, bitrate: 5 kb/s
>     Stream #0:0: Audio: g723_1 ([0][161][0][0] / 0xA100), 8000 Hz, mono, s16, 5 kb/s

This shows that you do not need to specify the input codec, as ffmpeg
recognizes it correctly.

Moritz


More information about the ffmpeg-user mailing list