• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Fix for audio pause bug when using passthrough on Linux

     
    • 0 Vote(s) - 0 Average

    Fix for audio pause bug when using passthrough on Linux

    VladtheImpaler
    Offline

    Junior Member

    Posts: 15
    Threads: 4
    Joined: 2023 Dec
    Reputation: 0
    Country:United States
    #1
    2024-06-12, 05:55 PM
    I've had a long term problem with Jellyfin Media Player on pipewire. When passing AC3 or DTS over spdif and pausing a video, it would cause audio to start looping the last sound played over and over really fast. It was truly annoying.

    It did with every version I tried, the Deb version, the Snap version, the AUR version, the Copr version, building it myself..  It did it on both of my receivers, 1 new Onkyo and 1 old Harmon Kardon. I did it with multiple audio devices, the Soundblaster Z and AE-5 Plus and the Realtek 892 and 1220.

    The fix is to change pipewires period-size and headroom.  I've confirmed the fix works on 3 different PC's.  It's possible lower settings will also work, but I'm leaving them at 1024 and 8192 until I encounter problems. 


    Wireplumber 0.5 and newer

    create:  ~/.config/wireplumber/wireplumber.conf.d/50-alsa-config.conf

    add:

    monitor.alsa.rules = [
      {
        matches = [
          {
            ## Matches all sources.
            node.name = "~alsa_input.*"
          }
          {
            ## Matches all sinks.
            node.name = "~alsa_output.*"
          }
        ]
        actions = {
          update-props = {
            session.suspend-timeout-seconds = 0
            api.alsa.period-size = 1024
            api.alsa.headroom = 8192
            }
        }
      }
    ]


    Wireplumber older than 0.5

    sudo cp -a /usr/share/wireplumber/main.lua.d/50-alsa-config.lua ~/.config/wireplumber/main.lua.d/50-alsa-config.lua

    Scroll to the bottom and change:  (remove -- to uncomment)

          ["api.alsa.period-size"]  = 1024,
          ["api.alsa.headroom"]    = 8192,
          --["api.alsa.disable-mmap"]  = false,
          --["api.alsa.disable-batch"] = false,
          ["session.suspend-timeout-seconds"] = 0
        },



    Reboot or restart wireplumber

    systemctl --user restart wireplumber
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode