[FFmpeg-user] Unable to convert to GSM

Carl Eugen Hoyos ceffmpeg at gmail.com
Sat Feb 16 20:53:55 EET 2019

2019-02-16 9:17 GMT+01:00, Aditya Satyavada <aditya at vernacular.ai>:

> The log for my local Mac is :

Please understand the the type of log you provided is not

> subprocess.call(['ffmpeg', '-y', '-f', 'mp3', '-i', '-'

If you have an mp3 sample that needs forcing the input
format, please provide it.

>, '-acodec', 'pcm_s16le', '-vn', '-f', 'wav', '-'])
> subprocess.call(['ffmpeg', '-y', '-f', 'wav', '-i',

> '/var/folders/6x/x6yx59qx2z5gw_m6gvjvhd9h0000gn/T/tmpev7c6so_', '-b:a',
> '13k', '-ar', '8000', '-write_xing', '0', '-f', 'gsm',

The equivalent for "-f gsm" both with old and new versions
off FFmpeg is (always needs --enable-libgsm):
$ ffmpeg -i input -ar 8k -acodec gsm -f rawvideo -map 0:a:0 -b:a 13k
-ac 1 output.gsm

Carl Eugen

More information about the ffmpeg-user mailing list