FFmpeg audio conversions for PBX
Published: Jan 14, 2019
Reading time: 1 min
Firstly, grab a copy of ffmpeg
from the official website if you’re running Windows, or your package manager if you’re running Linux.
Samsung OfficeServ
ffmpeg -i "input.ext" -codec pcm_s16le -ar 8000 -ac 1 -ab 128k "output.wav"
LG/Ericsson eMG/UCP
ffmpeg -i "input.ext" -codec:a pcm_mulaw -ar 8000 -ac 1 -ab 64k "output.wav"
LG/Ericsson Hosted Platform
ffmpeg -i "input.ext" -codec:a pcm_s16le -ar 8000 -ac 1 -ab 64k "output.wav"
Panasonic NS700/NS1000
ffmpeg -i "input.ext" -codec:a pcm_mulaw -ar 8000 -ac 1 -ab 64k "output.wav"
Gamma Horizon Hosted Platform
ffmpeg -i "input.ext" -codec:a pcm_mulaw -ar 8000 -ac 1 -ab 64k "output.wav"
3CX
ffmpeg -i "input.ext" -codec pcm_s16le -ar 8000 -ac 1 -ab 128k "output.wav"
Sometimes, the files can be a little loud when played. You can simply knock this down during conversion via -af volume=0.8
which predictably equates to 80% of the original volume