Here is my codecs.conf. I added the last line for [opus] to test setting the max bitrate, didn’t work.:
[opus48]
type=opus
samprate=48000 ; Sample rate of this opus format in hz.
; 8000, 12000, 16000, 24000, 48000 are acceptable values.
fec=true ; turn on or off encoding with forward error correction.
; On recommended, off by default.
;maxbitrate=10000 ; Use the table below to make sure a useful bitrate is chosen
; for maxbitrate. If not set or value is not within the bounds
; of the encoder, a default value is chosen.
;
; sample rate | bitrate range
; 8khz | 6000 - 20000 bps
; 12khz | 7000 - 25000 bps
; 16khz | 8000 - 30000 bps
; 24khz | 18000- 28000 bps
; 48khz | 24000- 32000 bps
;dtx=true ; Encode using discontinuous transmission mode or not. Turning this
; on will save bandwidth during periods of silence at the cost of
; increased computational complexity. Off by default.
;cbr=true ; Whether or not to encode with constant or variable bit rate. Constant
; bit rate is disabled by default.
[opus24]
type=opus
samprate=24000 ; Sample rate of this opus format in hz.
; 8000, 12000, 16000, 24000, 48000 are acceptable values.
fec=true ; turn on or off encoding with forward error correction.
; On recommended, off by default.
;maxbitrate=10000 ; Use the table below to make sure a useful bitrate is chosen
; for maxbitrate. If not set or value is not within the bounds
; of the encoder, a default value is chosen.
;
; sample rate | bitrate range
; 8khz | 6000 - 20000 bps
; 12khz | 7000 - 25000 bps
; 16khz | 8000 - 30000 bps
; 24khz | 18000- 28000 bps
; 48khz | 24000- 32000 bps
;dtx=true ; Encode using discontinuous transmission mode or not. Turning this
; on will save bandwidth during periods of silence at the cost of
; increased computational complexity. Off by default.
;cbr=true ; Whether or not to encode with constant or variable bit rate. Constant
; bit rate is disabled by default.
[opus16]
type=opus
samprate=16000 ; Sample rate of this opus format in hz.
; 8000, 12000, 16000, 24000, 48000 are acceptable values.
fec=true ; turn on or off encoding with forward error correction.
; On recommended, off by default.
;maxbitrate=10000 ; Use the table below to make sure a useful bitrate is chosen
; for maxbitrate. If not set or value is not within the bounds
; of the encoder, a default value is chosen.
;
; sample rate | bitrate range
; 8khz | 6000 - 20000 bps
; 12khz | 7000 - 25000 bps
; 16khz | 8000 - 30000 bps
; 24khz | 18000- 28000 bps
; 48khz | 24000- 32000 bps
;dtx=true ; Encode using discontinuous transmission mode or not. Turning this
; on will save bandwidth during periods of silence at the cost of
; increased computational complexity. Off by default.
;cbr=true ; Whether or not to encode with constant or variable bit rate. Constant
; bit rate is disabled by default.
[opus12]
type=opus
samprate=12000 ; Sample rate of this opus format in hz.
; 8000, 12000, 16000, 24000, 48000 are acceptable values.
fec=true ; turn on or off encoding with forward error correction.
; On recommended, off by default.
;maxbitrate=10000 ; Use the table below to make sure a useful bitrate is chosen
; for maxbitrate. If not set or value is not within the bounds
; of the encoder, a default value is chosen.
;
; sample rate | bitrate range
; 8khz | 6000 - 20000 bps
; 12khz | 7000 - 25000 bps
; 16khz | 8000 - 30000 bps
; 24khz | 18000- 28000 bps
; 48khz | 24000- 32000 bps
;dtx=true ; Encode using discontinuous transmission mode or not. Turning this
; on will save bandwidth during periods of silence at the cost of
; increased computational complexity. Off by default.
;cbr=true ; Whether or not to encode with constant or variable bit rate. Constant
; bit rate is disabled by default.
[opus8]
type=opus
samprate=8000 ; Sample rate of this opus format in hz.
; 8000, 12000, 16000, 24000, 48000 are acceptable values.
fec=true ; turn on or off encoding with forward error correction.
; On recommended, off by default.
;maxbitrate=10000 ; Use the table below to make sure a useful bitrate is chosen
; for maxbitrate. If not set or value is not within the bounds
; of the encoder, a default value is chosen.
;
; sample rate | bitrate range
; 8khz | 6000 - 20000 bps
; 12khz | 7000 - 25000 bps
; 16khz | 8000 - 30000 bps
; 24khz | 18000- 28000 bps
; 48khz | 24000- 32000 bps
;dtx=true ; Encode using discontinuous transmission mode or not. Turning this
; on will save bandwidth during periods of silence at the cost of
; increased computational complexity. Off by default.
;cbr=true ; Whether or not to encode with constant or variable bit rate. Constant
; bit rate is disabled by default.
[opus]
type=opus
samprate=48000
fec=true
packet_loss=50
maxbitrate=24000
Thanks