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

Enable and configure OPUS codec on PJSIP 2.5.1 on Android

I'm building a VOIP application on Android using PJSIP library. I was trying to enable OPUS codec since OPUS was supported in PJSIP from v2.5. I've followed the following link to configure OPUS on PJSIP. I inserted #define PJMEDIA_HAS_OPUS_CODEC…
Samik Bandyopadhyay
  • 858
  • 1
  • 11
  • 19
4
votes
1 answer

Andrioid App Can't Play "opus" files

I'm developing an app to play music files. Recently, I received an "opus" coded file. I'm using MediaPlayer class in order to play files, but with this kind of files I get this error: java.io.IOException: setDataSourceFD failed.: status=0x80000000…
Javier Cancio
  • 1,418
  • 12
  • 18
4
votes
1 answer

Linking error with 3rd party library in Qt Creator

I need to decode pcm data to opus format. Therefore I want to include the opus source into my project, but I can't link the files. I downloaded the source file opus-1.1.tar.gz from here. In Qt Creator, I added all the files to my…
user2366975
  • 4,350
  • 9
  • 47
  • 87
4
votes
1 answer

Encode PCMBuffer to Ogg with Opus in iOS 8

I need to encode raw audio into ogg packets with opus codec. I get the raw audio like that: input.installTapOnBus(0, bufferSize: 2048, format: input.inputFormatForBus(0)) { (buffer: AVAudioPCMBuffer!, time: AVAudioTime!) -> Void in //…
hungrxyz
  • 745
  • 11
  • 20
4
votes
1 answer

Portaudio + Opus: Horrible sound quality

I'm currently developing a VOIP application. To achieve this, I use the PortAudio library to retrieve and play sound, and the Opus library to encode and decode sound packets. For now, I successfully managed to use PortAudio. My program simply…
Simon Ninon
  • 2,371
  • 26
  • 43
3
votes
0 answers

Encoding and decoding audio using opus - WINDOWS?

I am trying to capture audio from the default device and stream with the help of OPUS. The audio from the device is captured using WASAPI. Encoding and decoding is done using OPUS where the states are created initially. Initialization…
3
votes
0 answers

How can I convert a raw PCM stream to an opus or wav stream in Node JS for a Discord bot?

Background: I am creating a personal music bot for Discord, mainly using discord.js, and one of the features I'd like to add is having the bot play audio directly from Voicemeeter. This solution is optimal because bots are able to stream in much…
diskdude
  • 31
  • 2
3
votes
1 answer

OPUS Audio Format Safari Dilemma

In a few words: how use OPUS audio format in a Webapp (JSX PWA) and make it Safari compatible? Still highly compressed MP3s don't appear to yet be an alternative to OPUS. Background info: Truly EVERYTHING was looked into - Media recorder API within…
user1321
  • 71
  • 1
  • 3
3
votes
1 answer

pydub.AudioSegment messes up the audio data when loading from a numpy.ndarray

I have to mix audio files programmatically (add background noises to recordings) and all of my files are 8-9 hour long recordings in the .opus format. I have tried to use pydub.AudioSegment to load one in the memory but I get this following…
Ani
  • 53
  • 1
  • 8
3
votes
1 answer

How do I decode opus file to pcm file using libavcodec from ffmpeg?

I am trying to decode opus to pcm file using libavcodec.So,I use ffmpeg example from https://ffmpeg.org/doxygen/trunk/decode_audio_8c-example.html .And I change AV_CODEC_ID_MP2 to AV_CODEC_ID_OPUS.But I get an error. codec =…
hello
  • 35
  • 6
3
votes
0 answers

How to Play PCM 16 bit using AVAudioPlayerNode?

i have app decoding stream audio over network from opus to pcm, the out data is PCM 16 bit, i decode it successfully, but when i try to play it using AVAudioEngine it fail, i can not change the sample rate from 44100 to 48000 which opus…
Ahmed
  • 112
  • 2
  • 12
3
votes
1 answer

How to encode self-delimited opus in iOS

I can record opus using AVAudioRecorder as following: let opusRecordingSettings = [AVFormatIDKey: kAudioFormatOpus, AVSampleRateKey: 16000.0, AVNumberOfChannelsKey: 1] as [String: Any] …
MD TAREQ HASSAN
  • 1,188
  • 20
  • 46
3
votes
1 answer

opus_decode returning corrupted stream

I am decoding ogg opus data which is streaming live from icecast server. I am using libopus to decode. Data gets decoded sometimes but most of the times op_decode() returns -4 which indicates corrupted stream. This is the callback function used to…
3
votes
0 answers

Reading Nginx HTTP Response Streams in Reverse Byte Order

Does Nginx or HTTP 1/2 offer ways serve a file in reverse byte order? I'm interested in reading a binary HTTP Response stream in reverse byte order to seek a byte sequence from the end of files (which range from 5-500 MB). My current solution uses…
anthumchris
  • 8,245
  • 2
  • 28
  • 53
3
votes
2 answers

How to convert .opus file to .mp3/.m4a/.aac in iOS swift?

I want to play .opus file using AVAudioPlayer, since AVAudioPlayer doesn't support .opus file, I am trying to find a way to convert .opus to any other audio format so that I can play using AVAudioPlayer. Could anyone help me on this? Thank you
Rameez
  • 312
  • 4
  • 20