README.draft 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 opus_demo executable in
  16. the top directory.
  17. Usage: opus_demo [-e] <application> <sampling rate (Hz)> <channels (1/2)>
  18. <bits per second> [options] <input> <output>
  19. opus_demo -d <sampling rate (Hz)> <channels (1/2)> [options]
  20. <input> <output>
  21. mode: voip | audio | restricted-lowdelay
  22. options:
  23. -e : only runs the encoder (output the bit-stream)
  24. -d : only runs the decoder (reads the bit-stream as input)
  25. -cbr : enable constant bitrate; default: variable bitrate
  26. -cvbr : enable constrained variable bitrate; default: unconstrained
  27. -bandwidth <NB|MB|WB|SWB|FB> : audio bandwidth (from narrowband to fullband);
  28. default: sampling rate
  29. -framesize <2.5|5|10|20|40|60> : frame size in ms; default: 20
  30. -max_payload <bytes> : maximum payload size in bytes, default: 1024
  31. -complexity <comp> : complexity, 0 (lowest) ... 10 (highest); default: 10
  32. -inbandfec : enable SILK inband FEC
  33. -forcemono : force mono encoding, even for stereo input
  34. -dtx : enable SILK DTX
  35. -loss <perc> : simulate packet loss, in percent (0-100); default: 0
  36. input and output are 16-bit PCM files (machine endian) or opus bitstreams
  37. with simple opus_demo propritary framing.