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

How to listen to oggdemux gstreamer failures?

I wrote a gstreamer app to convert from opus audio to raw audio. If I feed bad audio (just random bytes) to the pipeline, the pipeline gets stuck and /i don't receive an error message on the message bus. I'm listening to the error messages flowing…
askso
  • 85
  • 8
0
votes
2 answers

How to fix npm ERR! peer dep missing: node-opus@^0.2.7, required by discord.js@11.5.1?

I've deployed a discord music bot to the heroku and everything works except the playing music in a voice channel, although when i've ran my code on the pc - everything worked. Typing the npm list i've saw the error message "npm ERR! peer dep…
Leviathan
  • 53
  • 1
  • 7
0
votes
2 answers

How to control Opus bitrate in AVAudioRecorder

I'm trying to set the bitrate for Opus (kAudioFormatOpus) in AVAudioRecorder, but it doesn't work. The bitrate is always around 20kb/s. let recordSettings = [AVEncoderBitRateKey: 32000, AVFormatIDKey: kAudioFormatOpus, AVSampleRateKey:…
uson1x
  • 407
  • 3
  • 16
0
votes
1 answer

WEBAUDIO17014: Decoding error: The stream provided is corrupt or unsupported while using audioCtx.decodeAudioData() in Edge browser

I am trying to decode opus file using WebAudio API's decodeAudioData() method in Edge browser.But I am getting this error WEBAUDIO17014: Decoding error: The stream provided is corrupt. Edge version details: Microsoft Edge 42.17134.1.0 Microsoft…
0
votes
1 answer

How to resolve "peer dep missing" issue on Heroku?

When I install node-opus and discord.js on Heroku and then run npm list via heroku run bash I get the following warning: npm ERR! peer dep missing: node-opus@^0.2.7, required by discord.js@11.4.2 How can I resolve this? Here is my package.json: { …
FeAr
  • 13
  • 2
0
votes
1 answer

Can't play .opus files with MediaPlayer in Kotlin

I was trying to create a simply MediaPlayer but when playing .opus files it is not working. I tested it with an mp3 and it worked (but does not renaming the opus to mp3, for example). I've read something about .mkv (Matroska Container Format) but I…
0
votes
1 answer

webrtc android video call sound has screeching sound and echos

I am trying to implement VideoCall feature using this repo as base. I got everything working but now the issue is the audio is very poor and it has screeching sound and echo. Audio is barely audible. I am using proper constraints when creating audio…
Shahid Kamal
  • 380
  • 2
  • 14
0
votes
2 answers

Not able to play opus encoded data without oggmux and oggdemux

sender pipeline pulsesrc name=audio_cap mute=0 ! queue ! audiorate ! queue ! audioconvert ! audioresample name=aud_resample ! audio/x-raw,rate=48000 ! queue silent=true max-size-buffers=100 flush-on-eos=true ! opusenc ! queue ! appsink sync=false…
0
votes
2 answers

How to play sound with a music discord bot on heroku

I'm creating a Discord Music Bot in discord.js, I already installed ffmpeg, and everything seems to work normally, but when I execute play command, bot joins a channel, send a message, but doesn't play anything, I've already checked console and it…
0
votes
0 answers

Discord.NET 1.0.2 sending voice to voice channel not working

I did everything like the Discord.Net Documentation guide on voice - https://discord.foxbot.me/latest/guides/voice/sending-voice.html and it didn't work the bot just joined the voice channel but it dont make any sound. and i have ffmpeg installed…
0
votes
0 answers

Youtube Red audio stops for downloaded videos

I am uploading videos to Youtube, and on my Android phone I am downloading them using Youtube Red. I am playing these downloaded videos in the background, when the screen is off. This works with the wast majority of the videos, except the ones that…
egyedia
  • 53
  • 4
0
votes
0 answers

FFMPEG outputs stream to UDP port, but no packets received on that port

I am a bit new to FFMPEG and will appreciate any help I can get! Basically, I am trying to transcode a 'webm' UDP stream to Opus audio stream, and then finally output that to a specific UDP port on my network. This is the command I am using: ffmpeg…
0
votes
3 answers

How to encode and decode audio data with opus?

I'm working on a voice chat and I need to compress my audio data. I record and play the audio data via the Qt Framework. If I record and play the audio data without compressing it everything is fine. If I compress,decompress and play the audio data…
MooN_Tiga
  • 15
  • 2
  • 7
0
votes
1 answer

Google Speech API Empty Answer

For tests I used the Google Example of the speech api (https://cloud.google.com/speech-to-text/docs/reference/rest/v1/speech/recognize) There I tried a .ogg file This one (https://www.dropbox.com/s/lw66x3g143mtnsl/SpeechToText.ogg?dl=0) I converted…
BluPxl
  • 35
  • 8
0
votes
1 answer

OPUS file code, how to open

Hey I got the following file ( http://www.filedropper.com/opusfile ) Which is a .txt file containing OPUS audio code. How do I proceed and play this file? Convertig to OPUS and using VLC player gives an error for me. Anyone with some tips?
Lanfear
  • 1
  • 1