|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| celt/ | | 23-Nov-2023 | - | 27,030 | 20,106 |
| cmake/ | | 23-Nov-2023 | - | 536 | 472 |
| doc/ | | 23-Nov-2023 | - | 14,745 | 13,178 |
| fuzzer/ | | 23-Nov-2023 | - | 693 | 537 |
| include/ | | 23-Nov-2023 | - | 3,536 | 698 |
| m4/ | | 23-Nov-2023 | - | 183 | 159 |
| meson/ | | 23-Nov-2023 | - | 116 | 77 |
| scripts/ | | 23-Nov-2023 | - | 126 | 87 |
| silk/ | | 23-Nov-2023 | - | 33,121 | 20,906 |
| src/ | | 23-Nov-2023 | - | 11,511 | 9,606 |
| tests/ | | 23-Nov-2023 | - | 4,991 | 4,187 |
| training/ | | 23-Nov-2023 | - | 258 | 190 |
| win32/ | | 23-Nov-2023 | - | 2,119 | 2,054 |
| .appveyor.yml | D | 23-Nov-2023 | 778 | 38 | 30 |
| .gitattributes | D | 23-Nov-2023 | 186 | 11 | 8 |
| .gitignore | D | 23-Nov-2023 | 1.2 KiB | 91 | 90 |
| .gitlab-ci.yml | D | 23-Nov-2023 | 1.4 KiB | 62 | 54 |
| .travis.yml | D | 23-Nov-2023 | 328 | 22 | 17 |
| AUTHORS | D | 23-Nov-2023 | 239 | 7 | 6 |
| Android.bp | D | 23-Nov-2023 | 11.7 KiB | 388 | 352 |
| CMakeLists.txt | D | 23-Nov-2023 | 24.9 KiB | 619 | 531 |
| COPYING | D | 23-Nov-2023 | 1.9 KiB | 45 | 35 |
| ChangeLog | D | 23-Nov-2023 | 0 | | |
| CleanSpec.mk | D | 23-Nov-2023 | 2.2 KiB | 50 | 0 |
| LICENSE_PLEASE_READ.txt | D | 23-Nov-2023 | 703 | 23 | 15 |
| METADATA | D | 23-Nov-2023 | 300 | 16 | 15 |
| MODULE_LICENSE_BSD | D | 23-Nov-2023 | 0 | | |
| Makefile.am | D | 23-Nov-2023 | 12.1 KiB | 372 | 280 |
| Makefile.mips | D | 23-Nov-2023 | 4.5 KiB | 162 | 99 |
| Makefile.unix | D | 23-Nov-2023 | 4.4 KiB | 160 | 97 |
| NEWS | D | 23-Nov-2023 | 0 | | |
| NOTICE | D | 23-Nov-2023 | 1.4 KiB | 28 | 23 |
| OWNERS | D | 23-Nov-2023 | 124 | 5 | 4 |
| PREUPLOAD.cfg | D | 23-Nov-2023 | 89 | 3 | 2 |
| README | D | 23-Nov-2023 | 5.7 KiB | 162 | 114 |
| README.android | D | 23-Nov-2023 | 416 | 8 | 6 |
| README.draft | D | 23-Nov-2023 | 2.1 KiB | 55 | 43 |
| README.version | D | 23-Nov-2023 | 240 | 8 | 5 |
| autogen.sh | D | 23-Nov-2023 | 382 | 15 | 5 |
| celt_headers.mk | D | 23-Nov-2023 | 1.1 KiB | 54 | 53 |
| celt_sources.mk | D | 23-Nov-2023 | 887 | 51 | 42 |
| configure.ac | D | 23-Nov-2023 | 33.7 KiB | 947 | 842 |
| convert_android_asm.sh | D | 23-Nov-2023 | 1 KiB | 34 | 23 |
| libopus_blocklist.txt | D | 23-Nov-2023 | 1.3 KiB | 54 | 49 |
| meson.build | D | 23-Nov-2023 | 23.3 KiB | 676 | 613 |
| meson_options.txt | D | 23-Nov-2023 | 1.9 KiB | 23 | 19 |
| opus-uninstalled.pc.in | D | 23-Nov-2023 | 322 | 13 | 10 |
| opus.m4 | D | 23-Nov-2023 | 4 KiB | 118 | 107 |
| opus.pc.in | D | 23-Nov-2023 | 347 | 17 | 14 |
| opus_headers.mk | D | 23-Nov-2023 | 180 | 10 | 9 |
| opus_sources.mk | D | 23-Nov-2023 | 337 | 17 | 15 |
| releases.sha2 | D | 23-Nov-2023 | 6.7 KiB | 80 | 79 |
| silk_headers.mk | D | 23-Nov-2023 | 1.1 KiB | 45 | 44 |
| silk_sources.mk | D | 23-Nov-2023 | 4 KiB | 155 | 148 |
| update_version | D | 23-Nov-2023 | 2.3 KiB | 66 | 30 |
README
1== Opus audio codec ==
2
3Opus is a codec for interactive speech and audio transmission over the Internet.
4
5 Opus can handle a wide range of interactive audio applications, including
6Voice over IP, videoconferencing, in-game chat, and even remote live music
7performances. It can scale from low bit-rate narrowband speech to very high
8quality stereo music.
9
10 Opus, when coupled with an appropriate container format, is also suitable
11for non-realtime stored-file applications such as music distribution, game
12soundtracks, portable music players, jukeboxes, and other applications that
13have historically used high latency formats such as MP3, AAC, or Vorbis.
14
15 Opus is specified by IETF RFC 6716:
16 https://tools.ietf.org/html/rfc6716
17
18 The Opus format and this implementation of it are subject to the royalty-
19free patent and copyright licenses specified in the file COPYING.
20
21This package implements a shared library for encoding and decoding raw Opus
22bitstreams. Raw Opus bitstreams should be used over RTP according to
23 https://tools.ietf.org/html/rfc7587
24
25The package also includes a number of test tools used for testing the
26correct operation of the library. The bitstreams read/written by these
27tools should not be used for Opus file distribution: They include
28additional debugging data and cannot support seeking.
29
30Opus stored in files should use the Ogg encapsulation for Opus which is
31described at:
32 https://tools.ietf.org/html/rfc7845
33
34An opus-tools package is available which provides encoding and decoding of
35Ogg encapsulated Opus files and includes a number of useful features.
36
37Opus-tools can be found at:
38 https://gitlab.xiph.org/xiph/opus-tools.git
39or on the main Opus website:
40 https://opus-codec.org/
41
42== Compiling libopus ==
43
44To build from a distribution tarball, you only need to do the following:
45
46 % ./configure
47 % make
48
49To build from the git repository, the following steps are necessary:
50
510) Set up a development environment:
52
53On an Ubuntu or Debian family Linux distribution:
54
55 % sudo apt-get install git autoconf automake libtool gcc make
56
57On a Fedora/Redhat based Linux:
58
59 % sudo dnf install git autoconf automake libtool gcc make
60
61Or for older Redhat/Centos Linux releases:
62
63 % sudo yum install git autoconf automake libtool gcc make
64
65On Apple macOS, install Xcode and brew.sh, then in the Terminal enter:
66
67 % brew install autoconf automake libtool
68
691) Clone the repository:
70
71 % git clone https://gitlab.xiph.org/xiph/opus.git
72 % cd opus
73
742) Compiling the source
75
76 % ./autogen.sh
77 % ./configure
78 % make
79
803) Install the codec libraries (optional)
81
82 % sudo make install
83
84Once you have compiled the codec, there will be a opus_demo executable
85in the top directory.
86
87Usage: opus_demo [-e] <application> <sampling rate (Hz)> <channels (1/2)>
88 <bits per second> [options] <input> <output>
89 opus_demo -d <sampling rate (Hz)> <channels (1/2)> [options]
90 <input> <output>
91
92mode: voip | audio | restricted-lowdelay
93options:
94 -e : only runs the encoder (output the bit-stream)
95 -d : only runs the decoder (reads the bit-stream as input)
96 -cbr : enable constant bitrate; default: variable bitrate
97 -cvbr : enable constrained variable bitrate; default:
98 unconstrained
99 -bandwidth <NB|MB|WB|SWB|FB>
100 : audio bandwidth (from narrowband to fullband);
101 default: sampling rate
102 -framesize <2.5|5|10|20|40|60>
103 : frame size in ms; default: 20
104 -max_payload <bytes>
105 : maximum payload size in bytes, default: 1024
106 -complexity <comp>
107 : complexity, 0 (lowest) ... 10 (highest); default: 10
108 -inbandfec : enable SILK inband FEC
109 -forcemono : force mono encoding, even for stereo input
110 -dtx : enable SILK DTX
111 -loss <perc> : simulate packet loss, in percent (0-100); default: 0
112
113input and output are little-endian signed 16-bit PCM files or opus
114bitstreams with simple opus_demo proprietary framing.
115
116== Testing ==
117
118This package includes a collection of automated unit and system tests
119which SHOULD be run after compiling the package especially the first
120time it is run on a new platform.
121
122To run the integrated tests:
123
124 % make check
125
126There is also collection of standard test vectors which are not
127included in this package for size reasons but can be obtained from:
128https://opus-codec.org/docs/opus_testvectors-rfc8251.tar.gz
129
130To run compare the code to these test vectors:
131
132 % curl -OL https://opus-codec.org/docs/opus_testvectors-rfc8251.tar.gz
133 % tar -zxf opus_testvectors-rfc8251.tar.gz
134 % ./tests/run_vectors.sh ./ opus_newvectors 48000
135
136== Portability notes ==
137
138This implementation uses floating-point by default but can be compiled to
139use only fixed-point arithmetic by setting --enable-fixed-point (if using
140autoconf) or by defining the FIXED_POINT macro (if building manually).
141The fixed point implementation has somewhat lower audio quality and is
142slower on platforms with fast FPUs, it is normally only used in embedded
143environments.
144
145The implementation can be compiled with either a C89 or a C99 compiler.
146While it does not rely on any _undefined behavior_ as defined by C89 or
147C99, it relies on common _implementation-defined behavior_ for two's
148complement architectures:
149
150o Right shifts of negative values are consistent with two's
151 complement arithmetic, so that a>>b is equivalent to
152 floor(a/(2^b)),
153
154o For conversion to a signed integer of N bits, the value is reduced
155 modulo 2^N to be within range of the type,
156
157o The result of integer division of a negative value is truncated
158 towards zero, and
159
160o The compiler provides a 64-bit integer type (a C99 requirement
161 which is supported by most C89 compilers).
162
README.android
README.draft
1To build this source code, simply type:
2
3% make
4
5If 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
7in the Makefile.
8
9An up-to-date implementation conforming to this standard is available in a
10Git repository at https://gitlab.xiph.org/xiph/opus.git or on a website at:
11https://opus-codec.org/
12However, although that implementation is expected to remain conformant
13with the standard, it is the code in this RFC that shall remain normative.
14To build from the git repository instead of using this RFC, follow these
15steps:
16
171) Clone the repository (latest implementation of this standard at the time
18of publication)
19
20% git clone https://gitlab.xiph.org/xiph/opus.git
21% cd opus
22
232) Compile
24
25% ./autogen.sh
26% ./configure
27% make
28
29Once you have compiled the codec, there will be a opus_demo executable in
30the top directory.
31
32Usage: opus_demo [-e] <application> <sampling rate (Hz)> <channels (1/2)>
33 <bits per second> [options] <input> <output>
34 opus_demo -d <sampling rate (Hz)> <channels (1/2)> [options]
35 <input> <output>
36
37mode: voip | audio | restricted-lowdelay
38options:
39-e : only runs the encoder (output the bit-stream)
40-d : only runs the decoder (reads the bit-stream as input)
41-cbr : enable constant bitrate; default: variable bitrate
42-cvbr : enable constrained variable bitrate; default: unconstrained
43-bandwidth <NB|MB|WB|SWB|FB> : audio bandwidth (from narrowband to fullband);
44 default: sampling rate
45-framesize <2.5|5|10|20|40|60> : frame size in ms; default: 20
46-max_payload <bytes> : maximum payload size in bytes, default: 1024
47-complexity <comp> : complexity, 0 (lowest) ... 10 (highest); default: 10
48-inbandfec : enable SILK inband FEC
49-forcemono : force mono encoding, even for stereo input
50-dtx : enable SILK DTX
51-loss <perc> : simulate packet loss, in percent (0-100); default: 0
52
53input and output are little endian signed 16-bit PCM files or opus bitstreams
54with simple opus_demo proprietary framing.
55
README.version
1This commit is upto-date with following the commit in upstream-master
2Branch: upstream-master
3commit: b83dd52868326a401c8578041e3dbea439d53f11
4
5upstream-master is in sync with upstream project at
6URL: https://gitlab.xiph.org/xiph/opus.git
7
8