You are not logged in.

#1 2022-10-28 22:47:57

xLima19
Member
Registered: 2022-10-28
Posts: 3

[SOLVED] Video stuttering when audio is on, going smoothly without it

Hi everyone, I've been using arch for the last couple of months, broke my installation several times but always recovered with the mighty arch-chroot but now I'm having some kind of problem that I'm not being able to resolve by myself

I've been watching videos with no problem, but the last week I decided to update the system and everything went well, except, now when I play a video, no matter where, the image keeps stuttering to the point that fully stops, but the audio keeps going without problems, if I mute the video, it goes flawlessly, 0 stuttering or frame skips, until I put some kind of volume and starts going crazy again.

Now I discovered that sometimes, if I open easyeffects while the video is playing, it starts to run smoothly, but other times I get a lot of Firefox instances inside easyeffects, and the sound stops working until I close it

I made a nice video showing the problem: https://youtu.be/Mbxi9BUZtyI

I installed the linux-drm-headers and rtkit, reinstalled pipewire and wireplumber, but nothing has changed.


This is the status of wireplumber

systemctl --user status wireplumber

● wireplumber.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
     Active: active (running) since Fri 2022-10-28 22:54:03 CEST; 1h 7min ago
   Main PID: 4045 (wireplumber)
      Tasks: 4 (limit: 18814)
     Memory: 14.1M
        CPU: 15.268s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service
             └─4045 /usr/bin/wireplumber

Oct 28 23:54:36 MSI wireplumber[4045]: Unexpected reply 3 when releasing name org.freedesktop.ReserveDevice1.Audio0
Oct 28 23:54:36 MSI wireplumber[4045]: Unexpected reply 3 when releasing name org.freedesktop.ReserveDevice1.Audio0
Oct 28 23:54:42 MSI wireplumber[4045]: Unexpected reply 3 when releasing name org.freedesktop.ReserveDevice1.Audio0
Oct 28 23:54:42 MSI wireplumber[4045]: Unexpected reply 3 when releasing name org.freedesktop.ReserveDevice1.Audio0
Oct 28 23:54:45 MSI wireplumber[4045]: Unexpected reply 3 when releasing name org.freedesktop.ReserveDevice1.Audio0
Oct 28 23:54:48 MSI wireplumber[4045]: Unexpected reply 3 when releasing name org.freedesktop.ReserveDevice1.Audio0
Oct 28 23:54:55 MSI wireplumber[4045]: Unexpected reply 3 when releasing name org.freedesktop.ReserveDevice1.Audio0
Oct 28 23:54:55 MSI wireplumber[4045]: Unexpected reply 3 when releasing name org.freedesktop.ReserveDevice1.Audio0
Oct 28 23:54:58 MSI wireplumber[4045]: Unexpected reply 3 when releasing name org.freedesktop.ReserveDevice1.Audio0
Oct 28 23:54:58 MSI wireplumber[4045]: Unexpected reply 3 when releasing name org.freedesktop.ReserveDevice1.Audio0

And the status of pipewire

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 2022-10-28 22:54:03 CEST; 1h 7min ago
TriggeredBy: ● pipewire.socket
   Main PID: 4043 (pipewire)
      Tasks: 2 (limit: 18814)
     Memory: 52.4M
        CPU: 39.345s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─4043 /usr/bin/pipewire

Oct 28 22:54:03 MSI systemd[4036]: Started PipeWire Multimedia Service.
Oct 28 22:54:03 MSI pipewire[4043]: mod.rt: Can't find xdg-portal: (null)
Oct 28 22:54:03 MSI pipewire[4043]: mod.rt: found session bus but no portal
Oct 28 23:54:17 MSI pipewire[4043]: pw.node: 0x559cbaeb0020: scheduling non-active node

