blog.minskio.co.uk

Content and theme behind minskio.co.uk
Log | Files | Refs

ffmpeg-pbx-conversions.md (1183B)


      1 ---
      2 title: "FFmpeg audio conversions for PBX"
      3 date: 2019-01-14T16:08:00
      4 tags: ["Formats", "Guides", "Linux", "PBX", "Snippets", "Windows", "Work"]
      5 ---
      6 
      7 Firstly, grab a copy of `ffmpeg` from the [official website](https://www.ffmpeg.org/download.html#build-windows) if you're running Windows, or your package manager if you're running Linux.
      8 
      9 ## Samsung OfficeServ
     10 ```
     11 ffmpeg -i "input.ext" -codec pcm_s16le -ar 8000 -ac 1 -ab 128k "output.wav"
     12 ```
     13 
     14 ### LG/Ericsson eMG/UCP
     15 ```
     16 ffmpeg -i "input.ext" -codec:a pcm_mulaw -ar 8000 -ac 1 -ab 64k "output.wav"
     17 ```
     18 
     19 ### LG/Ericsson Hosted Platform
     20 ```
     21 ffmpeg -i "input.ext" -codec:a pcm_s16le -ar 8000 -ac 1 -ab 64k "output.wav"
     22 ```
     23 
     24 ### Panasonic NS700/NS1000
     25 ```
     26 ffmpeg -i "input.ext" -codec:a pcm_mulaw -ar 8000 -ac 1 -ab 64k "output.wav"
     27 ```
     28 
     29 ### Gamma Horizon Hosted Platform
     30 ```
     31 ffmpeg -i "input.ext" -codec:a pcm_mulaw -ar 8000 -ac 1 -ab 64k "output.wav"
     32 ```
     33 
     34 ## 3CX
     35 ```
     36 ffmpeg -i "input.ext" -codec pcm_s16le -ar 8000 -ac 1 -ab 128k "output.wav"
     37 ```
     38 
     39 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