Jean-Marc Valin | 445d5f4 | 2011-03-09 14:15:32 -0500 | [diff] [blame] | 1 | To build this source code, simply type: |
| 2 | |
| 3 | % make |
| 4 | |
Kat Walsh | 3269dce | 2011-08-15 22:43:51 -0400 | [diff] [blame] | 5 | If this does not work, or if you want to change the default configuration (e.g., |
| 6 | to compile for a fixed-point architecture), simply edit the options in the |
| 7 | Makefile. |
Jean-Marc Valin | 445d5f4 | 2011-03-09 14:15:32 -0500 | [diff] [blame] | 8 | |
Kat Walsh | 3269dce | 2011-08-15 22:43:51 -0400 | [diff] [blame] | 9 | To build from the git repository instead of using this draft, follow these |
| 10 | steps: |
Jean-Marc Valin | 445d5f4 | 2011-03-09 14:15:32 -0500 | [diff] [blame] | 11 | |
| 12 | 1) Clone the repository: |
| 13 | |
Jean-Marc Valin | fe74125 | 2011-04-30 14:21:35 -0400 | [diff] [blame] | 14 | % git clone git://git.opus-codec.org/opus.git |
| 15 | % cd opus |
Jean-Marc Valin | 445d5f4 | 2011-03-09 14:15:32 -0500 | [diff] [blame] | 16 | |
Jean-Marc Valin | fe74125 | 2011-04-30 14:21:35 -0400 | [diff] [blame] | 17 | 2) Compile |
Jean-Marc Valin | 445d5f4 | 2011-03-09 14:15:32 -0500 | [diff] [blame] | 18 | |
| 19 | % ./autogen.sh |
Jean-Marc Valin | fe74125 | 2011-04-30 14:21:35 -0400 | [diff] [blame] | 20 | % ./configure |
Jean-Marc Valin | 445d5f4 | 2011-03-09 14:15:32 -0500 | [diff] [blame] | 21 | % make |
| 22 | |
Jean-Marc Valin | 445d5f4 | 2011-03-09 14:15:32 -0500 | [diff] [blame] | 23 | Once you have compiled the codec, there will be a test_opus executable in |
Kat Walsh | 3269dce | 2011-08-15 22:43:51 -0400 | [diff] [blame] | 24 | the src/ directory. |
Jean-Marc Valin | 445d5f4 | 2011-03-09 14:15:32 -0500 | [diff] [blame] | 25 | |
Kat Walsh | 3269dce | 2011-08-15 22:43:51 -0400 | [diff] [blame] | 26 | Usage: ./test_opus [-e | -d] <application (0/1)> <sampling rate (Hz)> <channels |
| 27 | (1/2)> <bits per second> [options] <input> <output> |
Jean-Marc Valin | 445d5f4 | 2011-03-09 14:15:32 -0500 | [diff] [blame] | 28 | |
Kat Walsh | 3269dce | 2011-08-15 22:43:51 -0400 | [diff] [blame] | 29 | mode: 0 for VoIP, 1 for audio: |
Jean-Marc Valin | 445d5f4 | 2011-03-09 14:15:32 -0500 | [diff] [blame] | 30 | options: |
Kat Walsh | 3269dce | 2011-08-15 22:43:51 -0400 | [diff] [blame] | 31 | -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 Valin | 445d5f4 | 2011-03-09 14:15:32 -0500 | [diff] [blame] | 39 | -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 Walsh | 3269dce | 2011-08-15 22:43:51 -0400 | [diff] [blame] | 42 | -forcemono : force mono encoding, even for stereo input |
Jean-Marc Valin | 445d5f4 | 2011-03-09 14:15:32 -0500 | [diff] [blame] | 43 | -dtx : enable SILK DTX |
| 44 | -loss <perc> : simulate packet loss, in percent (0-100); default: 0 |
| 45 | |
| 46 | input and output are 16-bit PCM files (machine endian) |