Displaying 20 results from an estimated 24 matches for "opus_set_bitrate".
2014 Oct 27
0
Codec setting using fmtp maxaveragebitrate and OPUS_SET_BITRATE
...ntation :
"RTP Payload Format for Opus Speech and Audio Codec
draft-spittka-payload-rtp-opus-03
maxaveragebitrate : Any positive integer is allowed but values outside the
range between 6000 and 510000 SHOULD be ignored."
If I understand, maxaveragebitrate" could/should be use with
OPUS_SET_BITRATE
However when looking at "opus_encoder_ctl" OPUS_SET_BITRATE documentation
I see :
"Configures the bitrate in the encoder. Rates from 500 to 512000 bits per
second are meaningful"
-------------------------------------------------------------------
I suppose "500",...
2017 Apr 06
1
Encoding OPUS with difference bitrates
...ective 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_encode(enc, in, frame_size, tmpBu...
2015 Mar 04
2
adaptive bandwidth
...m IRC suggests that the app has to be aware of the losses and
change it on the fly.
Has anybody on the list tried this?
Kelvin Chua
On Wed, Mar 4, 2015 at 5:53 PM, Dragos Oancea <droancea at yahoo.com> wrote:
> Hi Kelvin,
>
> You can use something like :
> opus_encoder_ctl(enc,OPUS_SET_BITRATE(bitrate));
> opus_encoder_ctl(enc,OPUS_SET_MAX_BANDWIDTH(bandpass));
> bandpass is the audio bandpass , eg: OPUS_BANDWIDTH_WIDEBAND .
>
> You will need to calculate the codec bitrate from the available network
> bitrate (by taking into account the size of the IP+UDP+RTP headers which...
2018 May 12
1
Formula/heuristic for estimating packet size?
...x packet size of 120 bytes, then you're absolutely certain the
bitrate will never go over 48 kb/s.
Jean-Marc
On 05/12/2018 12:42 PM, Albin Stigö wrote:
> Just a follow up... I guess I was a bit confused about the VBR
> setting. I realise now that packets tend to stay very close to
> OPUS_SET_BITRATE so that solves my problem.
>
> --Albin
>
> On Sat, May 12, 2018 at 6:19 PM, Albin Stigö <albin.stigo at gmail.com> wrote:
>> Thanks for the input!
>>
>> --Albin
>>
>> On Sat, May 12, 2018 at 6:00 PM, Orestes Zoupanos
>> <oresteszoupanos at...
2018 May 12
2
Formula/heuristic for estimating packet size?
Thanks for the input!
--Albin
On Sat, May 12, 2018 at 6:00 PM, Orestes Zoupanos
<oresteszoupanos at hotmail.com> wrote:
> Hi Albin!
>
> There may be some details at: https://tools.ietf.org/html/rfc7845#section-6
>
> Otherwise, I hope someone else on this list might be able to give a better
> formula for estimating packet size.
>
> Regards,
>
> Orestes
>
2019 Feb 17
2
Custom mode
...n
with a (seemingly) low complexity it does not yield the desired result.
*Setup code:*
mode = opus_custom_mode_create(15625, 64, &err);
size = opus_custom_encoder_get_size(mode, 1);
enc = malloc(size);
err = opus_custom_encoder_init(enc, mode, 1);
err = opus_custom_encoder_ctl(enc, OPUS_SET_BITRATE(16000));
err = opus_custom_encoder_ctl(enc, OPUS_SET_COMPLEXITY(0));
size = opus_custom_decoder_get_size(mode, 1);
dec = malloc(size);
err = opus_custom_decoder_init(dec, mode, 1);
*ISR code (called once every 4.096ms):*
nbBytes = opus_custom_encode(
enc, (opus_int16 *)lMic...
2015 Mar 04
2
adaptive bandwidth
I am using libopus for my implementation. I wonder if anybody in the list
have any experience on how to make libopus dynamically adjust its bitrate?
On Mar 3, 2015 10:42 PM, "Benjamin Schwartz" <benjamin.m.schwartz at gmail.com>
wrote:
> It sounds like your software isn't adjusting the opus bitrate in response
> to network conditions. For example, many WebRTC
2015 Apr 02
1
Opus multi-stream/surround: Audio corruption on decoded content
..._APPLICATION_RESTRICTED_LOWDELAY,
&err
);
if (err != OPUS_OK)
return;
m_SurroundInfo.s.streams = (unsigned char)streams;
m_SurroundInfo.s.coupled_streams = (unsigned char)coupled_streams;
opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_BITRATE(bitRate));
opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_BANDWIDTH(OPUS_AUTO));
opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_VBR(0));
opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_VBR_CONSTRAINT(0));
opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_COMPLEXITY(10));...
2018 Jan 15
1
Ask for suggestions about optimizing opus on STM32F407
...y 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));
opus_encoder_ctl(enc, OPUS_SET_INBAND_FEC(0));
opus_encoder_ctl(enc, OPUS_SET_FORCE_CHANNEL...
2015 Mar 04
0
adaptive bandwidth
Hi Kelvin,
You can use something like :opus_encoder_ctl(enc,OPUS_SET_BITRATE(bitrate));opus_encoder_ctl(enc,OPUS_SET_MAX_BANDWIDTH(bandpass));
bandpass is the audio bandpass?, eg: OPUS_BANDWIDTH_WIDEBAND .
You will need to calculate the codec bitrate from the available network bitrate (by taking into account the size of the IP+UDP+RTP headers which is 40 bytes ) .
By defaul...
2016 Nov 10
1
Error running opus encoder/decoder under PIC32
...s
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:
bytesEncoded = opus_encode(_encoder, _encoderBuffer,
_frameSize, codedBuffer, sizeof(codedBuffer))...
2017 Mar 08
0
OPUS Encoder Bitrate setting
...code a same voice frame(20ms sample frame) at
different time intervals(not parallel encoding) for both A & B using
same encoder handle by changing only bit rate.
Issue here is, some noise is heard for B OPUS client,
Ex:
OpusEncoder* encoder = (OpusEncoder*)encHandle;
opus_encoder_ctl(encoder, OPUS_SET_BITRATE(encProp->bitrate));
Is encoder fails to change bitrate to 16kbps even after setting the
bit rate using opus_encoder_ctl API?
Is there anyway to set bitrate according to requirement for same
frame(20ms) encoding?
--
Thanks & Regards
Vittalprasad B R
8722397247
2018 Apr 25
0
How to change codec frame_size at runtime
.... init codec with frame_size = 40ms , others is default, then in runtime changing:
- bitrate = 6kbps: OK
- bitrate = 24, 48kbps: Not OK
I'm using opus_encoder_ctl api:
opus_encoder_ctl(opus_data->enc,OPUS_SET_EXPERT_FRAME_DURATION(frame_duration));
opus_encoder_ctl(opus_data->enc, OPUS_SET_BITRATE(avg_bps));
Regards,
Kamin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/opus/attachments/20180425/8a23b2c7/attachment.html>
2018 May 12
0
Formula/heuristic for estimating packet size?
Just a follow up... I guess I was a bit confused about the VBR
setting. I realise now that packets tend to stay very close to
OPUS_SET_BITRATE so that solves my problem.
--Albin
On Sat, May 12, 2018 at 6:19 PM, Albin Stigö <albin.stigo at gmail.com> wrote:
> Thanks for the input!
>
> --Albin
>
> On Sat, May 12, 2018 at 6:00 PM, Orestes Zoupanos
> <oresteszoupanos at hotmail.com> wrote:
>> Hi Albin!
&g...
2020 Jun 11
1
OPUS encoded data size and bandwidth of encoder
Hey, I am having trouble with the size of the encoded bytes by Opus. I am
also having issue with the Bandwidth ctl.
Here is the scenario.
If I encode 16khz sampled audio:
opus_encoder_ctl(enc,OPUS_SET_MAX_BANDWIDTH(OPUS_BANDWIDTH_WIDEBAND))
opus_encoder_ctl(enc, OPUS_GET_BANDWIDTH(&x)) = 1102
opus_encoder_ctl(enc, OPUS_GET_MAX_BANDWIDTH(&x)) = 1103
average encoded size = 120 bytes
if I
2015 Mar 04
0
adaptive bandwidth
...nimize impact?Mark from IRC suggests that the app has to be aware of the losses and change it on the fly.Has anybody on the list tried this?
Kelvin Chua
On Wed, Mar 4, 2015 at 5:53 PM, Dragos Oancea <droancea at yahoo.com> wrote:
Hi Kelvin,
You can use something like :opus_encoder_ctl(enc,OPUS_SET_BITRATE(bitrate));opus_encoder_ctl(enc,OPUS_SET_MAX_BANDWIDTH(bandpass));
bandpass is the audio bandpass?, eg: OPUS_BANDWIDTH_WIDEBAND .
You will need to calculate the codec bitrate from the available network bitrate (by taking into account the size of the IP+UDP+RTP headers which is 40 bytes ) .
By defaul...
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
2015 Apr 02
0
Opus multi-stream/surround: Audio corruption on decoded content
..._APPLICATION_RESTRICTED_LOWDELAY,
&err
);
if (err != OPUS_OK)
return;
m_SurroundInfo.s.streams = (unsigned char)streams;
m_SurroundInfo.s.coupled_streams = (unsigned char)coupled_streams;
opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_BITRATE(bitRate));
opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_BANDWIDTH(OPUS_AUTO));
opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_VBR(0));
opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_VBR_CONSTRAINT(0));
opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_COMPLEXITY(10));...
2014 Feb 27
1
OPUS_SET_MAX_BANDWIDTH does not have expected results
Hi All.
I am seeing the following unexpected behavior with
OPUS_SET_MAX_BANDWIDTH. I expect that setting this to
OPUS_BANDWIDTH_NARROWBAND would give similar results to passing an 8Khz
sample rate stream, but OPUS_SET_MAX_BANDWIDTH has almost no effect with
any settings.
My test data has 4Khz bandwidth. I am testing the opus encoder (latest
versions) with the following opus_encoder_ctl
2019 Feb 20
0
Fwd: Custom mode
...>> mode = opus_custom_mode_create(15625, 64, &err);
>>
>>
>>
>> size = opus_custom_encoder_get_size(mode, 1);
>>
>> enc = malloc(size);
>>
>> err = opus_custom_encoder_init(enc, mode, 1);
>>
>> err = opus_custom_encoder_ctl(enc, OPUS_SET_BITRATE(16000));
>>
>> err = opus_custom_encoder_ctl(enc, OPUS_SET_COMPLEXITY(0));
>>
>>
>>
>> size = opus_custom_decoder_get_size(mode, 1);
>>
>> dec = malloc(size);
>>
>> err = opus_custom_decoder_init(dec, mode, 1);
>>
>>
>>
&...