README.draft 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. All the files in this project are extracted from RFC6716. Please see that RFC
  2. for additional information.
  3. To build this source code, simply type:
  4. % make
  5. If this does not work, or if you want to change the default configuration
  6. (e.g., to compile for a fixed-point architecture), simply edit the options
  7. in the Makefile.
  8. An up-to-date implementation conforming to this standard is available in a
  9. Git repository at git://git.xiph.org/opus.git or on a website at:
  10. http://opus-codec.org/
  11. However, although that implementation is expected to remain conformant
  12. with the standard, it is the code in this RFC that shall remain normative.
  13. To build from the git repository instead of using this RFC, follow these
  14. steps:
  15. 1) Clone the repository (latest implementation of this standard at the time
  16. of publication)
  17. % git clone git://git.opus-codec.org/opus.git
  18. % cd opus
  19. 2) Compile
  20. % ./autogen.sh
  21. % ./configure
  22. % make
  23. Once you have compiled the codec, there will be a opus_demo executable in
  24. the top directory.
  25. Usage: opus_demo [-e] <application> <sampling rate (Hz)> <channels (1/2)>
  26. <bits per second> [options] <input> <output>
  27. opus_demo -d <sampling rate (Hz)> <channels (1/2)> [options]
  28. <input> <output>
  29. mode: voip | audio | restricted-lowdelay
  30. options:
  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; 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
  38. -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
  41. -forcemono : force mono encoding, even for stereo input
  42. -dtx : enable SILK DTX
  43. -loss <perc> : simulate packet loss, in percent (0-100); default: 0
  44. input and output are little endian signed 16-bit PCM files or opus bitstreams
  45. with simple opus_demo propritary framing.