Wowza Community

Opus and Vorbis encoder sample rate configuration

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

Thank you.

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

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

Regards,

Jason Hatchett