2024-04-23, 13:29
If you wanna switch from your kodi 20 PPA installation to the kodi 21 Flatpak version just move everything from ~/.kodi to .var/app/tv.kodi.Kodi/data/ thats it....
<setting id="audiooutput.audiodevice">PIPEWIRE:alsa_output.pci-0000_00_14.2.iec958-stereo.2|Audio interne Stéréo numérique (IEC958)</setting>
<setting id="audiooutput.channels">8</setting>
<setting id="audiooutput.config">3</setting>
<setting id="audiooutput.passthrough">true</setting>
<setting id="audiooutput.passthroughdevice">PIPEWIRE:alsa_output.pci-0000_00_14.2.iec958-stereo.2|Audio interne Stéréo numérique (IEC958)</setting>
<setting id="audiooutput.audiodevice">PULSE:alsa_output.pci-0000_00_14.2.iec958-stereo|Audio interne Stéréo numérique (IEC958)</setting>
<setting id="audiooutput.channels">8</setting>
<setting id="audiooutput.config">3</setting>
<setting id="audiooutput.passthrough">true</setting>
<setting id="audiooutput.passthroughdevice">PULSE:alsa_output.pci-0000_00_14.2.iec958-stereo|Audio interne Stéréo numérique (IEC958)</setting>
sudo dnf --best --allowerasing install pipewire-pulseaudio
systemctl --user status pulseaudio.socket
systemctl --user status pipewire-pulse.socket
systemctl --user restart pipewire-pulse.socket
systemctl --user status pipewire-pulse.socket
systemctl --user restart pipewire
systemctl --user restart pulseaudio || systemctl --user restart pipewire-pulse
systemctl --user restart wireplumber
pactl info
flatpak run tv.kodi.Kodi --audio-backend=pipewire &
--audio-backend=pipewire
it uses the native interface, with --audio-backend=pulseaudio
it uses pipewire-pulse. Both times the audio goes through PipeWire, the original PulseAudio isn't involved anymore.--audio-backend=pipewire
you technically don't have to have pipewire-pulse running or even installed. But most other software doesn't know how to speak to PipeWire the native way so having pipewire-pulse running is definitely recommended for a general purpose system.
(2024-04-28, 02:05)Neo1973 Wrote: Happy to here that it works for you . Though I want to clear up a misunderstanding regarding pipewire-pulse: There are different ways to send audio data to PipeWire, the two you are confronted with are the native interface and the PulseAudio compatibility layer (pipewire-pulse). Both are available at the same time. When you launch Kodi with--audio-backend=pipewire
it uses the native interface, with--audio-backend=pulseaudio
it uses pipewire-pulse. Both times the audio goes through PipeWire, the original PulseAudio isn't involved anymore.
So when you use Kodi with--audio-backend=pipewire
you technically don't have to have pipewire-pulse running or even installed. But most other software doesn't know how to speak to PipeWire the native way so having pipewire-pulse running is definitely recommended for a general purpose system.
--audio-backend=pulseaudio
ony when pulseaudio was installed and pipewire-pulse wasn't.--audio-backend=pulseaudio
doesn't work anymore as far as SPDIF passthrough is concerned and I don't want to live without it. Misconfiguration issue possibly, but that's the way my system actualy is. Got a startup script to that effect. #!/bin/bash
systemctl --user restart pipewire
sleep 2s
systemctl --user restart pulseaudio
if [ $? -eq 5 ]; then
audio_backend="pipewire"
systemctl --user restart pipewire-pulse
else
audio_backend="pulseaudio"
fi
sleep 2s
systemctl --user restart wireplumber
sleep 2s
# Copy the backup configuration
cp ~/Kodi\ Backups/${audio_backend}/guisettings.xml ~/.var/app/tv.kodi.Kodi/data/userdata/
# Run Kodi with the determined audio backend
flatpak run tv.kodi.Kodi --audio-backend=$audio_backend &
Quote:With the latest Flatpak update they have removed Pipewire permission again and my setup is once again broken. This is driving me nuts...
Quote: Commit: 1121f35831a650c21f833dfa79d2544e9770ebb222be032cab858aa32f9cf95d
Parent: 54a88d5dd9f7f477144a2ab9aeee4e161eae88326cc36a67c024f0f435e3d256
Subject: Revert "Add PipeWire support" (ebb2bdeb)
Date: 2024-05-11 00:13:24 +0000
Quote:To get it working, you are checking out a specific version of kodi flatpack, then running with pipewire-pulseaudio installed and adding `--audio-backend=pulseaudio` paramater?
(2024-05-15, 22:42)LeliaBurke Wrote:Quote:To get it working, you are checking out a specific version of kodi flatpack, then running with pipewire-pulseaudio installed and adding `--audio-backend=pulseaudio` paramater?
1 - Pulseaudio - If you use pulseaudio, no need to get a specific version of kodi flatpak. It's supported in all commits of Kodi 20 and 21. Kodi 20 does not support the '--audio-backend' parameter though. For fedora 40, you install the pulseaudio package and not pipewire-pulse. They're conflicting each other.
2- Pipewire - OTOH, if you can't get pulseaudio to work, and it might be linux distro specific, then you may need to rely on pipewire. There you'll need a Kodi version prior to May 11th because pipewire support was removed with that specific update. And use `--audio-backend=pipewire` in that case. For fedora 40, you install the pipewire-pulse package instead of pulseaudio.
3 - ALSA - If you're lucky enough, and I'm not, to get ALSA passthrough working, then no need to specify either pulseaudio nor pipewire as audio backend.
Quote:2. Is not exactly true, they havn't removed PipeWire support but just the Flatpak Permission to use it. So versions after May 11th can be used with startup parameter "--filesystem=xdg-run/pipewire-0".