Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choppy sound with PipeWire #25060

Open
1 of 7 tasks
Martii opened this issue Apr 24, 2024 · 5 comments
Open
1 of 7 tasks

Choppy sound with PipeWire #25060

Martii opened this issue Apr 24, 2024 · 5 comments
Labels
Component: Audio Platform: Linux Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it v21 Omega

Comments

@Martii
Copy link

Martii commented Apr 24, 2024

Bug report

Describe the bug

Here is a clear and concise description of what the problem is:

Choppy sound in VirutualBox VM of Kubuntu 24.04.beta and Kubuntu 24.04 release (see below STR) with PipeWire.

Thanks for the look and hear.

Re: @neo1973

So if you could open a ticket describing the issues with 24.04 and include a debug log, it would help us to flesh out the remaining issues 🙂

Expected Behavior

Here is a clear and concise description of what was expected to happen:

Smoother sound. See video attachment below named "with PA".

Actual Behavior

Choppy sound. See/hear video attachment below named with "with PW"

Possible Fix

Not going to speculate other than please remember this VM is running a beta OS distro.

More of a work around here in the short term...

flatpak run tv.kodi.Kodi --audio-backend=pulseaudio

To Reproduce

Steps to reproduce the behavior:

Initial testing for beta of Kubuntu 24.04.

HOST

$ apt-cache policy virtualbox-7.0
virtualbox-7.0:
  Installed: 7.0.16-162802~Ubuntu~jammy
  Candidate: 7.0.16-162802~Ubuntu~jammy
  Version table:
 *** 7.0.16-162802~Ubuntu~jammy 500
        500 https://download.virtualbox.org/virtualbox/debian jammy/contrib amd64 Packages
        100 /var/lib/dpkg/status
$ # (Click arrow to expand result)

$ # Show VM properties
$ VBoxManage showvminfo "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx}"

Name:                        Kubuntu 24.04.beta
Encryption:                  disabled
Groups:                      /
Guest OS:                    Ubuntu (64-bit)
UUID:                        xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
Config file:                 ~/VM/Kubuntu 24.04.beta/Kubuntu 24.04.beta.vbox
Snapshot folder:             ~/VM/Kubuntu 24.04.beta/Snapshots
Log folder:                  ~/VM/Kubuntu 24.04.beta/Logs
Hardware UUID:               xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
Memory size:                 32768MB
Page Fusion:                 disabled
VRAM size:                   128MB
CPU exec cap:                100%
HPET:                        disabled
CPUProfile:                  host
Chipset:                     piix3
Firmware:                    BIOS
Number of CPUs:              8
PAE:                         disabled
Long Mode:                   enabled
Triple Fault Reset:          disabled
APIC:                        enabled
X2APIC:                      enabled
Nested VT-x/AMD-V:           disabled
CPUID Portability Level:     0
CPUID overrides:             None
Boot menu mode:              message and menu
Boot Device 1:               DVD
Boot Device 2:               HardDisk
Boot Device 3:               Not Assigned
Boot Device 4:               Not Assigned
ACPI:                        enabled
IOAPIC:                      enabled
BIOS APIC mode:              APIC
Time offset:                 0ms
BIOS NVRAM File:             ~/VM/Kubuntu 24.04.beta/Kubuntu 24.04.beta.nvram
RTC:                         UTC
Hardware Virtualization:     enabled
Nested Paging:               enabled
Large Pages:                 enabled
VT-x VPID:                   enabled
VT-x Unrestricted Exec.:     enabled
AMD-V Virt. Vmsave/Vmload:   enabled
IOMMU:                       None
Paravirt. Provider:          Default
Effective Paravirt. Prov.:   KVM
State:                       running (since 2024-04-24T15:20:32.513000000)
Graphics Controller:         VMSVGA
Monitor count:               1
3D Acceleration:             disabled
2D Video Acceleration:       disabled
Teleporter Enabled:          disabled
Teleporter Port:             0
Teleporter Address:
Teleporter Password:
Tracing Enabled:             disabled
Allow Tracing to Access VM:  disabled
Tracing Configuration:
Autostart Enabled:           disabled
Autostart Delay:             0
Default Frontend:
VM process priority:         default
Storage Controllers:
#0: 'SATA', Type: IntelAhci, Instance: 0, Ports: 2 (max 30), Bootable
  Port 0, Unit 0: UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    Location: "~/VM/Kubuntu 24.04.beta/Snapshots/{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.vdi"
  Port 1, Unit 0: Empty
NIC 1:                       MAC: 0800277EF2E8, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 1 Settings:  MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 2:                       disabled
NIC 3:                       disabled
NIC 4:                       disabled
NIC 5:                       disabled
NIC 6:                       disabled
NIC 7:                       disabled
NIC 8:                       disabled
Pointing Device:             USB Tablet
Keyboard Device:             PS/2 Keyboard
UART 1:                      disabled
UART 2:                      disabled
UART 3:                      disabled
UART 4:                      disabled
LPT 1:                       disabled
LPT 2:                       disabled
Audio:                       enabled (Driver: Default, Controller: AC97, Codec: AD1980)
Audio playback:              enabled
Audio capture:               disabled
Clipboard Mode:              Bidirectional
Drag and drop Mode:          Bidirectional
Session name:                GUI/Qt
Video mode:                  1920x1080x32 at 0,0 enabled
VRDE:                        disabled
OHCI USB:                    disabled
EHCI USB:                    disabled
xHCI USB:                    enabled
USB Device Filters:          <none>
Available remote USB devices: <none>
Currently attached USB devices: <none>
Bandwidth groups:            <none>
Shared folders:

Name: 'Kubuntu_24.04.x', Host path: '~/VMShare/Kubuntu 24.04.x' (machine mapping), writable, auto-mount, mount-point: '/mnt/vmshare'

VRDE Connection:             not active
Clients so far:              0
Recording enabled:           no
Recording screens:           1
 Screen 0:
    Enabled:                 yes
    ID:                      0
    Record video:            yes
    Destination:             File
    File:                    ~/VM/Kubuntu 24.04.beta/Kubuntu 24.04.beta-screen0.webm
    Options:                 vc_enabled=true,ac_enabled=false,ac_profile=med
    Video dimensions:        1024x768
    Video rate:              512kbps
    Video FPS:               25fps
* Snapshots:
   Name: Test stop (UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) *
* Guest:
Configured memory balloon:   0MB
OS type:                     Linux26_64
Additions run level:         1
Additions version:           7.0.16 r162802
Guest Facilities:
Facility "VirtualBox Base Driver": active/running (last update: 2024/04/24 15:20:50 UTC)
Facility "VirtualBox System Service": terminated (last update: 2024/04/24 16:00:58 UTC)
Facility "Seamless Mode": active/running (last update: 2024/04/24 15:25:57 UTC)
Facility "Graphics Mode": active/running (last update: 2024/04/24 15:20:57 UTC)

GUEST

$ uname -a
Linux kubuntu24 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04 LTS
Release:        24.04
Codename:       noble

$ VBoxService --version
7.0.16r162802

$ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 449
Tile Size: 65472
User Name: user
Host Name: kubuntu24
Server Name: PulseAudio (on PipeWire 1.0.5)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_05.0.analog-stereo
Default Source: alsa_output.pci-0000_00_05.0.analog-stereo.monitor
Cookie: xxxx:xxxx

$ apt-cache policy pulseaudio
pulseaudio:
  Installed: (none)
  Candidate: 1:16.1+dfsg1-2ubuntu10
  Version table:
     1:16.1+dfsg1-2ubuntu10 500
        500 http://us.archive.ubuntu.com/ubuntu noble/universe amd64 Packages

$ apt-cache policy pipewire
pipewire:
  Installed: 1.0.5-1
  Candidate: 1.0.5-1
  Version table:
 *** 1.0.5-1 500
        500 http://us.archive.ubuntu.com/ubuntu noble/main amd64 Packages
        100 /var/lib/dpkg/status

$ apt-cache policy pipewire-pulse
pipewire-pulse:
  Installed: 1.0.5-1
  Candidate: 1.0.5-1
  Version table:
 *** 1.0.5-1 500
        500 http://us.archive.ubuntu.com/ubuntu noble/main amd64 Packages
        100 /var/lib/dpkg/status

$ systemctl --user status pipewire
● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
     Active: active (running) since Wed 2024-04-24 11:21:13 EDT; 1h 44min ago
TriggeredBy: ● pipewire.socket


$ inxi -A
Audio:
  Device-1: Intel 82801AA AC97 Audio driver: snd_intel8x0
  API: ALSA v: k6.8.0-31-generic status: kernel-api
  Server-1: PipeWire v: 1.0.5 status: active

$ flatpak info tv.kodi.Kodi

Kodi - Ultimate entertainment center

          ID: tv.kodi.Kodi
         Ref: app/tv.kodi.Kodi/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 21.0-Omega
     License: GPL-2.0-only GPL-2.0-or-later LGPL-2.1-or-later MIT BSD-3-Clause BSD-4-Clause
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 508.2 MB
     Runtime: org.freedesktop.Platform/x86_64/22.08
         Sdk: org.freedesktop.Sdk/x86_64/22.08

      Commit: 12f232340d35749eb4513802c12614126cd0b0e631bf809df414063c1c3e332b
      Parent: c66a791ac482c3b0c257188f2b3ccf796082176e0822192ec9132f9b78044dd0
     Subject: Update hwdata (af8e5a0b)
        Date: 2024-04-14 16:49:35 +0000
$ flatpak run tv.kodi.Kodi
libEGL warning: DRI2: failed to authenticate
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
libva info: VA-API version 1.18.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
TagLib: ID3v2.4 no longer supports the frame type TDAT.  It will be discarded from the tag.
TagLib: ID3v2.4 no longer supports the frame type TDAT.  It will be discarded from the tag.

$ # See/hear video with PipeWire (default)
$ flatpak run tv.kodi.Kodi --audio-backend=pulseaudio
libEGL warning: DRI2: failed to authenticate
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
libva info: VA-API version 1.18.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
TagLib: ID3v2.4 no longer supports the frame type TDAT.  It will be discarded from the tag.
TagLib: ID3v2.4 no longer supports the frame type TDAT.  It will be discarded from the tag.

$ # See/hear video with PulseAudio (forced)

Debuglog

The debuglog can be found here:

  PipeWire PulseAudio
beta OS debug ~/.var/app/tv.kodi.Kodi/data/temp/kodi.log ~/.var/app/tv.kodi.Kodi/data/temp/kodi.log

Screenshots

Here are some links or screenshots to help explain the problem:

with.PW.mp4

... SHA256: 459ec6c08ed2bcdc064545763fbd4a9ed619aee160ed13235ed212db74bc39ee

with.PA.mp4

... SHA256: 0861ead6e6d1a7cc0437dd4f67978fd8bde2eeaa3231e08ec907b13d70c053dd

  • Required to put this in for Free License with Attribution:

Music by: bensound.com
(My) License code: QZBN0ITUGFMR4UKY

Original Audio Source: https://www.bensound.com/royalty-free-music/track/dreams-chill-out

Additional context or screenshots (if appropriate)

Here is some additional context or explanation that might help:

References reported by others

Your Environment

Used Operating system:

  • Android

  • iOS

  • tvOS

  • Linux

  • macOS

  • Windows

  • Windows UWP

  • Operating system version/name: Kubuntu (see above Steps To Reproduce (STR))

  • Kodi version: Flatpak (see above STR)

note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.
Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

@xbmc-gh-bot xbmc-gh-bot bot added the Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it label Apr 24, 2024
@Martii
Copy link
Author

Martii commented Apr 27, 2024

To Reproduce

Steps to reproduce the behavior:

Additional GUEST for release of Kubuntu 24.04... same issue.

HOST

$ # (Click above arrow to expand result)

$ apt-cache policy virtualbox-7.0

virtualbox-7.0:
  Installed: 7.0.16-162802~Ubuntu~jammy
  Candidate: 7.0.16-162802~Ubuntu~jammy
  Version table:
 *** 7.0.16-162802~Ubuntu~jammy 500
        500 https://download.virtualbox.org/virtualbox/debian jammy/contrib amd64 Packages
        100 /var/lib/dpkg/status

$ # (Click above arrow to expand result)

$ # Show VM properties
$ VBoxManage showvminfo "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx}"

