games-on-whales / wolf

Stream virtual desktops and games running in Docker
https://games-on-whales.github.io/wolf/stable/
MIT License
292 stars 20 forks source link

Audio: investigate better encoding defaults #55

Closed ABeltramo closed 4 months ago

ABeltramo commented 6 months ago

From Discord:

I played around with the settings a bit. I think I set some of these numbers too high, but I don't want to mess with it as it sounds much better. I think what really solved it was changing bitrate-type="constrained-vbr". Here's all the stuff I threw in there:

default_audio_params = "audio/x-raw, channels={channels}"
default_opus_encoder = """
opusenc bitrate=4000000 bitrate-type="constrained-vbr" frame-size={packet_duration} bandwidth=fullband audio-type="restricted-lowdelay"
max-payload-size=8000 complexity=100
\
"""

I probably set things way too high. It sounds MUCH better though.