[PROBLEM] Bluetooth audio latency - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [PROBLEM] Bluetooth audio latency (/showthread.php?tid=1554) |
Bluetooth audio latency - travuga - 07-28-2019 I have a question that might be already asked. I wonder about some possibilities to fix latency while stream audio from phone/tablet/notebook/PC to my moOdeaudioed RPi3 via bluetooth. I've found answer about syncing audio and video on Samsung TV, where Tim said you can use Airplay with latency adjustments. But why there is a 0.7 sec bluetooth latency? Is it a blueZ or something else problem? Is it fixable, and, if could, how? It would be great to see detailed actual answer. Thanks in advance. RE: Bluetooth audio latency - Tim Curtis - 07-29-2019 Try posting the question in the Bluez-alsa Git repo. https://github.com/Arkq/bluez-alsa RE: Bluetooth audio latency - badbat75 - 07-30-2019 I changed the systemd script and added a configuration file to set the buffer size for bluez alsa. In detail, I added --pcm-buffer-time=<buffer_time> parameter to bluealsa-aplay command line. At the end, it is enough to change the BUFFERTIME value in /etc/bluealsaaplay.conf. I had no success in setting values lower than 20000 (20ms) on my Pi1, but it is enough to watch movies with moode as audio sink. Code: echo 'BUFFERTIME=20000' >> /etc/bluealsaaplay.conf RE: Bluetooth audio latency - Tim Curtis - 07-30-2019 Tested on Youtube videos and it more or less fixes lip sync issues. I added a setting for this to BlueZ config in upcoming moOde 6 release :-) RE: Bluetooth audio latency - TheOldPresbyope - 07-30-2019 Playing the devil's advocate for a moment, why would this need to be a configuration setting rather than just a reduction in the value baked into the build? For a given system, is there a range of values ranging from better synchronization for the A/V enthusiast on one end to better listening for the audiophile on the other? If so, what kind of user guidance will be provided concerning this setting? Inquiring minds want to know Regards, Kent RE: Bluetooth audio latency - Tim Curtis - 07-30-2019 It's a setting thats meant to fix a specific issue i.e., lip sync but the value that works best in a given usage scenario may depend on the quality of the BT connection so I figured its prolly better to just let user chose values from a list. Here's some screenies. [attachment=702] [attachment=703] [attachment=704] RE: Bluetooth audio latency - TheOldPresbyope - 07-30-2019 That works. RE: Bluetooth audio latency - badbat75 - 08-01-2019 (07-30-2019, 06:26 PM)Tim Curtis Wrote: It's a setting thats meant to fix a specific issue i.e., lip sync but the value that works best in a given usage scenario may depend on the quality of the BT connection so I figured its prolly better to just let user chose values from a list. WOW!!! RE: Bluetooth audio latency - Norbert - 08-04-2019 @badbat75 Thank you for this tip, that's so fantastic. Now I can play the sound of my LG TV over the speakers (using the Pi 3 with the 2x 30W Amp2 from Hifiberry). I'm really impressed and did not think it would work without the aptX (low latency) codec, but the voices on the TV are lip-syncing. And thanks to moodeaudio, the whole thing works without switching the inputs. Who comes last ... gets the speakers ) |