summaryrefslogtreecommitdiffstats
path: root/content/posts/ffmpeg-pbx-conversions.md
blob: 05e87f531b34aa6e0a15bd0725cd8db56c0f2f3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
title: "FFmpeg audio conversions for PBX"
date: 2019-01-14T16:08:00
tags: ["Formats", "Guides", "Linux", "PBX", "Snippets", "Windows", "Work"]
---

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.

## Samsung OfficeServ
```
ffmpeg -i "input.ext" -codec pcm_s16le -ar 8000 -ac 1 -ab 128k "output.wav"
```

### LG/Ericsson eMG80
```
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"
```

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