blob: b271f163400466cbe08b651392ce60f5110853d3 [file] [log] [blame]
Jean-Marc Valin4468c752010-07-08 13:40:07 -04001This is a prototype codec and for now it has limited functionality.
Jean-Marc Valin7bab9a92010-06-29 23:59:04 -04002
Jean-Marc Valin4468c752010-07-08 13:40:07 -04003To build from a distribution tarball, you only need to do the following:
Jean-Marc Valin8ba2a772010-07-05 14:55:02 -04004
Jean-Marc Valinfe741252011-04-30 14:21:35 -04005% ./configure
Jean-Marc Valin8ba2a772010-07-05 14:55:02 -04006% make
7
Kat Walsh3269dce2011-08-15 22:43:51 -04008To build from the git repository, the following steps are necessary:
Jean-Marc Valin4468c752010-07-08 13:40:07 -04009
Jean-Marc Valinfe741252011-04-30 14:21:35 -0400101) Clone the repository:
Jean-Marc Valin4468c752010-07-08 13:40:07 -040011
Jean-Marc Valinfe741252011-04-30 14:21:35 -040012% git clone git://git.opus-codec.org/opus.git
13% cd opus
Jean-Marc Valin4468c752010-07-08 13:40:07 -040014
Jean-Marc Valinfe741252011-04-30 14:21:35 -0400151) Compiling
Jean-Marc Valin4468c752010-07-08 13:40:07 -040016
17% ./autogen.sh
Jean-Marc Valinfe741252011-04-30 14:21:35 -040018% ./configure
Jean-Marc Valin4468c752010-07-08 13:40:07 -040019% make
20
21
Jean-Marc Valin05dd36a2010-10-18 12:50:49 -040022Once you have compiled the codec, there will be a test_opus executable in
Kat Walsh3269dce2011-08-15 22:43:51 -040023the src/ directory.
Jean-Marc Valin4468c752010-07-08 13:40:07 -040024
Kat Walsh3269dce2011-08-15 22:43:51 -040025Usage: ./test_opus [-e | -d] <application (0/1)> <sampling rate (Hz)> <channels
26(1/2)> <bits per second> [options] <input> <output>
Jean-Marc Valin4468c752010-07-08 13:40:07 -040027
Kat Walsh3269dce2011-08-15 22:43:51 -040028mode: 0 for VoIP, 1 for audio:
Jean-Marc Valin08062002011-03-09 13:24:24 -050029options:
Kat Walsh3269dce2011-08-15 22:43:51 -040030-e : only runs the encoder (output the bit-stream)
31-d : only runs the decoder (reads the bit-stream as input)
32-cbr : enable constant bitrate; default: variable bitrate
33-cvbr : enable constrained variable bitrate;
34 default: unconstrained
35-bandwidth <NB|MB|WB|SWB|FB> : audio bandwidth (from narrowband to fullband);
36 default: sampling rate
37-framesize <2.5|5|10|20|40|60> : frame size in ms; default: 20
Jean-Marc Valin08062002011-03-09 13:24:24 -050038-max_payload <bytes> : maximum payload size in bytes, default: 1024
39-complexity <comp> : complexity, 0 (lowest) ... 10 (highest); default: 10
40-inbandfec : enable SILK inband FEC
Kat Walsh3269dce2011-08-15 22:43:51 -040041-forcemono : force mono encoding, even for stereo input
Jean-Marc Valin08062002011-03-09 13:24:24 -050042-dtx : enable SILK DTX
43-loss <perc> : simulate packet loss, in percent (0-100); default: 0
Jean-Marc Valin78a4b582010-07-08 15:51:49 -040044
Jean-Marc Valin08062002011-03-09 13:24:24 -050045input and output are 16-bit PCM files (machine endian)