Trouble Understanding Opus Encoder
Nicolas Dufresne
nicolas at ndufresne.ca
Wed Dec 6 17:05:09 UTC 2023
Hi,
Le mardi 05 décembre 2023 à 19:23 -0500, Jim Ruxton via gstreamer-devel a
écrit :
> I'm trying to stream audio to a device (ESP32) over wifi using opus encoding. It works however I would like to reduce the bitrate to try and get a greater distance over wifi. It appears that the bitrate variable for opusenc does nothing. I seem to get the same stream whether I put bitrate=2 or bitrate=32000. I've tried different bitrate types as well. Below is a typical pipeline that I'm using. I'm sending the stream to a broadcast over UDP
>
> gst-launch-1.0 -v jackaudiosrc connect=0 ! audioconvert ! audioresample ! audio/x-raw, rate=8000 ! audioresample ! opusenc bitrate-type=cbr bitrate=32000 complexity=5 max-payload-size=1000 ! udpsink host=192.168.1.255 port=8000
Just ran a test with some python script I had made for video encoder rate
control, the rate is dead accurate for me. Move your question to the forum if
you want me to share the test script and the resulting plot.
https://discourse.gstreamer.org
Nicolas
>
> What am I doing wrong? I am sending low frequency sounds so can tolerate low bitrates.
> Thanks for any advice.
> Jim
More information about the gstreamer-devel
mailing list