blob: 9e1b53e3db117c3871c2062baa32ccc399109ebb [file] [log] [blame]
Jean-Marc Valin445d5f42011-03-09 14:15:32 -05001To build this source code, simply type:
2
3% make
4
5If this does not work, or to change the default configuration (e.g. compile for
6a fixed-point architecture), simply edit the options in the Makefile
7
8To build from the git repository instead of using this draft, the following
9steps are necessary
10
111) Clone the repository:
12
13% git clone git://git.xiph.org/users/jm/ietfcodec.git
14% cd ietfcodec
15
162) Get the celt and silk submodules:
17
18% git submodule update --init
19
203) Compile
21
22% ./autogen.sh
23% ./configure --disable-shared
24% make
25
26
27Once you have compiled the codec, there will be a test_opus executable in
28the src/ directory. This can be in the following way:
29
30% ./test_opus <mode (0/1/2)> <sampling rate (Hz)> <channels> <bits per second> [options] <input> <output>
31
32mode: 0 for audo, 1 for voice, 2 for audio:
33options:
34-cbr : enable constant bitrate; default: VBR
35-bandwidth <NB|MB|WB|SWB|FB> : audio bandwidth (from narrowband to fullband); default: sampling rate
36-framesize <2.5|5|10|20|40|60> : frame size in ms; default: 20
37-max_payload <bytes> : maximum payload size in bytes, default: 1024
38-complexity <comp> : complexity, 0 (lowest) ... 10 (highest); default: 10
39-inbandfec : enable SILK inband FEC
40-dtx : enable SILK DTX
41-loss <perc> : simulate packet loss, in percent (0-100); default: 0
42
43input and output are 16-bit PCM files (machine endian)