README 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. This is a prototype codec and for now it has limited functionality.
  2. To build from a distribution tarball, you only need to do the following:
  3. % ./configure
  4. % make
  5. To build from the git repository, the following steps are necessary:
  6. 1) Clone the repository:
  7. % git clone git://git.opus-codec.org/opus.git
  8. % cd opus
  9. 1) Compiling
  10. % ./autogen.sh
  11. % ./configure
  12. % make
  13. Once you have compiled the codec, there will be a test_opus executable in
  14. the src/ directory.
  15. Usage: ./test_opus [-e | -d] <application (0/1)> <sampling rate (Hz)> <channels
  16. (1/2)> <bits per second> [options] <input> <output>
  17. mode: 0 for VoIP, 1 for audio:
  18. options:
  19. -e : only runs the encoder (output the bit-stream)
  20. -d : only runs the decoder (reads the bit-stream as input)
  21. -cbr : enable constant bitrate; default: variable bitrate
  22. -cvbr : enable constrained variable bitrate;
  23. 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 16-bit PCM files (machine endian)