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

Convert Opus (.ogg) to PCM (.wav) in .NET

I have a file .ogg and i need to convert it to .wav. I'm tryng to use Opus.Net (that use NAudio) but i get this exception in OpusDecoder.Decode(): "System.Exception: 'Decoding failed - InvalidPacket'" This is the code: byte[] audioBynary =…
Elelio
  • 287
  • 5
  • 18
3
votes
2 answers

Record Opus with AVAudioRecorder iOS

I'm trying to record Opus format in iOS. When I test the recorder with LinearPCM formate i.e wav, AVAudioRecorderDelegate functions and updateMeters is being called correctly and recorder url have valid file saved at given path. Here is the…
3
votes
3 answers

Building/Compiling Opus (libopus) In Emscripten with Optimization

Is it possible to build/compile Opus/libopus with optimization using Emscripten?I'm unsure if this is a current limitation of Emscripten and WebAssembly in general or if options exist to ensure the decoder is optimized in WebAssembly (wasm). I…
anthumchris
  • 8,245
  • 2
  • 28
  • 53
3
votes
0 answers

Java Write incoming opus streams to file

I am using Discord4J to create a bot for discord, I would like the bot to be able to record the incoming voice data to file. I know nothing about writing audio files. What I have at my disposal is a method fired when the bot receives audio…
3
votes
1 answer

How to confirm opus encode buffer size?

Function opus_encode need frame size as parameter. in api doc it says buffer size is number of samples per channel. But how to determine which size should i use? I use opus in android. sample rate 16k, buffer size 1280. when i set frame size to 640…
user1107819
  • 51
  • 1
  • 6
3
votes
1 answer

How should I encode an audio stream for Google Voice recognition in golang?

I'm building a discord bot that uses an Opus stream. I've tried various things such as sending the Opus packets up directly, decoding the OPUS stream to a PCM and encoding it into a byte array, and converting the PCM to a byte array directly. In all…
user1610810
  • 99
  • 1
  • 5
3
votes
0 answers

Muxing audio and video for download

Is there a way to mux a video file (VP9) with an audio file (VORBIS or OPUS) using nothing but JS? I was reading the WebM Project website and it seems that it's based on Python? I did come across this Git repository. But I'm kind of struggling to…
oldboy
  • 5,729
  • 6
  • 38
  • 86
3
votes
1 answer

Naudio float Sample and Concentus.OggFile short Sample, convert mp3 to opus ogg

trying to convert mp3 file to opus ogg file by using NAudio: https://github.com/naudio/NAudio Concentus.OggFile https://github.com/lostromb/concentus.oggfile using (var source = new MemoryStream(mp3File)) using (var mp3Reader = new…
patachi
  • 315
  • 1
  • 2
  • 18
3
votes
1 answer

Decode Ogg/Opus file

I have a very small piece of C++ code that tries to open an ogg/opus coded file and uses the opus API in order to decode it with the function opus_decode(). The thing is that almost the half of the opus_decode() calls that I do for the same sound…
Virginia P.
  • 31
  • 1
  • 4
3
votes
3 answers

Opus will not be imported despite being installed

I have installed the latest version of opus for python 3.4 using pip in gitbash $ pip install --upgrade opuslib Requirement already up-to-date: opuslib in c:\python34\lib\site-packages Despite this, when I attempt to import it, I'll receiver an…
thewizoid
  • 39
  • 1
  • 2
  • 4
3
votes
1 answer

Parsing VP8/OPUS frames

I am developing a webrtc simulator in Linux environment using C language. Here I need to send media from one webrtc simulator to other webrtc simulator. I need to work with VP8 and Opus codec. Now I am starting with VP8 codec. As I am new to VP8,…
Austin
  • 1,709
  • 20
  • 40
3
votes
0 answers

Encoding PCM with Opus in JavaScript?

I'm trying to stream microphone sound with Socket.IO, and looks like the best compression codec, so far, is Opus. I found this opus.js project, but have no idea how to use it, it's in a language that I can't even identify. Does anybody know how to…
Moisés
  • 1,324
  • 15
  • 43
3
votes
1 answer

Joining Portaudio and Opus

Hi im trying to take sound from an open PortAudio Stream, encode it with opus, decode it and reproduce it again with portaudio. Im doing this as a prototype just to try and understand the mechanics of this systems so, no real interest on following…
Xeyos
  • 33
  • 1
  • 6
3
votes
1 answer

Web Audio API: decodeAudioData doesn't decode opus in Chrome

I'm currently trying to make Opus packets work with Web Audio API. The problem is however, while it should be natively supported by FireFox and Chrome, only FireFox can decode a stream of OPUS samples using decodeAudioData from the Web Audio API.…
rq4t
  • 43
  • 6
3
votes
2 answers

Decode Opus-48 using Wireshark

I want to capture and decode VoIP conversation using Opus-48 codecs. I am using Wireshark to capture packets. Are there any free decoders available online ?? Wireshark doesn't save two way conversation as it works for other encoding schemes like…
user3640612
  • 31
  • 1
  • 3