search for: opus_encoder_cr

Displaying 11 results from an estimated 11 matches for "opus_encoder_cr".

Did you mean: opus_encoder_ctl
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 this 00 00 00 12 31 69 52 10 08 doubts are 1)i know 12(hexa) is size of encoded frame and 08 is TOC byte, here i have doubt i am using stereo input and 20ms frame then TOC sho...
2019 Apr 24
1
Opus Requirement for embedded Application
Hello everyone, I tried integrating opus middleware on an STM32L4 microcontroller based project. First thing I noticed is the considerable amount of memory allocated by the opus_encoder_create function (nearly 40 kbytes if I recall). After modifying my project's memory setting (mainly heap size adjustments), I could bypass some aspects of this problems. What I'm noticing now is the time needed for the encode function to treat a 20 ms frame (nearly 50 ms for a complexity of 0...
2018 Jan 15
1
Ask for suggestions about optimizing opus on STM32F407
...anks for your notice and the detailed decode performance report. I describe the details of my encode/decode test on STM32F407ZG. A. opus version: latest 1.2.1 (TI: opus 1.1.2) B. KEIL 5.23 (TI: ARM compiler tool chain 5.2.7) C. setup the encoder as the below (fs is the sampling frequency) enc = opus_encoder_create(fs, chans, OPUS_APPLICATION_AUDIO, &opus_err); opus_encoder_ctl(enc, OPUS_SET_BITRATE(fs * 2)); opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_AUTO)); opus_encoder_ctl(enc, OPUS_SET_VBR(1)); opus_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(0)); opus_encoder_ctl(enc, OPUS_SET_COMPLEXITY(0))...
2012 Oct 25
2
WAVE PCM to OPUS and back
...ls * (waveform.wBitsPerSample >> 3); waveform.nAvgBytesPerSec = waveform.nSamplesPerSec * waveform.nBlockAlign; #define BUFSIZE 512 ... case MM_WIM_DATA: { WAVEHDR *Hdr = (WAVEHDR *) msg.lParam; int opusRes; m_opusEncoder = opus_encoder_create(48000, 2, OPUS_APPLICATION_AUDIO, &opusRes); m_opusDecoder = opus_decoder_create(48000, 2, &opusRes); unsigned char data[BUFSIZE]; opus_int32 dataLength = opus_encode(m_opusEncoder, (short*)Hdr->lpData, 80, data, BUFSIZE);...
2016 Nov 10
1
Error running opus encoder/decoder under PIC32
.../decoding procedure returns al the samples to silence (the buffer is filled with 0x8001 or 0x7fff). The configuration is 48000 sps, 64kHz bandwidth, two channels, OPUS_APPLICATION_AUDIO application. The lib version is 1.1.3. The initialization procedure is as follows: _encoder = opus_encoder_create(48000, 2, OPUS_APPLICATION_AUDIO, &error); error = opus_encoder_ctl(_encoder, OPUS_SET_BITRATE(64000)); _decoder = opus_decoder_create(48000, 2, &error); The variable error is always set to OPUS_OK. The encoding and decoding procedure is as follows...
2018 Jun 29
1
OPUS on cortex M4
...2.1) Defined: FIXED POINT, VAR_ARRAYS, DISABLE FLOAT API, OPUS_BUILD, CELT_MODE_ONLY I am able to allocate enough memory for the encoder as well as decoder state and they both return with OPUS_OK. uint32_t error; opus_int32 Fs = 8000; int channels = 1; OpusEncoder *enc; enc = opus_encoder_create(Fs, channels, OPUS_APPLICATION_RESTRICTED_LOWDELAY, &error); OpusDecoder *dec; dec = opus_decoder_create(Fs, channels, &error); However, If I try to make a simple example of opus_encode followed by and immediate opus_decode I do not get reasonable values compared to the input....
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
2018 Feb 23
3
[EXTERNAL] Re: Developing OPUS on TI CC3220
...currently in heap, since the return of get size was ~25 kB. This seems to happen when I change the application as well. :/ Currently here is how I am setting up my encoder: int size = opus_encoder_get_size(1); sOpusEnc = Memory_alloc(OpusHeap,size,NULL,NULL); // // sOpusEnc = opus_encoder_create(16000, // 1, // OPUS_APPLICATION_VOIP, &i32error); i32error = opus_encoder_init(sOpusEnc, 16000, 1, OPUS_APPLICATION_RESTRICTED_LOWDELAY); opus_encoder_ctl(sOpusEnc, OPUS_SET_BITRATE(16000)); opus_encod...
2018 Feb 20
2
[EXTERNAL] Re: Developing OPUS on TI CC3220
Jean-Marc, Thanks for the response and the helpful info. I am trying to get the library to build without using the pseudostack define, and use either VAR_ARRAYS or ALLOC, but it seems the global stack is not defined. Where do can I define this in my example? VR -----Original Message----- From: Jean-Marc Valin [mailto:jmvalin at jmvalin.ca] Sent: Tuesday, February 20, 2018 5:40 PM To:
2018 Jan 06
3
Ask for suggestions about optimizing opus on STM32F407
<style>table.customTableClassName {margin-bottom: 10px;border-collapse: collapse;display: table;}.customTableClassName td, .customTableClassName th {border: 1px solid #ddd;}</style><div id="write-custom-write" tabindex="0" style="font-size: 12px; font-family: 宋体; outline: medium none currentcolor;"><p style="margin:0px;">Dear
2015 Jul 19
4
Bug in ARM fixed-point ASM?
...], bb[ui+5], bb[ui+6], bb[ui+7]); ui += 8; } while (ui < uiLen); } void opus_encode_known_packet() { int rv = 0; OpusEncoder *oeEncoder; int iiBytesEncoded; uint8_t bbOpusBits[128] __attribute__((aligned (8))); memset(bbOpusBits, 0x00, 128); oeEncoder = opus_encoder_create(48000, 2, OPUS_APPLICATION_RESTRICTED_LOWDELAY, &rv); assert(rv == 0); rv = opus_encoder_ctl(oeEncoder, OPUS_SET_BITRATE(32000)); assert(rv == 0); rv = opus_encoder_ctl(oeEncoder, OPUS_SET_COMPLEXITY(5)); assert(rv == 0); iiBytesEncoded = opus_encode(oeEncoder, bb...