<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hi all,</div><div>Please guide me How to change frame_size of opus codec at run-time (20ms, 40ms, 60ms)</div><div>I'm stucking in this case:</div><div>1. init codec width default config (frame_size =20ms, bandwidth=48KHz, bitrate = 48kbps...), then in runtime changing:</div><div>- bitrate = 24, 16, 6kbps: sound is OK</div><div>- frame_size = 40ms, 60ms: Not OK, sound is distort so bad</div><div>2. init codec with frame_size = 40ms , others is default, then in runtime changing:</div><div>- bitrate = 6kbps: OK</div><div>- bitrate = 24, 48kbps: Not OK</div><div><br></div><div>I'm using opus_encoder_ctl api:<br></div><div><p style="margin: 0px;" data-mce-style="margin: 0px;"> opus_encoder_ctl(opus_data->enc,OPUS_SET_EXPERT_FRAME_DURATION(frame_duration));<br> opus_encoder_ctl(opus_data->enc, OPUS_SET_BITRATE(avg_bps));</p></div><div><br></div><div><span name="x"></span>Regards, <br>Kamin<br><span name="x"></span><br></div><div><br></div></div></body></html>