quiniouben / vban

VBAN protocol open-source implementation
GNU General Public License v3.0
450 stars 63 forks source link

Recommanded ways to improve latency ? #86

Open Saw-zall opened 1 year ago

Saw-zall commented 1 year ago

Hi, I'm experiencing really big latency (~3-5 sec).

I'm using vban emitter on my main computer using pulseaudio to transmit my desktop audio to the iPhone app vban receptor (full version).

I'm launching the emitter this way : vban_emitter -i "ip" -p 6980 -s Stream1 -c1,2 -r 24000

My computer is on the local network with ethernet, my phone is on wifi 5, always in 3 meter range from the wifi access point.

So, with all that, i'm assuming I need to tweak the tool to obtain the best results. On the app, I have a stable link only if I set the network quality to slow or very slow. If I try to set network quality to at least medium on the app, it instantly starts throwing underruns and overloads.

I tried many different sample rates on the emitter, also many sample formats combined.

I don´t understand where the bottleneck is. My network is not saturated.

Could the issue be related to pulseaudio ?

Any tips on how to improve latency ?

Thanks a lot for any help !