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
0
votes
0 answers

Linker error calling a particular function

I am using the opus library in an Android project. I have successfully linked to the library and can use the opus_decode function. But even though Android Studio does not throw any errors, the opus_decode_float throws an undefined reference error…
Korogba
  • 105
  • 9
0
votes
1 answer

IAX2 Trunks between PBXs - Moving from g729 to Opus codec - Is it worth upgrading the phones?

I currently have 4 different physical locations, each running plain Asterisk 14.6.0, and using Digium D40 phones with the G729 codec. All the locations are connected via OpenVPN using IAX2 and the G729 codec. We use a separate regular cable modem…
juanespty
  • 84
  • 1
  • 7
0
votes
1 answer

QtWebengine build error with opus and silk codecs

I am trying to build Qt5.9.1 with QtWebengine for an arm platform. These are some architecture based arguments i am passing to the build. QMAKE_CFLAGS_RELEASE += -march=armv7-a -mcpu=cortex-a9 QMAKE_CXXFLAGS_RELEASE += -march=armv7-a…
user7356938
0
votes
1 answer

What does "useinbandfec is a unidirectional receive-only parameter" mean in Opus?

I am trying to implement a Opus transcoder in C++, and I have some conceptual questions. As for the useinbandfec parameter, I don't quite understand the meaning of "unidirectional receive-only parameter", as written in RFC7587, section 7.1: The…
Rex
  • 71
  • 7
0
votes
1 answer

Impossible to play audio from URI after closing and re-opening my app

I am developing an application that manages WhatsApp voice notes. In WhatsApp UI the user can share a voice note and then select my application as the sharing option. My application then receives the WhatsApp voice note URI via implicit intent and…
Diego
  • 13
  • 3
0
votes
1 answer

OPUS packet size

I have an application, that reads opus packets from a file. The file confirms opus packets in ogg format. My application sends each opus packet every 20 millisecond (it is configurable). For 20 millisec, it sends packets of sizes ranging from 200…
Austin
  • 1,709
  • 20
  • 40
0
votes
1 answer

Opus strict flag

I'm working on library that uses libavcodec library. I try to encode audio frames using opus codec but after avcodec_open2(...) i get this log [opus @ 0x2335f30] The encoder 'opus' is experimental but experimental codecs are not enabled, add…
KoLiBer
  • 194
  • 4
  • 15
0
votes
1 answer

OpenSL audio on Android stop when I lock screen 5.0.1 OK 6.0.1 Not OK

I made an android app, that streams voice from local wifi network. To listen and stream I use Opus C API in JNI to decode, and OpenSL Audio to read. I call the JNI from Service, like that. public class StreamService extends Service { …
maathor
  • 121
  • 1
  • 3
  • 12
0
votes
1 answer

Parsing Opus TOC Byte

For working with the Opus audio codec, I need to parse a TOC byte from a char buffer and extract the config, s and c segments, each representing a number. I would need to store these numbers into separate variables for further use and am wondering…
A Coder
  • 27
  • 6
0
votes
1 answer

Size of compressed Opus frame (bytes)

How do I calculate the size of the compressed opus frame (number of bytes)? I have read the OggS Page and the TOC-Header. The next bytes should belong to the compressed frame, but how do I get the number of bytes?
0
votes
1 answer

Reading Opus File, searching for Encoded-Audio Data

I want to get the Encoded Opus-Audio Data without performing the decoding process. I have written functions using the RFCs to read Ogg-pages and the Opus-header and Opus-Tags. I also could identify the next Ogg-page, but where does the Opus-data…
0
votes
1 answer

Invalid option error using avcodec_open2 and libopus

I'm getting an invalid option result from avcodec_open2 in ffmpeg 3.1.6 with libopus 1.1.4. I've sorted through all the options and I cannot locate the offending option, I created a gist holding the relevant native code. I've searched all about the…
Paul Gregoire
  • 9,715
  • 11
  • 67
  • 131
0
votes
1 answer

failed to compile opus on android

I would like to compile opus on android for one project. I use a Android.mk to compile it. It looks like that: ROOT := $(call my-dir) include $(CLEAR_VARS) LOCAL_PATH := $(ROOT)/opus-1.1 LOCAL_MODULE := libopus LOCAL_SRC_FILES :=…
maathor
  • 121
  • 1
  • 3
  • 12
0
votes
0 answers

FFmpeg rtp streaming opus file problems

i have the next situation. Have file on remote VPS server. I want that this file (opus codec) can be accessible through RTP on my android phone. I tried ffmpeg with next command: ffmpeg -ar 44800 -i bon_jovi_loverboy.opus -acodec libopus -ac 1 -ab…
Yuriy Aizenberg
  • 373
  • 9
  • 28
0
votes
1 answer

Android: Unable to load pjsua2 while using Opus lib with it

I am using PJSIP in my android project and it is working great. Now, I need to add Opus-Android lib in my project. The code compile pretty well but the problem occurs when the Application is launched. It give me following…
awaistoor
  • 786
  • 2
  • 11
  • 36