Displaying 20 results from an estimated 900 matches similar to: "Observing crash in opus_encode() of libopus 1.0.2 lib version"
2013 Oct 24
1
libopus API question - 120ms encoding
The libopus encoder's opus_encode() method is documented as "Encodes an Opus frame". Does that mean that it always produces a single Opus frame (i.e. the number of frames in the TOC byte will always be 0)? It's not clear from the documentation, but the fact that it cannot produce a 120ms Opus packet makes me wonder if that was the intention and any multi-frame Opus packets must
2013 Oct 26
2
libopus API question - 120ms encoding
Hi Jean-Marc,
A simpler question. How does opus_encode() generate packets of 20ms (SILK-only or Hybrid)? Concatenating two 10ms frames or doing it straight with just one 20ms frame?
2016 May 04
1
opus_encode
Hi all,
i am trying convert pcm (16bit pcm) stereo file to mono pcm file using
opus_encode and opus_decode, i am able do this but i have doubt about
TOC byte after opus encode.
below is how encoder and decoder structures are used to do encode and
decode file
opus_encoder_create(8000, 2, OPUS_APPLICATION_AUDIO, &err);
opus_decoder_create(8000, 1, &err);
after opus encode bits looks like
2014 Apr 29
0
1276 Bytes returned by opus_encode
Hi all,
i try to set up something like a mixer and soundbridge.
There are several sender clients which sends opus encoded audiostreams.
One basestation is decoding the streams and mixing them all together.
After that, the resulting stream is encoded with opus again and send to
one or two receiving clients.
Opus is set up to encode 10ms packets in stereo with 16bit per sample
and 44kHz. So,
2013 Oct 26
0
libopus API question - 120ms encoding
On 10/26/2013 01:11 PM, Wang, Chris wrote:
> A simpler question. How does opus_encode() generate packets of 20ms
> (SILK-only or Hybrid)? Concatenating two 10ms frames or doing it
> straight with just one 20ms frame?
Just one 20 ms frame. It always returns a single frame except when it
just can't (e.g. 60 ms CELT).
> From your explanations below, opus_encode() will concatenate
2013 Oct 05
0
Unexpected opus_encode results when doubelling frame size
Hello!
I have been using
int iByteSizeEncoded = opus_encode(m_enc,
m_ShortRawInput,960,m_EncodedBytes, 4000);
iByteSizeEncoded was 120 as expected.
Now when I double the frame size...
int iByteSizeEncoded = opus_encode(m_enc,
m_ShortRawInput,960*2,m_EncodedBytes, 4000);
... iByteSizeEncoded is not 240 as expected, but 239.
This seems really odd to me since 239 bytes could not even be
2013 Oct 30
1
libopus API question - 120ms encoding
Thanks Jean-Marc and Benjamin for the answers.
One follow-up question. If I use a repacketizer as Jean-Marc suggested by combining two 60ms frames to form a 120ms frame, without extracting individual frames and using a new TOC, I would need to have a "de-packetizer" that does the exact opposite of repacketizer. De-packetizer would need to separate this 120ms frame into two 60ms frames
2013 Oct 06
2
Encoder off by one
Why does opus_encode return 359, and not 360, please?
This is my code:
int iShortsRead = fread(m_RawBytes, sizeof(short),
(5760/sizeof(short)), fin);
for(int i=0;i<iShortsRead;i++)
{
opus_int32 s;
s=m_RawBytes[2*i+1]<<8|m_RawBytes[2*i];
s=((s&0xFFFF)^0x8000)-0x8000;
m_ShortsInput[i]=s;
}
2014 Apr 30
0
1276 Bytes returned by opus_encode
Maybe i found the source of the problem.
The basestation is running several threads. One per sending client and
one per receiving client. In each thread there is either an
opus_encode() or an opus_decode() but there is in total only one
OpusEncoder and one OpusDecoder defined which where used in every
thread. Now every thread has it own OpusEncoder or OpusDecoder.
After 20minutes of audiostreaming
2017 Apr 06
1
Encoding OPUS with difference bitrates
HI,
I'm trying to simulate an audio conference where each leg can be with a
different bit rate. This needs to encode the source PCM to to different bit
rates back to back and store and send respective encoded frames/packet to
the respective channel. For this I changed the opus_demo as below. But the
output of the second encoded frames is completely garbled.
Appreciate if anyone can suggest
2013 Oct 06
1
Encoder off by one
If you encode with
int iByteSizeEncoded = opus_encode(m_enc, m_ShortsInput,
(1920/sizeof(short)), m_EncodedBytes, (960*6));
... the byte size is 120.
I thought that an odd value like 359 has to be a fault on my side.
I thought it would be a multiple of something.
So 359 is really correct???
Thank you for clearing this up.
Am 06.10.2013 16:50, schrieb Jean-Marc Valin:
> Why
2020 Jul 25
2
Regarding encoded data
Hello,
I've been trying to understand how to use opus codec for quite some time.
There is a thing that doesn't make sense to me. I will try to explain what
it is below,
In *opus_encode() *function, *opus_int16 pcm* is said to have a size
of *frame_size
* channels*, where *frame_size* is said to be one of* 20, 240, 480, 960,
1920, and 2880.*
Let's say, frame_size is 960, then
2012 Aug 22
2
int operation
Gents,
My TI C55xx complier is complaining about (in opus_encoder.c,
opus_encode()):
st->silk_mode.payloadSize_ms = 1000 * frame_size / st->Fs;
where .payloadSize_ms is opus_int, frame_size is an int, and Fs is a long.
Should one of these be cast differently?
Thx,
MikeH
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2016 Jan 07
3
Issue with decoding 8-bit PCM data
Hello Ralph,
> Likewise opus_encode() takes 16 bit samples, so you need to extend each
> sample from an 8 bit source before encoding.
Two questions
1. In opusenc.c which API does the extending the 8-bit to 16-bit?
2. If that is the case then how will 24 bit PCM sample work?
Regards
Amit
On Thu, Jan 7, 2016 at 12:21 PM, Ralph Giles <giles at thaumas.net> wrote:
> On 07/01/16
2018 Jun 29
1
OPUS on cortex M4
Hi everybody
I wrote a couple of months ago about implementing the opus codec on a DK52 from Nordic (nrf52832 MCU, Cortex M4). In the meantime I got a bit further and would again like to ask some questions.
My settings:
I included all the opus files into my project (opus-1.2.1)
Defined: FIXED POINT, VAR_ARRAYS, DISABLE FLOAT API, OPUS_BUILD, CELT_MODE_ONLY
I am able to allocate enough memory
2018 Sep 21
2
Opus 1.2.1 crash on silk/VAD.c:315
Stack:
(gdb) bt
#0 0x0000000000aaf38a in silk_VAD_GetNoiseLevels (pX=pX at entry=0x7f26740297a0,
psSilk_VAD=psSilk_VAD at entry=0x15897c38) at silk/VAD.c:315
#1 0x0000000000aa4a9d in silk_VAD_GetSA_Q8_sse4_1 (psEncC=0x15897c18, pIn=<optimized out>) at silk/x86/VAD_sse.c:177
#2 0x0000000000a9f92b in silk_encode_do_VAD_FLP (psEnc=psEnc at entry=0x15897c18) at
2018 Sep 27
1
[Re:] Re: Opus 1.2.1 crash on silk/VAD.c:315
Hi Jean-Marc,
gdb out is "Program terminated with signal 8, Arithmetic exception."
most likely this division by zero.
you're right, this crash is reproduce on seq number 4294967265 (20ms rtp packet).
This is about 994 days.
"Jean-Marc Valin" <jmvalin at jmvalin.ca> писал(а):Hi Dmitry,
>
>So it's not explicitly in your report, but it looks like the crash
2017 Oct 18
4
Global stack on Cortex-M4
Hi all !
I just learned about the Opus codec and would like to try it out on my
NRF52 (Cortex-M4) target. I've been struggling a bit with the
"trival_example.c" setup but repeatedly run into "hard fault" crashes
when stepping through the code.
Firstly; for a "bare bone" configuration, does the following compiler
directives make sense ?
UDEFS =
2012 Oct 17
1
opus Digest, Vol 45, Issue 5
hi,All,
I want to know whether Opus has AEC features like Speex?
Thanks
2012/10/17 <opus-request at xiph.org>
> Send opus mailing list submissions to
> opus at xiph.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.xiph.org/mailman/listinfo/opus
> or, via email, send a message with subject or body 'help' to
2013 May 27
1
Empty buffer on encoder write byte
Hi,
I've been trying to encode a live audio input from the microphone on iOS
device using opus.
Uncompressed audio recording works fine with
http://theamazingaudioengine.com/
Then, when I tried to do encoding, I'm stuck at figuring out why the buffer
is empty:
static int ec_write_byte(ec_enc *_this,unsigned _value){
if(_this->offs+_this->end_offs>=_this->storage)return