fuser -v /dev/snd/*

❯ sudo fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  giygas     4043 F.... pipewire
                     giygas     4045 F.... wireplumber
/dev/snd/pcmC0D0p:   giygas     4043 F...m pipewire
/dev/snd/seq:        giygas     4043 F.... pipewire

Any help will be appreciated

Thank you for reading

Last edited by xLima19 (2022-11-07 17:51:03)

Offline

#2 2022-10-30 10:13:11

Miuzore
Member
Registered: 2022-10-14
Posts: 28

Re: [SOLVED] Video stuttering when audio is on, going smoothly without it

What if you play a youtube video using mpv and yt-dlp, do stutters still happen? What if you switch from pipewire to pulseaudio as well, if it is possible, just to see if pipewire is the culprit?

Offline

#3 2022-10-30 14:55:50

xLima19
Member
Registered: 2022-10-28
Posts: 3

Re: [SOLVED] Video stuttering when audio is on, going smoothly without it

Hi, thank you for responding

With mpv I have the exact same problem, as soon as I open easyeffects the stutters goes away and I can watch the video smoothly

I tried switching to pulseaudio, but it's way way worse, programs takes a lot of time to load, rebooting takes like 5 min, and everything is a bit laggy. The video doesn't even play, with sound or without it

Tried removing easyeffects, same problem, so I installed it again, the only temporary solution I'm having is to leave it open when I watch videos, but I do find that... not optimal haha

Offline

#4 2022-10-30 18:24:12

Miuzore
Member
Registered: 2022-10-14
Posts: 28

Re: [SOLVED] Video stuttering when audio is on, going smoothly without it

xLima19 wrote:

I tried switching to pulseaudio, but it's way way worse, programs takes a lot of time to load, rebooting takes like 5 min, and everything is a bit laggy. The video doesn't even play, with sound or without it

That's weird. Could you try running

sudo journalctl --since="10 hours ago" -p 3..1

and see if there were any errors related to pulse? Be sure that the --since option is set to anytime before you installed pulseaudio, in case you're reading this way later.

xLima19 wrote:

Tried removing easyeffects, same problem, so I installed it again, the only temporary solution I'm having is to leave it open when I watch videos, but I do find that... not optimal haha

If it works fine with easyeffects, you can start it in the background by putting

easyeffects --gapplication-service

into .xinitrc (if using startx) or xprofile (if using other display managers), if you haven't already of course, just to avoid the hassle of starting it manually if your use case for easyeffects allows for it.

Anyway, could you try installing helvum, then running it (via helvum command) and seeing if there's anything abnormal going on when playing a video without easyeffects? What about with easyeffects?

Also, can you prove the output of this command?

pacman -Qs pipewire

Offline

#5 2022-10-30 22:13:43

xLima19
Member
Registered: 2022-10-28
Posts: 3

Re: [SOLVED] Video stuttering when audio is on, going smoothly without it

I just did all the pulseaudio install for getting all the logs and came back to pipewire after.

With pulseaudio I can't even open pavucontrol to turn the volume on, the video seems to go ok but I have no sound in the system, and some others problems that you'll see in the logs

For the journal well, I put "1 hour ago" but even there there where more than 11500 entries so I had to trim a bit to paste it here https://www.klgrth.io/paste/grr5q (In the last boot here I went with pipewire and no more weird pulseaudio messages)

I don't see anything weird in helvum, without easyeffects it goes from mpv output to Speaker + Headphones, and with it it goes through EasyEffects sink in the middle

My pacman -Qs pipewire gives

local/easyeffects 6.3.0-1
    Audio Effects for Pipewire applications
local/helvum 0.3.4-1
    GTK patchbay for PipeWire
local/pipewire 1:0.3.59-2
    Low-latency audio/video router and processor
local/pipewire-alsa 1:0.3.59-2
    Low-latency audio/video router and processor - ALSA configuration
local/pipewire-audio 1:0.3.59-2
    Low-latency audio/video router and processor - Audio support
local/pipewire-pulse 1:0.3.59-2
    Low-latency audio/video router and processor - PulseAudio replacement
local/wireplumber 0.4.12-1
    Session / policy manager implementation for PipeWire

Well, if I put easyeffects --gapplication-service in my AwesomeWM start-up it stays in the background and the video playback is good, I think I'll go with it as a solution, because I had enough headaches with this mad

Offline

Board footer

Powered by FluxBB