Здравствуйте. Я в принципе никогда не собирал до конца программу из исходников. И тут вдруг получилось. Но я никогда не пользовался программами в консоли, только настраивал систему. Папка с программой установлена в /tmp/opus-0.9.8.
Ну и собственно вот та часть файла README, которая мне не ясна (usage или как пользоваться, если можно с примером(исходный код можно найти на
http://opus-codec.org/downloads/)):
Once you have compiled the codec, there will be a opus_demo executable in the top directory.
Usage: opus_demo [-e] <application> <sampling rate (Hz)> <channels (1/2)> <bits per second> [options] <input> <output>
opus_demo -d <sampling rate (Hz)> <channels (1/2)> [options] <input> <output>
mode: voip | audio | restricted-lowdelay
options:
-e : only runs the encoder (output the bit-stream)
-d : only runs the decoder (reads the bit-stream as input)
-cbr : enable constant bitrate; default: variable bitrate(исходный код можно найти на
http://opus-codec.org/downloads/)
-cvbr : enable constrained variable bitrate; default: unconstrained
-bandwidth <NB|MB|WB|SWB|FB> : audio bandwidth (from narrowband to fullband);
default: sampling rate
-framesize <2.5|5|10|20|40|60> : frame size in ms; default: 20
-max_payload <bytes> : maximum payload size in bytes, default: 1024
-complexity <comp> : complexity, 0 (lowest) ... 10 (highest); default: 10
-inbandfec : enable SILK inband FEC
-forcemono : force mono encoding, even for stereo input
-dtx : enable SILK DTX
-loss <perc> : simulate packet loss, in percent (0-100); default: 0
input and output are 16-bit PCM files (machine endian) or opus bitstreams with simple opus_demo propritary framing.
Я попробовал такое opus_demo -e -sampling_rate 44100 -channels 2 -bits_per_second 80000 /home/weter/010.wav home/weter/1.wav (команда не найдена).