# Opus and Vorbis encoder sample rate configuration

**URL:** https://community.wowza.com/t/opus-and-vorbis-encoder-sample-rate-configuration/34736
**Category:** Wowza Streaming Engine
**Created:** [May 19, 2016, 6:28pm UTC](https://community.wowza.com/t/opus-and-vorbis-encoder-sample-rate-configuration/34736 "2016-05-19T18:28:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jay\_Charles](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@Jay\_Charles](https://community.wowza.com/u/Jay_Charles)
#### Post date: [May 19, 2016, 6:28pm UTC](https://community.wowza.com/t/opus-and-vorbis-encoder-sample-rate-configuration/34736/1 "2016-05-19T18:28:33Z")

</div>

Hi

It seems that regardless of what value I provide for in the audio node for Opus or Vorbis encodes, I end up with a default of 44.1KHz, and the value doesn’t translate to a sample rate. As a result, the log complains of an invalid sample rate for Opus:

JNI:AudioEncoderOpus.initialize[_defaultVHost_:publishService/_definst_/P3XH5325:webrtc]: Sample rate is not supported [8KHz, 12KHz, 16KHz, 24KHz, 48KHz]: 44100

Vorbis encoders seem to start fine, but encode at 44.1 regardless of my bitrate setting. Am I missing a parameter somewhere?

I have my encoder configured as:

true

webrtc

${SourceStreamName}\_rtc

VP9

default

-1

letterbox

640

360

baseline

500000

false

30

Opus

48000

Thank you.

---

<div class="post-metadata">

### Author: ![Jason\_Hatchett](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hatchett/32/391_2.png) [@Jason\_Hatchett](https://community.wowza.com/u/Jason_Hatchett)
#### Post date: [May 30, 2016, 3:00am UTC](https://community.wowza.com/t/opus-and-vorbis-encoder-sample-rate-configuration/34736/2 "2016-05-30T03:00:25Z")

</div>

Hello Jay,

I woudl expect a “Sample-Rate” variable, but I am not that familiar with the encoder you are using can you point me to the site that distributes this encoder?

In my search the closest I could find was this post on Stack Overflow:

[https://stackoverflow.com/questions/16084882/lame-encoded-mp3-audio-slowed-down-android](https://stackoverflow.com/questions/16084882/lame-encoded-mp3-audio-slowed-down-android)

This covers the Lame MP3 encoder, but the concept of sample rate is usually included with most audio encoders.

Regards,

Jason Hatchett
