[opus] OPUS Encoder Bitrate setting

Vittalprasad vittalprasad.br at gmail.com
Wed Mar 8 13:36:10 UTC 2017

Hi There,

I have two OPUS handset clients say A & B
A is  8 KHz, 12.2kbps  cvbr supported OPUS client
B is  8 KHz, 16kbps  cvbr supported OPUS client

When i try to encode 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,

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

More information about the opus mailing list