Questions tagged [opus]

Opus or Opus Audio Codec is a lossy audio compression format developed by the Internet Engineering Task Force (IETF) that is particularly suitable for interactive real-time applications over the Internet. As an open format standardized through RFC 6716, a reference implementation is provided under the 3-clause BSD license. All known software patents which cover Opus are licensed under royalty-free terms.

Opus incorporates technology from two codecs: the speech-oriented SILK and the low-latency CELT.[3] Opus can be adjusted seamlessly between high and low bitrates, and internally, it transitions between a linear prediction codec at lower bitrates and a transform codec at higher bitrates (as well as a hybrid for a short overlap).
Opus has a very low algorithmic delay (22.5 ms by default), which is a necessity for use as part of a low audio latency communication link, which can permit natural conversation, networked music performances, or lip sync at live events. Opus permits trading-off quality or bitrate to achieve an even smaller algorithmic delay, down to 5 ms. Its delay is very low compared to well over 100 ms for popular music formats such as MP3, Ogg Vorbis and HE-AAC; yet Opus performs very competitively with these codecs in terms of quality per bitrate.[5] Unlike Ogg Vorbis, Opus does not require the definition of large codebooks for each individual file, making it preferable to Vorbis for short clips of audio.

Further information and deeper analysis: Opus on wikipedia

374 questions
23
votes
2 answers

Decoding Opus audio data

I am trying to decode an Opus file back to raw 48 kHz. However I am unable to find any sample code to do that. My current code is this: void COpusCodec::Decode(unsigned char* encoded, short* decoded, unsigned int len) { int…
tmighty
  • 10,734
  • 21
  • 104
  • 218
16
votes
4 answers

Makefile needed for compiling the Opus Codec for Android

I am trying to compile the opus audio codec (http://www.opus-codec.org/downloads/) for use in an Android application. I am using Android NDK (release 6) to compile my libraries. Up to now, the native C libraries that I had to compile for my…
Stanley
  • 5,261
  • 9
  • 38
  • 55
15
votes
4 answers

How can I use Opus Codec from JavaScript

I would like to see if it's possible to have direct access to Opus using getUserMedia or anything similar from the latest browsers. I've been researching on it a lot but with no Good results. I'm aware that either Opus or Speex are actually used in…
Omar Al-Ithawi
  • 4,988
  • 5
  • 36
  • 47
13
votes
0 answers

WebM and Opus in Safari

Using patent-free audio and video codecs on the web has always been problematic due to poor support in Safari. According to the Safari 15 release notes, though, this might be starting to change. WebM video is apparently now supported in MSE on…
Pete
  • 131
  • 6
12
votes
0 answers

Wav to Opus convertion with Discord.js/opus fails silently

I am trying to convert a WAV file to Opus, using Node's fs.readFile and passing that buffer to @Discord/opus converter. I get neither the result or a error thrown with a explanation of what is wrong. This is basically the example you have in the…
Rikard
  • 7,485
  • 11
  • 55
  • 92
12
votes
1 answer

Is there a way to optimize silence periods in Opus better than DTX does?

I'm doing a little bit of research about the DTX option in Opus: Discontinuous Transmission (DTX) reduces the bitrate during silence or background noise. When DTX is enabled, only one frame is encoded every 400 milliseconds. I wonder if…
prgDevelop
  • 1,557
  • 2
  • 15
  • 26
11
votes
2 answers

Is it really possible for webRTC to stream high quality audio without noise?

I have tested with the highest quality settings and multiple STUN/TURN servers with no luck in finding a real high quality stream. In my experience webRTC always has a fluctuating and limited bandwidth and a high level of background noise that…
user1688726
  • 319
  • 2
  • 4
  • 11
11
votes
2 answers

How do I play Opus encoded audio in Java?

When playing back the decoded audio, I've managed to produce a variety of sounds from gurgling to screeching to demonic chants. The closest of which sounds similar to being played in fast-forward and playback only lasts about 15 seconds. I've tried…
Justin
  • 1,972
  • 13
  • 28
10
votes
1 answer

Stream opus audio rtp to android device

I want to stream audio (opus codec) with ffmpeg directly to android device. On PC i start stream: ./ffmpeg -re -stream_loop -1 -i akgld-c8mxm.opus -acodec libopus -ac 1 -ab 96k -vn -f rtp rtp://192.168.0.100:6000 Where 192.168.0.100 - local wifi…
Yuriy Aizenberg
  • 373
  • 9
  • 28
8
votes
2 answers

How to Extract Audio from WebM File

I just want to get a audio file(opus codec used) only in webm file. I try to search what is webm format, how to parse, but I cant get info well. I check that webm format is from mkv, then should I check the mkv first? there is just one github code,…
user225549
  • 177
  • 2
  • 9
8
votes
1 answer

How to use FEC feature for Opus codec

I'm trying to use the opus Forward Error Correction (FEC) feature. I have a service which does the encoding with OPUS_SET_INBAND_FEC(1) and OPUS_SET_PACKET_LOSS_PERC(20) with 10ms packets and sends them over UDP. I'm not clear on the decoding…
stop-start
  • 317
  • 3
  • 13
8
votes
3 answers

SoX doesn't work with Opus Audio files

I am recording input microphone from a web page with WebRTC and process it through SoX. Problem is, Firefox recordings are in Opus Audio format (according to VLC media informations), in an Ogg container, and SoX doesn't like it : /opt/local/bin/sox…
ryancey
  • 1,037
  • 2
  • 11
  • 27
7
votes
5 answers

Error: Cannot find module '@discordjs/opus'

Everytime i run my discord speech recognition code it goes online but as soon as it join the channel my code shows Error: Cannot find module '@discordjs/opus' Require stack: -…
Suryash Sahu
  • 71
  • 1
  • 1
  • 2
7
votes
3 answers

how to play .opus audio file in android?

I'm developing an app for Recognize speech using google cloud speech APi and recording audio simultaneously. git link I tried to play recorded .opus audio file getting IOException W/System.err: java.io.IOException: setDataSource failed. Any…
7
votes
2 answers

How to convert an MP3 file to an Ogg Opus file?

Is there a converter that can convert MP3 files to Ogg Opus? Can you recommend one that can do it? So far I've tried Adobe Audition, Xilisoft Audio Converter Pro, WinAVI Video Converter, and Aimersoft Video Converter Pro. None of them was useful.
kamiar
  • 87
  • 1
  • 1
  • 3
1
2 3
24 25