Displaying 10 results from an estimated 10 matches for "opus_set_lsb_depth".
2016 Jan 07
2
Issue with decoding 8-bit PCM data
...i8ScaleFactor = 1 for 8-bit and 2 for 16-bit data
ui32BitsPerSample = 8 for 8-bit data and 16 for 16-bit data
The code is as follows
sOpusDec = opus_decoder_create(ui32SamplingRate, ui32Channel, &i32error);
if (i32error != OPUS_OK)
{
return((int)i32error);
}
opus_decoder_ctl(sOpusDec, OPUS_SET_LSB_DEPTH(ui32BitsPerSample));
ui32SizeOfWrBuf =
(ui32SamplingRate*ui32Channel*FRAME_SIZE_IN_MS*ui8ScaleFactor)/1000;
opi16_out =
(int16_t*)calloc(((ui32SizeOfWrBuf/ui8ScaleFactor)+1),sizeof(int16_t));
pcRdBuf = (uint8_t *)calloc(MAX_PACKET,sizeof(uint8_t));
output_samples = opus_decode(sOpusDec, (const un...
2016 Jan 07
3
Issue with decoding 8-bit PCM data
...c.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 10:04 AM, Amit Ashara wrote:
>
> > opus_decoder_ctl(sOpusDec, OPUS_SET_LSB_DEPTH(ui32BitsPerSample));
>
> OPUS_SET_LSB_DEPTH only affects the encoder. If you check the return
> value here you should get OPUS_UNIMPLEMENTED.
>
> > output_samples = opus_decode(sOpusDec, (const unsigned char
> > *)&pcRdBuf[0], len, opi16_out, (ui32SizeOfWrBuf/ui8ScaleFac...
2015 Jun 24
1
24 bits samples
..._custom_demo.c". It hasn't any problem with 16 bits samples
but when I use 24 bits samples , there is no output audio.
opus_decoder will still generate 16 bits samples and these output samples
are saturated . I use following function for 16 / 24 bit depth :
opus_custom_encoder_ctl(enc, OPUS_SET_LSB_DEPTH(16/24));
How can I solve this problem ?
Thanks a lot
Kazem
----------------------------------------
From: "Timothy B. Terriberry" <tterribe at xiph.org>
Sent: Tuesday, June 23, 2015 11:22 PM
To: opus at xiph.org
Subject: Re: [opus] 24 bits samples
Jean-Marc Valin wrote:
> Opu...
2016 Jan 07
0
Issue with decoding 8-bit PCM data
On 07/01/16 10:04 AM, Amit Ashara wrote:
> opus_decoder_ctl(sOpusDec, OPUS_SET_LSB_DEPTH(ui32BitsPerSample));
OPUS_SET_LSB_DEPTH only affects the encoder. If you check the return
value here you should get OPUS_UNIMPLEMENTED.
> output_samples = opus_decode(sOpusDec, (const unsigned char
> *)&pcRdBuf[0], len, opi16_out, (ui32SizeOfWrBuf/ui8ScaleFactor), 0);
I suspect the iss...
2016 Jan 09
0
Issue with decoding 8-bit PCM data
...rk?
>>>
>>> Regards
>>> Amit
>>>
>>> On Thu, Jan 7, 2016 at 12:21 PM, Ralph Giles <giles at thaumas.net> wrote:
>>>
>>>> On 07/01/16 10:04 AM, Amit Ashara wrote:
>>>>
>>>> > opus_decoder_ctl(sOpusDec, OPUS_SET_LSB_DEPTH(ui32BitsPerSample));
>>>>
>>>> OPUS_SET_LSB_DEPTH only affects the encoder. If you check the return
>>>> value here you should get OPUS_UNIMPLEMENTED.
>>>>
>>>> > output_samples = opus_decode(sOpusDec, (const unsigned char
>>>&...
2018 Jan 15
1
Ask for suggestions about optimizing opus on STM32F407
...PLEXITY(0));
opus_encoder_ctl(enc, OPUS_SET_INBAND_FEC(0));
opus_encoder_ctl(enc, OPUS_SET_FORCE_CHANNELS(OPUS_AUTO));
opus_encoder_ctl(enc, OPUS_SET_DTX(0));
opus_encoder_ctl(enc, OPUS_SET_PACKET_LOSS_PERC(0));
opus_encoder_ctl(enc, OPUS_GET_LOOKAHEAD(&lookahead));
opus_encoder_ctl(enc, OPUS_SET_LSB_DEPTH(16));
opus_encoder_ctl(enc,
OPUS_SET_EXPERT_FRAME_DURATION(OPUS_FRAMESIZE_20_MS));
/* CELT is faster than SILK? */
opus_encoder_ctl(enc, OPUS_SET_FORCE_MODE(MODE_CELT_ONLY));
D. generate 20ms PCM sample data (Cosine wave with amplitude 0x6000 and
frequency about 1150 Hz)
E. encode the PCM data...
2016 May 10
3
Opus encoding rate for very quiet noisefloor
Hi Opus list,
Please forgive me if this has been asked before. I find that Opus encoder created in mode OPUS_APPLICATION_AUDIO (as opposed to _VOIP) is using a lot of bits to encode silent periods of speech. This is relevant to a voip application for which good quality music is desirable, and in which I add a minimal comfort noise (order of few bits loud, e.g. MLS signal of amplitude 1 or 2)
2018 Feb 23
3
[EXTERNAL] Re: Developing OPUS on TI CC3220
...SET_VBR_CONSTRAINT(0));
opus_encoder_ctl(sOpusEnc, OPUS_SET_COMPLEXITY(0));
opus_encoder_ctl(sOpusEnc, OPUS_SET_INBAND_FEC(0));
opus_encoder_ctl(sOpusEnc, OPUS_SET_FORCE_CHANNELS(1));//Mono
opus_encoder_ctl(sOpusEnc, OPUS_SET_PACKET_LOSS_PERC(0));
opus_encoder_ctl(sOpusEnc, OPUS_SET_LSB_DEPTH(16)
);
opus_encoder_ctl(sOpusEnc,
OPUS_SET_EXPERT_FRAME_DURATION(OPUS_FRAMESIZE_20_MS));
opus_encoder_ctl(sOpusEnc, OPUS_SET_FORCE_MODE(MODE_CELT_ONLY));
Thanks again for your help!
VR
-----Original Message-----
From: Jean-Marc Va...
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