FS#77341 - [kodi] Compile with PipeWire support
Attached to Project:
Community Packages
Opened by Mark Rietveld (WinterStar) - Tuesday, 31 January 2023, 08:21 GMT
Last edited by Ike Devolder (BlackEagle) - Monday, 20 February 2023, 20:04 GMT
Opened by Mark Rietveld (WinterStar) - Tuesday, 31 January 2023, 08:21 GMT
Last edited by Ike Devolder (BlackEagle) - Monday, 20 February 2023, 20:04 GMT
|
Details
Kodi version 20.0 from the official Community repo seems to
be compiled without PipeWire support:
The outputs listed under System - Audio are only PulseAudio and ALSA. An attempt can be made to simply force PipeWire as the audio output by setting the environment variable KODI_AE_SINK=PULSEAUDIO, however this causes Kodi to not enumerate any audio devices at all on startup. PipeWire support might be really useful since currently Kodi seems to lose an HDMI device as an output when such an HDMI device is powered off and on again. I suspect PipeWire as an output may alleviate that. |
This task depends upon
Closed by Ike Devolder (BlackEagle)
Monday, 20 February 2023, 20:04 GMT
Reason for closing: Fixed
Additional comments about closing: depend on libpipewire since kodi 20.0-6
Monday, 20 February 2023, 20:04 GMT
Reason for closing: Fixed
Additional comments about closing: depend on libpipewire since kodi 20.0-6
I had to start with KODI_AE_SINK=ALSA to make it work again. Using kodi-standalone-service from AUR.
Does `systemctl --user mask pipewire.socket pipewire.service` help to automatically drop to the alsa fallback?
Additionally, the order in which Kodi checks the outputs is indeed Pulseaudio->PipeWire->Alsa. With the proper PipeWire implementation in Master it is intended for PipeWire to become the default/first priority output at a point in the near future.
For a typical standalone media box, ALSA is recommended for high quality and low latency audio: https://kodi.wiki/view/PulseAudio#FAQ
Pipewire is not even mentioned on the Kodi wiki, so it may indeed be a bit premature to add it to our build already? Unless it can work out of the box.
Regarding order of detection: https://github.com/xbmc/xbmc/pull/22644 , but I assume such changes will not be backported to v20 Nexus.
I read online that Kodi didn't support Pipewire yet, and there were no solutions.
So I installed Pulseaudio and forgot about it.
I installed Pipewire again a bit more than a week ago, and the only thing I had to do once in Kodi was reset to Defaults in Settings > System > Audio.
Seems like both Nexus and Matrix (v19.4 via Flatpak downgrade) now work with Pipewire without issues.
ALSA is superior for single use applications such as an HTPC, and should not require special configuration with environment variables to use it.
I noticed that the PKGBUILD no longer has the '-DENABLE_ALSA=ON` CMake option.
Geert: I'll move this pipewire split into a lib and pipewire itself and if default enabling should be done into a new issue https://bugs.archlinux.org/task/77584