blob: cc8219e01080d7c4446f89aa8422d9036ea0dc7f [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
Jean-Marc Valinfe741252011-04-30 14:21:35 -040013% git clone git://git.opus-codec.org/opus.git
14% cd opus
Jean-Marc Valin445d5f42011-03-09 14:15:32 -050015
Jean-Marc Valinfe741252011-04-30 14:21:35 -0400162) Compile
Jean-Marc Valin445d5f42011-03-09 14:15:32 -050017
18% ./autogen.sh
Jean-Marc Valinfe741252011-04-30 14:21:35 -040019% ./configure
Jean-Marc Valin445d5f42011-03-09 14:15:32 -050020% make
21
22
23Once you have compiled the codec, there will be a test_opus executable in
24the src/ directory. This can be in the following way:
25
26% ./test_opus <mode (0/1/2)> <sampling rate (Hz)> <channels> <bits per second> [options] <input> <output>
27
28mode: 0 for audo, 1 for voice, 2 for audio:
29options:
30-cbr : enable constant bitrate; default: VBR
31-bandwidth <NB|MB|WB|SWB|FB> : audio bandwidth (from narrowband to fullband); default: sampling rate
32-framesize <2.5|5|10|20|40|60> : frame size in ms; default: 20
33-max_payload <bytes> : maximum payload size in bytes, default: 1024
34-complexity <comp> : complexity, 0 (lowest) ... 10 (highest); default: 10
35-inbandfec : enable SILK inband FEC
36-dtx : enable SILK DTX
37-loss <perc> : simulate packet loss, in percent (0-100); default: 0
38
39input and output are 16-bit PCM files (machine endian)