-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathREADME-codecs.txt
266 lines (155 loc) · 5.13 KB
/
README-codecs.txt
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
Create and go to source directory
mkdir src
cd src
1. Download ITU Software Tools (STL2009)
- Open a web browser and download/save this file (accept the untrusted certificate if asked)
https://www.itu.int/rec/dologin_pub.asp?lang=e&id=T-REC-G.191-201003-I!!SOFT-ZST-E&type=items
- Decompress the downloaded file T-REC-G.191-201003-I!!SOFT-ZST-E.zip
unzip ~/Downloads/T-REC-G.191-201003-I\!\!SOFT-ZST-E.zip
This is going to create the Software/stl2009 directory.
- Compilation
- G.722 (sub-band ADPCM, VoIP)
cd Software/stl2009/g722
make -f makefile.unx
- G.728 (low-delay CELP, videoconferencing)
cd ../g728/g728fixed
make -f makefile.unx
- G.726 (mu/A-law + ADPCM)
cd ../../g726
make -f makefile.unx
- G.711 (mu/A-law)
cd ../g711
make -f makefile.unx
- Go back to src root dir
cd ../../../
2. Download G.729 (low-delay CS-ACELP, satellite)
- Open a web browser and download this file (accept the untrusted
certificate if asked)
http://www.itu.int/rec/T-REC-G.729-201206-I/en
- Decompress the downloaded file T-REC-G.729-201206-I\!\!SOFT-ZST-E.zip
unzip ~/Downloads/T-REC-G.729-201206-I\!\!SOFT-ZST-E.zip
This is going to create the Software/G729_Release3 directory
- Compilation
cd Software/G729_Release3/g729AnnexA/c_code
- Rename all files to lowercase
for i in `ls` ; do mv -f "$i" `echo "$i" | tr A-Z a-z` ; done
- Create Makefile and make both coder and decoder
make -f coder.mak
make -f decoder.mak
- Go back to src root dir
cd ../../../../
3. Filter and Add Noise tool (FaNT)
- Download the package
wget http://dnt.kr.hsnr.de/aurora/download/fant.tar.gz
- Make dir, decompress and compile
mkdir fant
cd fant
tar xzvf ../fant.tar.gz
make -f filter_add_noise.make
- Go back to src root dir
cd ../
4. OPUS library (silk codec used by Skype)
- Download the package
wget http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz
- Compile
tar xzvf opus-1.1.tar.gz
cd opus-1.1
make -f Makefile.unix
- Go back to src root dir
cd ../
5. SOX (version 14.4.2, older versions might fail in some operations)
- Download SOX package
http://sourceforge.net/projects/sox/
Click Download green button and wait for some seconds
- Decompress the downloaded file sox-14.4.2.tar.bz2
tar -xvjf ~/Downloads/sox-14.4.2.tar.bz2
- Compilation
cd sox-14.4.2
./configure --enable-static --disable-shared
make
- Go back to src root dir
cd ../
6. FFMPEG (with MP3 and AAC support)
- Download MMPEG package
http://www.ffmpeg.org/download.html
Click on green button.
- Decompress the downloaded file ffmpeg-2.6.2.tar.bz2
tar -xvjf ~/Downloads/ffmpeg-2.6.2.tar.bz2
- Download LAME library for FFMPEG MP3 support
http://sourceforge.net/projects/lame/files/lame/3.99/
click on file lame-3.99.5.tar.gz and wait for a few seconds
- Compile LAME library
tar xzvf ~/Downloads/lame-3.99.5.tar.gz
cd lame-3.99.5
./configure
make
sudo make install
cd ../
- Download aacplus library for FFMPEG AAC support
wget http://tipok.org.ua/downloads/media/aacplus/libaacplus/libaacplus-2.0.2.tar.gz
- Compile AAC library
sudo apt-get install libtool
tar xzvf libaacplus-2.0.2.tar.gz
cd libaacplus-2.0.2
./autogen.sh --enable-shared --enable-static
make
sudo make install
cd ../
- Compile FFMPEG
cd ffmpeg-2.6.2
./configure --enable-gpl --enable-libmp3lame --enable-nonfree --enable-libaacplus --disable-yasm
make
sudo make install
cd ../
7. AMR-NB
- Download AMR-NB package
wget http://www.etsi.org/deliver/etsi_ts/126000_126099/126073/03.03.00_60/ts_126073v030300p0.zip
- Decompress AMR-NB
mkdir amr-nb
cd amr-nb
unzip ../ts_126073v030300p0.zip
- Compile
Change architecture. Add lines
#define linux 1
#define i386 1
at the top of file typedefs.h .
make -f makefile
- Go back to src root dir
cd ../
8. AMR-WB
- Download AMR-WB package from
http://www.itu.int/rec/T-REC-G.722.2-200811-I!AnnC
- Decompress codec
unzip ~/Downloads/T-REC-G.722.2-200811-I\!AnnC\!SOFT-ZST-E.zip
cd G722-2AnxC-v.7.1.0/c-code-v.7.1.0
Change architecture. Add lines
#define linux 1
#define i386 1
at the top of file typedefs.h.
make -f makefile.gcc
cd ../../
8. Convert SPHERE files to wav
- Download sph2pipe
wget https://www.ldc.upenn.edu/sites/www.ldc.upenn.edu/files/ctools/sph2pipe_v2.5.tar.gz
- Compile code
tar xzvf sph2pipe_v2.5.tar.gz
cd sph2pipe_v2.5
gcc -o sph2pipe shorten_x.c file_headers.c sph2pipe.c -lm
cd ../
9. Qualcomm-ICSI-OGI noise reduction
- Download
wget http://www.icsi.berkeley.edu/Speech/papers/qio/qio.zip
- Decompress
unzip qio.zip
cd aurora-front-end/qio/src
make
cd ../../../
10. Codec2 (very low bit-rate coding)
- Download
svn co https://svn.code.sf.net/p/freetel/code/codec2 codec2
cd codec2
mkdir build_linux
cd build_linux
cmake ../
make
cd ../../