search for: opus_encod

Displaying 20 results from an estimated 92 matches for "opus_encod".

Did you mean: opus_encode
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 Dec 05
1
Observing crash in opus_encode() of libopus 1.0.2 lib version
Hi All, We are using libopus 1.0.2 lib version currently and observing one crash issue in opus_encode() function some times. ------------------------------------------- (gdb) bt #0 0x00007fcdf7c90ea2 in opus_encode () from /usr/lib64/libopus.so.0 -------------------------------------------- Anybody faced this problem earlier and have any idea whether its solved in the latest version libopus 1.1...
2014 Apr 29
0
1276 Bytes returned by opus_encode
...ple and 44kHz. So, decoded to pcm-bytes there are 1920 bytes for each packet. Encoded with opus i get 50-70 bytes which is a really cool rate. Now there is a strange behaviour in the basestation. The opus-data is decoded correctly and the mixing is done quite well but after that, when in some cases opus_encode returns 1276 bytes. If i recall opus_encode immediatly it returns 50-70 bytes. I doublechecked all the variables, types, settings and timings but i am unable to find any difference to the encoding on the sender clients where this behaviour does not occur. Maybe someone of you already encountered...
2018 Sep 21
2
Opus 1.2.1 crash on silk/VAD.c:315
...=encControl at entry=0x158935a8, samplesIn=0x7f267402a8a8, samplesIn at entry=0x7f267402a128, nSamplesIn=0, nSamplesIn at entry=960, psRangeEnc=psRangeEnc at entry=0x7f267402bbe0, nBytesOut=nBytesOut at entry=0x7f267402bb9c, prefillFlag=0) at silk/enc_API.c:443 #4 0x0000000000a8366d in opus_encode_native (st=st at entry=0x158935a0, pcm=0x7f267402bf38, frame_size=960, data=0x7f26b5a1084d "", data at entry=0x7f26b5a1084c "", out_data_bytes=1946331320, out_data_bytes at entry=5988, lsb_depth=1065353216, lsb_depth at entry=16, analysis_pcm=analysis_pcm at entry=0x7f2...
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...
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 m...
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=((...
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 lo...
2019 Apr 01
2
API for checking whether the encoder is in DTX (PR #107)
...dl> + * <dt>0</dt><dd>The encoder is not in DTX.</dd> + * <dt>1</dt><dd>The encoder is in DTX.</dd> + * </dl> + * @hideinitializer */ +#define OPUS_GET_IN_DTX(x) OPUS_GET_IN_DTX_REQUEST, __opus_check_int_ptr(x) /**@}*/ diff --git a/src/opus_encoder.c b/src/opus_encoder.c index cbeb40ae..0d84737a 100644 --- a/src/opus_encoder.c +++ b/src/opus_encoder.c @@ -2725,6 +2725,27 @@ int opus_encoder_ctl(OpusEncoder *st, int request, ...) ret = celt_encoder_ctl(celt_enc, OPUS_SET_ENERGY_MASK(value)); } break; + c...
2013 Oct 30
1
libopus API question - 120ms encoding
...Chris -----Original Message----- From: Jean-Marc Valin [mailto:jmvalin at jmvalin.ca] Sent: Saturday, October 26, 2013 2:34 PM To: Wang, Chris; opus at xiph.org Subject: Re: [opus] 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() wil...
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 scru...
2013 Apr 11
0
No subject
ly or Hybrid frames for 40 or 60ms packet, respectively. That is based on = concatenating 20ms frames, right? Is 60ms the largest packet opus_encode() can generate? In order to get pac= kets of up to 120 ms by combining multiple frames as described in RFC6716 c= lause 2.1.4 one would need to use the "repacketizer". That is if I want to= have a 120 ms packet, I would need to take two 60 ms packets generated by= opus_encode(), ext...
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...
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 there is not even one occurance of the previous described problem. Kind regards,...
2017 Apr 06
1
Encoding OPUS with difference bitrates
...nd 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 how to handle this case. if(1) { opus_encoder_ctl(enc, OPUS_SET_BITRATE(bitrate_bps)); len[toggle] = opus_encode(enc, in, frame_size, data[toggle], max_payload_bytes); } if(1) { opus_encoder_ctl(enc, OPUS_SET_BITRATE(32000)); enc_size = opus_encod...
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 opus_int16 pcm's size in bytes would be *3840*. Documentation page says the recommended size for...
2018 Sep 27
1
[Re:] Re: Opus 1.2.1 crash on silk/VAD.c:315
...n=0x7f267402a8a8, samplesIn at entry=0x7f267402a128, >> nSamplesIn=0, nSamplesIn at entry=960, >> psRangeEnc=psRangeEnc at entry=0x7f267402bbe0, >> nBytesOut=nBytesOut at entry=0x7f267402bb9c, prefillFlag=0) >> at silk/enc_API.c:443 >> #4 0x0000000000a8366d in opus_encode_native (st=st at entry=0x158935a0, >> pcm=0x7f267402bf38, frame_size=960, >> data=0x7f26b5a1084d "", data at entry=0x7f26b5a1084c "", >> out_data_bytes=1946331320, out_data_bytes at entry=5988, >> lsb_depth=1065353216, lsb_depth at entry=16, >...
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,...
2019 Apr 08
3
API for checking whether the encoder is in DTX (PR #107)
...gt; > + * <dt>1</dt><dd>The encoder is in DTX.</dd> > > + * </dl> > > + * @hideinitializer */ > > +#define OPUS_GET_IN_DTX(x) OPUS_GET_IN_DTX_REQUEST, > __opus_check_int_ptr(x) > > > > /**@}*/ > > > > diff --git a/src/opus_encoder.c b/src/opus_encoder.c > > index cbeb40ae..0d84737a 100644 > > --- a/src/opus_encoder.c > > +++ b/src/opus_encoder.c > > @@ -2725,6 +2725,27 @@ int opus_encoder_ctl(OpusEncoder *st, int > > request, ...) > > ret = celt_encoder_ctl(celt_enc, > OP...
2013 May 27
1
Empty buffer on encoder write byte
...bb4, pnBytesOut=0x000027d8, psRangeEnc=0x04232238, condCoding=69435308) + 1886 at encode_frame_FLP.c:196 frame #5: 0x00187de8 RTCClient`silk_Encode(encState=0x001f000b, encControl=0xffd2ffe2, samplesIn=0xffc4ffce, nSamplesIn=-5570589) + 2792 at enc_API.c:466 frame #6: 0x0019a1ce RTCClient`opus_encode_float(st=0x04234000, pcm=0x3b6c0000, frame_size=985923584, data=0x04232018) + 3922 at opus_encoder.c:973 frame #7: 0x0019abd2 RTCClient`opus_encode() + 74 at opus_encoder.c:1306 frame #8: 0x000e63be RTCClient`-[JAOpusEncoder encodeWithPCMInput:frameSize:outputBlock:](self=0x1fd2ffa0, _cm...