Name:                        Kubuntu 24.04
Encryption:                  disabled
Groups:                      /
Guest OS:                    Ubuntu (64-bit)
UUID:                        xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
Config file:                 ~/VM/Kubuntu 24.04/Kubuntu 24.04.vbox
Snapshot folder:             ~/VM/Kubuntu 24.04/Snapshots
Log folder:                  ~/VM/Kubuntu 24.04/Logs
Hardware UUID:               xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
Memory size:                 32768MB
Page Fusion:                 disabled
VRAM size:                   128MB
CPU exec cap:                100%
HPET:                        disabled
CPUProfile:                  host
Chipset:                     piix3
Firmware:                    BIOS
Number of CPUs:              8
PAE:                         disabled
Long Mode:                   enabled
Triple Fault Reset:          disabled
APIC:                        enabled
X2APIC:                      enabled
Nested VT-x/AMD-V:           disabled
CPUID Portability Level:     0
CPUID overrides:             None
Boot menu mode:              message and menu
Boot Device 1:               DVD
Boot Device 2:               HardDisk
Boot Device 3:               Not Assigned
Boot Device 4:               Not Assigned
ACPI:                        enabled
IOAPIC:                      enabled
BIOS APIC mode:              APIC
Time offset:                 0ms
BIOS NVRAM File:             ~/VM/Kubuntu 24.04/Kubuntu 24.04.nvram
RTC:                         UTC
Hardware Virtualization:     enabled
Nested Paging:               enabled
Large Pages:                 enabled
VT-x VPID:                   enabled
VT-x Unrestricted Exec.:     enabled
AMD-V Virt. Vmsave/Vmload:   enabled
IOMMU:                       None
Paravirt. Provider:          Default
Effective Paravirt. Prov.:   KVM
State:                       running (since 2024-04-27T02:38:33.525000000)
Graphics Controller:         VMSVGA
Monitor count:               1
3D Acceleration:             disabled
2D Video Acceleration:       disabled
Teleporter Enabled:          disabled
Teleporter Port:             0
Teleporter Address:
Teleporter Password:
Tracing Enabled:             disabled
Allow Tracing to Access VM:  disabled
Tracing Configuration:
Autostart Enabled:           disabled
Autostart Delay:             0
Default Frontend:
VM process priority:         default
Storage Controllers:
#0: 'SATA', Type: IntelAhci, Instance: 0, Ports: 2 (max 30), Bootable
  Port 0, Unit 0: UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    Location: "~/VM/Kubuntu 24.04/Snapshots/{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.vdi"
  Port 1, Unit 0: Empty
NIC 1:                       MAC: 0800270264D3, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 1 Settings:  MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 2:                       disabled
NIC 3:                       disabled
NIC 4:                       disabled
NIC 5:                       disabled
NIC 6:                       disabled
NIC 7:                       disabled
NIC 8:                       disabled
Pointing Device:             USB Tablet
Keyboard Device:             PS/2 Keyboard
UART 1:                      disabled
UART 2:                      disabled
UART 3:                      disabled
UART 4:                      disabled
LPT 1:                       disabled
LPT 2:                       disabled
Audio:                       enabled (Driver: Default, Controller: AC97, Codec: AD1980)
Audio playback:              enabled
Audio capture:               disabled
Clipboard Mode:              Bidirectional
Drag and drop Mode:          Bidirectional
Session name:                GUI/Qt
Video mode:                  1920x1080x32 at 0,0 enabled
VRDE:                        disabled
OHCI USB:                    disabled
EHCI USB:                    disabled
xHCI USB:                    enabled
USB Device Filters:          <none>
Available remote USB devices: <none>
Currently attached USB devices: <none>
Bandwidth groups:            <none>
Shared folders:

Name: 'Kubuntu_24.04.x', Host path: '~/VMShare/Kubuntu 24.04.x' (machine mapping), writable, auto-mount, mount-point: '/mnt/vmshare'

VRDE Connection:             not active
Clients so far:              0
Recording enabled:           no
Recording screens:           1
 Screen 0:
    Enabled:                 yes
    ID:                      0
    Record video:            yes
    Destination:             File
    File:                    ~/VM/Kubuntu 24.04/Kubuntu 24.04-screen0.webm
    Options:                 vc_enabled=true,ac_enabled=false,ac_profile=med
    Video dimensions:        1024x768
    Video rate:              512kbps
    Video FPS:               25fps
