README 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. To build from a distribution tarball, you only need to do the following:
  2. % ./configure
  3. % make
  4. To build from the git repository, the following steps are necessary:
  5. 1) Clone the repository:
  6. % git clone git://git.opus-codec.org/opus.git
  7. % cd opus
  8. 1) Compiling
  9. % ./autogen.sh
  10. % ./configure
  11. % make
  12. Once you have compiled the codec, there will be a opus_demo executable in
  13. the top directory.
  14. Usage: opus_demo [-e] <application> <sampling rate (Hz)> <channels (1/2)>
  15. <bits per second> [options] <input> <output>
  16. opus_demo -d <sampling rate (Hz)> <channels (1/2)> [options]
  17. <input> <output>
  18. mode: voip | audio | restricted-lowdelay
  19. options:
  20. -e : only runs the encoder (output the bit-stream)
  21. -d : only runs the decoder (reads the bit-stream as input)
  22. -cbr : enable constant bitrate; default: variable bitrate
  23. -cvbr : enable constrained variable bitrate; default: unconstrained
  24. -bandwidth <NB|MB|WB|SWB|FB> : audio bandwidth (from narrowband to fullband);
  25. default: sampling rate
  26. -framesize <2.5|5|10|20|40|60> : frame size in ms; default: 20
  27. -max_payload <bytes> : maximum payload size in bytes, default: 1024
  28. -complexity <comp> : complexity, 0 (lowest) ... 10 (highest); default: 10
  29. -inbandfec : enable SILK inband FEC
  30. -forcemono : force mono encoding, even for stereo input
  31. -dtx : enable SILK DTX
  32. -loss <perc> : simulate packet loss, in percent (0-100); default: 0
  33. input and output are little-endian signed 16-bit PCM files or opus bitstreams
  34. with simple opus_demo proprietary framing.