blob: 400180f577c34593d8fbc86f5fbccf5c3672a45e [file] [log] [blame]
Jean-Marc Valin445d5f42011-03-09 14:15:32 -05001To build this source code, simply type:
2
3% make
4
Kat Walsh3269dce2011-08-15 22:43:51 -04005If this does not work, or if you want to change the default configuration (e.g.,
6to compile for a fixed-point architecture), simply edit the options in the
7Makefile.
Jean-Marc Valin445d5f42011-03-09 14:15:32 -05008
Kat Walsh3269dce2011-08-15 22:43:51 -04009To build from the git repository instead of using this draft, follow these
10steps:
Jean-Marc Valin445d5f42011-03-09 14:15:32 -050011
121) Clone the repository:
13
Jean-Marc Valinfe741252011-04-30 14:21:35 -040014% git clone git://git.opus-codec.org/opus.git
15% cd opus
Jean-Marc Valin445d5f42011-03-09 14:15:32 -050016
Jean-Marc Valinfe741252011-04-30 14:21:35 -0400172) Compile
Jean-Marc Valin445d5f42011-03-09 14:15:32 -050018
19% ./autogen.sh
Jean-Marc Valinfe741252011-04-30 14:21:35 -040020% ./configure
Jean-Marc Valin445d5f42011-03-09 14:15:32 -050021% make
22
Jean-Marc Valin445d5f42011-03-09 14:15:32 -050023Once you have compiled the codec, there will be a test_opus executable in
Kat Walsh3269dce2011-08-15 22:43:51 -040024the src/ directory.
Jean-Marc Valin445d5f42011-03-09 14:15:32 -050025
Kat Walsh3269dce2011-08-15 22:43:51 -040026Usage: ./test_opus [-e | -d] <application (0/1)> <sampling rate (Hz)> <channels
27(1/2)> <bits per second> [options] <input> <output>
Jean-Marc Valin445d5f42011-03-09 14:15:32 -050028
Kat Walsh3269dce2011-08-15 22:43:51 -040029mode: 0 for VoIP, 1 for audio:
Jean-Marc Valin445d5f42011-03-09 14:15:32 -050030options:
Kat Walsh3269dce2011-08-15 22:43:51 -040031-e : only runs the encoder (output the bit-stream)
32-d : only runs the decoder (reads the bit-stream as input)
33-cbr : enable constant bitrate; default: variable bitrate
34-cvbr : enable constrained variable bitrate;
35 default: unconstrained
36-bandwidth <NB|MB|WB|SWB|FB> : audio bandwidth (from narrowband to fullband);
37 default: sampling rate
38-framesize <2.5|5|10|20|40|60> : frame size in ms; default: 20
Jean-Marc Valin445d5f42011-03-09 14:15:32 -050039-max_payload <bytes> : maximum payload size in bytes, default: 1024
40-complexity <comp> : complexity, 0 (lowest) ... 10 (highest); default: 10
41-inbandfec : enable SILK inband FEC
Kat Walsh3269dce2011-08-15 22:43:51 -040042-forcemono : force mono encoding, even for stereo input
Jean-Marc Valin445d5f42011-03-09 14:15:32 -050043-dtx : enable SILK DTX
44-loss <perc> : simulate packet loss, in percent (0-100); default: 0
45
46input and output are 16-bit PCM files (machine endian)