* Snapshots:
   Name: Init (UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
      Name: VBox GA 7.0.16 (UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) *
* Guest:
Configured memory balloon:   0MB
OS type:                     Linux26_64
Additions run level:         2
Additions version:           7.0.16 r162802
Guest Facilities:
Facility "VirtualBox Base Driver": active/running (last update: 2024/04/27 02:38:50 UTC)
Facility "VirtualBox System Service": active/running (last update: 2024/04/27 02:38:54 UTC)
Facility "Seamless Mode": active/running (last update: 2024/04/27 02:39:09 UTC)
Facility "Graphics Mode": active/running (last update: 2024/04/27 02:38:54 UTC)

GUEST

$ uname -a
Linux kubuntu24 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04 LTS
Release:        24.04
Codename:       noble

$ VBoxService --version
7.0.16r162802
$ # (Click above arrow to expand result)

$ # Show PulseAdudio information
$ pactl info

Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 61
Tile Size: 65472
User Name: user
Host Name: kubuntu24
Server Name: PulseAudio (on PipeWire 1.0.5)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_05.0.analog-stereo
Default Source: alsa_output.pci-0000_00_05.0.analog-stereo.monitor
Cookie: xxxx:xxxx

$ apt-cache policy pulseaudio
pulseaudio:
  Installed: (none)
  Candidate: 1:16.1+dfsg1-2ubuntu10
  Version table:
     1:16.1+dfsg1-2ubuntu10 500
        500 http://us.archive.ubuntu.com/ubuntu noble/universe amd64 Packages

$ apt-cache policy pipewire
pipewire:
  Installed: 1.0.5-1
  Candidate: 1.0.5-1
  Version table:
 *** 1.0.5-1 500
        500 http://us.archive.ubuntu.com/ubuntu noble/main amd64 Packages
        100 /var/lib/dpkg/status

$ apt-cache policy pipewire-pulse
pipewire-pulse:
  Installed: 1.0.5-1
  Candidate: 1.0.5-1
  Version table:
 *** 1.0.5-1 500
        500 http://us.archive.ubuntu.com/ubuntu noble/main amd64 Packages
        100 /var/lib/dpkg/status

$ systemctl --user status pipewire
● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
     Active: active (running) since Fri 2024-04-26 22:39:07 EDT; 3min 13s ago
TriggeredBy: ● pipewire.socket


$ inxi -A
Audio:
  Device-1: Intel 82801AA AC97 Audio driver: snd_intel8x0
  API: ALSA v: k6.8.0-31-generic status: kernel-api
  Server-1: PipeWire v: 1.0.5 status: active
$ # (Click above arrow to expand result)

$ flatpak install tv.kodi.Kodi

Looking for matches…
Required runtime for tv.kodi.Kodi/x86_64/stable (runtime/org.freedesktop.Platform/x86_64/22.08) found in remote flathub
Do you want to install it? [Y/n]: y

tv.kodi.Kodi permissions:
    ipc                      network                  fallback-x11                   pulseaudio
    wayland                  x11                      devices                        bluetooth
    file access [1]          dbus access [2]          system dbus access [3]

    [1] /media, /mnt, /run/lirc, /run/media, xdg-music, xdg-pictures, xdg-run/pipewire-0:ro, xdg-videos
    [2] org.freedesktop.ScreenSaver
    [3] org.freedesktop.Avahi, org.freedesktop.UDisks2, org.freedesktop.UPower, org.freedesktop.login1


        ID                                        Branch           Op      Remote       Download
 1. [✓] org.freedesktop.Platform.GL.default       22.08            i       flathub      148.0 MB / 148.2 MB
 2. [✓] org.freedesktop.Platform.GL.default       22.08-extra      i       flathub       18.5 MB / 148.2 MB
 3. [✓] org.freedesktop.Platform.Locale           22.08            i       flathub       17.8 kB / 333.7 MB
 4. [✓] org.freedesktop.Platform.openh264         2.2.0            i       flathub      886.7 kB / 944.3 kB
 5. [✓] org.gtk.Gtk3theme.Breeze                  3.22             i       flathub      114.4 kB / 192.0 kB
 6. [✓] org.freedesktop.Platform                  22.08            i       flathub      168.1 MB / 214.5 MB
 7. [✓] tv.kodi.Kodi                              stable           i       flathub      177.4 MB / 220.7 MB

Installation complete.

$ flatpak info tv.kodi.Kodi

Kodi - Ultimate entertainment center

          ID: tv.kodi.Kodi
         Ref: app/tv.kodi.Kodi/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 21.0-Omega
     License: GPL-2.0-only GPL-2.0-or-later LGPL-2.1-or-later MIT BSD-3-Clause BSD-4-Clause
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 508.2 MB
     Runtime: org.freedesktop.Platform/x86_64/22.08
         Sdk: org.freedesktop.Sdk/x86_64/22.08

      Commit: 12f232340d35749eb4513802c12614126cd0b0e631bf809df414063c1c3e332b
      Parent: c66a791ac482c3b0c257188f2b3ccf796082176e0822192ec9132f9b78044dd0
     Subject: Update hwdata (af8e5a0b)
        Date: 2024-04-14 16:49:35 +0000
$ # (Click above arrow to expand result)

$ flatpak run tv.kodi.Kodi

libEGL warning: DRI2: failed to authenticate
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
libva info: VA-API version 1.18.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
TagLib: ID3v2.4 no longer supports the frame type TDAT.  It will be discarded from the tag.
TagLib: ID3v2.4 no longer supports the frame type TDAT.  It will be discarded from the tag.

$ # See/hear video with PipeWire (default) ... same as beta OS
$ # (Click above arrow to expand result)

$ flatpak run tv.kodi.Kodi --audio-backend=pulseaudio

libEGL warning: DRI2: failed to authenticate
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
libva info: VA-API version 1.18.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
TagLib: ID3v2.4 no longer supports the frame type TDAT.  It will be discarded from the tag.
TagLib: ID3v2.4 no longer supports the frame type TDAT.  It will be discarded from the tag.

$ # See/hear video with PulseAudio (forced) ... same as beta OS

Debuglog

The debuglog can be found here:

  PipeWire PulseAudio
release OS debug ~/.var/app/tv.kodi.Kodi/data/temp/kodi.log ~/.var/app/tv.kodi.Kodi/data/temp/kodi.log

@neo1973
Copy link
Member

neo1973 commented Apr 27, 2024

Hmm, unfortunately the log doesn't contain anything suspicious to my eyes. Could you check if playing the same file file with mpv --ao=pipewire <file> has issues or not? Also, does journalctl --user --unit pipewire show errors for the duration Kodi is running?

@Martii
Copy link
Author

Martii commented Apr 27, 2024

Could you check if playing the same file file with mpv --ao=pipewire <file> has issues or not?

Did already test in smplayer since it will let me choose all kinds of things (and it uses mpv usually) but here is mpv direct:

$ ## Required to put this in for Free License with Attribution:
$ #   Music by: bensound.com
$ #   (My) License code: QZBN0ITUGFMR4UKY

$ mpv --ao=pipewire 'Benjamin Tissot - Dreams.mp3'
mpv.using.PW.via.Konsole.mp4
  • SHA256: 07d2fa618f5407e3092dec18a5db624f0027ad2a12ce2b8b6b6d600f1045d4a5

... i.e. No issue.

does journalctl --user --unit pipewire show errors for the duration Kodi is running?

Using -f (follow switch during entire Kodi session):

journalctl.PW.follow.entire.Kodi.session.mp4
  • SHA256: 507c7048733303ffd1ae5c864bee38bb1231cce73c43435fd38d5f4bc3b52e6a

... i.e. nothing remarkable during session.

@neo1973
Copy link
Member

neo1973 commented Apr 27, 2024

Great, thanks for testing 🙂

@Martii
Copy link
Author

Martii commented Apr 27, 2024

Interesting... played this a few more times and heard sporadic crackles/choppyness in mpv.using.PW.via.Konsole.mp4 via Firefox (Fx) playback on the HOST... they might have the issue too just less severe.

EDIT Chromium on the HOST seems exempt atm i.e. no issue. Rechecked all my connections as well... all are good.

I put the SHA256 sums up for when video is downloaded. Locally played via smplayer (and mpv in VM) plays with no artifacts.


EDIT Btw the beta GUEST needs to go away soon as I really need the storage space back. The release GUEST will still be around. Unfortunately one critical security component of 24.04 is broken atm so it won't be deployed directly until the distro fixes that or an alternative is found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Audio Platform: Linux Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it v21 Omega
Projects
None yet
Development

No branches or pull requests

2 participants