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
7
votes
1 answer

How to get a well formed opus file with libopus?

I have .wav files and I would to encode them using opus, write everything in an .opus file then read it with vlc for example. I have done some code using the opus trivial example but the quality is very poor. In fact, there is a problem, I never…
PloukKz
  • 71
  • 1
  • 4
7
votes
2 answers

Implementation of encapsulating extracted opus payload from RTP packet with ogg container

We have the captured pcap file which includes RTP opus payload per rfc6716, now we can cut off the RTP header and extract the opus payload, we want to encapsulate the payload to ogg opus per spec…
Programmer
  • 83
  • 5
7
votes
1 answer

java.lang.UnsatisfiedLinkError when using with android 5.0

I'm building an android application. Encode and decode using Opus codec. I'm using native code from here http://www.opus-codec.org/ and the wrapper from here https://github.com/jitsi/libjitsi/tree/master/src/native/opus . In Android 4.0+, I created…
7
votes
2 answers

Record and playback with Opus Codec in Android

I'm working on a project that need to record and playback with Opus Codec, I search a lot but I can't find any demo/example using that solution. I find a demo having encoder but can't find the decoder. I only find the source code of this codec using…
Phu Tang
  • 415
  • 6
  • 16
6
votes
1 answer

Sound scheduling issue when playing OPUS from websocket

I'm trying to use the library https://github.com/AnthumChris/opus-stream-decoder/ I have a stream of OPUS encoded sound (2ch, 48kHz) from a high quality microphone (but I play a music in loop on it to test this). I know it works because I can hear…
Yozhgoor
  • 123
  • 6
6
votes
0 answers

Google SpeechToText API: no text in response from OGG Opus audio streaming

I'm using the SpeechToText API to get a speech transcription from a live microphone recording. This is working well with a simple LINEAR16 encoding but I need to reduce the bandwidth so I switched to an OGG Opus encoding. The audio is recorded and…
eli0tt
  • 677
  • 1
  • 7
  • 19
6
votes
1 answer

Use ExternalProject_Add to include Opus in Android

This is probably quite simple. I have an Android project that uses NDK. I will like to include the opus source code in the native code. I have tried using the ExternalProject_Add property of CMake but my native code still cannot import headers from…
Korogba
  • 105
  • 9
6
votes
1 answer

Listening to OPUS encoded stream

Currently, I am working on an application that is taking a stream of audio (RAW encoded bytes) and is applying some transformations to it (resampling, converting stereo to mono etc..). I have implemented encoding raw bytes using opus codec thanks to…
Tomasz Bawor
  • 1,447
  • 15
  • 40
6
votes
1 answer

Opus decoder on iOS is crashing with no obvious reason

I have simple code that decodes opus frame into audio samples. It works on Android but it crashes in Unity3D iOS project and does not crash in regular iOS project. EXC_BAD_ACCESS (code=1, address=0x2f) Both projects share same opus static library…
Tema
  • 1,338
  • 13
  • 27
6
votes
3 answers

How to set up SDP for High quality Opus audio

I have been trying to transmit some high quality audio stream through WebRTC. Opus, the main advertised codec seems perfect since it can support up to 510kbit/s, way more than needed. The problem is, setting up the Webrtc SDP is way less obvious…
Ben Banks
  • 129
  • 2
  • 11
6
votes
1 answer

webRTC: How to tell Opus codec to use super wide band/full band

I am working on a webRTC web application which works wonderfully so far. What I have not figured out yet is how to tell the Opus codec to (force) use "full band", for example. Setting the codec up for 510 kHz bit rate is…
Armin Hierstetter
  • 1,078
  • 2
  • 12
  • 27
6
votes
1 answer

How to play opus audio in Internet Explorer

How can I play opus audio in browsers which are old or not compatible with the audio format. At the moment I serve the audio link in a html5
QGA
  • 3,114
  • 7
  • 39
  • 62
6
votes
3 answers

How to play xiph.org audio codecs in iPhone/iOS?

I have music encoded in Vorbis format and also starded encoding some of my albums to the new Opus format. Is there a way I can copy and play them to my iPhone ? xiph.org wiki page states about vorbis support, that in the free software side, it's…
hdante
  • 7,685
  • 3
  • 31
  • 36
5
votes
0 answers

FFmpeg Opus choppy sound UPDATED DESCRIPTION

I'm using FFmpeg and try to encode and decode a raw PCM sound to Opus using a built-in FFmpeg "opus" codec. My input samples are raw PCM 8000 Hz 16 bit mono, in AV_SAMPLE_FMT_S16 format. Since Opus requires sample format AV_SAMPLE_FMT_FLTP and…
easy_breezy
  • 1,073
  • 7
  • 18
5
votes
1 answer

Discord bot crashing after trying to play link(Node.js)

I am trying to make my bot work, yet again. This is my play function. function play(connection, message) { var server = servers[message.guild.id]; server.dispatcher = connection.play( ytdl(server.queue[0], { filter:…
vojislav
  • 105
  • 1
  • 8
1
2
3
24 25