README.draft 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. To build this source code, simply type:
  2. % make
  3. If this does not work, or if you want to change the default configuration (e.g.,
  4. to compile for a fixed-point architecture), simply edit the options in the
  5. Makefile.
  6. To build from the git repository instead of using this draft, follow these
  7. steps:
  8. 1) Clone the repository:
  9. % git clone git://git.opus-codec.org/opus.git
  10. % cd opus
  11. 2) Compile
  12. % ./autogen.sh
  13. % ./configure
  14. % make
  15. Once you have compiled the codec, there will be a test_opus executable in
  16. the src/ directory.
  17. Usage: ./test_opus [-e | -d] <application (0/1)> <sampling rate (Hz)> <channels
  18. (1/2)> <bits per second> [options] <input> <output>
  19. mode: 0 for VoIP, 1 for audio:
  20. options:
  21. -e : only runs the encoder (output the bit-stream)
  22. -d : only runs the decoder (reads the bit-stream as input)
  23. -cbr : enable constant bitrate; default: variable bitrate
  24. -cvbr : enable constrained variable bitrate;
  25. default: unconstrained
  26. -bandwidth <NB|MB|WB|SWB|FB> : audio bandwidth (from narrowband to fullband);
  27. default: sampling rate
  28. -framesize <2.5|5|10|20|40|60> : frame size in ms; default: 20
  29. -max_payload <bytes> : maximum payload size in bytes, default: 1024
  30. -complexity <comp> : complexity, 0 (lowest) ... 10 (highest); default: 10
  31. -inbandfec : enable SILK inband FEC
  32. -forcemono : force mono encoding, even for stereo input
  33. -dtx : enable SILK DTX
  34. -loss <perc> : simulate packet loss, in percent (0-100); default: 0
  35. input and output are 16-bit PCM files (machine endian)