Video playback paused for every few seconds

Youtube videos paused for every few seconds (about 2 seconds).
I tried to download the video then play it with vlc, here’s the log

VLC log
tsingkwai@fedorax ~ 🍬 vlc --verbose=1
VLC media player 3.0.21 Vetinari (revision 3.0.21-0-gdd8bfdbabe8)
[0000557365eb7520] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0000557365f51120] main playlist: playlist is empty
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib64/dri-nonfree/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
[00007f70680027a0] avcodec decoder: Using NVIDIA VDPAU Driver Shared Library  555.58.02  Tue Jun 25 01:07:40 UTC 2024 for hardware decoding
[vp9 @ 0x7f7068c603c0] Failed setup for format vdpau: hwaccel initialisation returned error.
[00007f70680027a0] avcodec decoder error: existing hardware acceleration cannot be reused
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib64/dri-nonfree/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
[0000557365f78000] pipewire audio output warning: starting late
[vp9 @ 0x7f7068c603c0] get_buffer() failed
[vp9 @ 0x7f7068c603c0] thread_get_buffer() failed
[vp9 @ 0x7f7068c62700] get_buffer() failed
[vp9 @ 0x7f7068c62700] thread_get_buffer() failed
vainfo
tsingkwai@fedorax ~ 🍬 vainfo
Trying display: wayland
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib64/dri-nonfree/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.21 (libva 2.21.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 24.2.5 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileNone                   :	VAEntrypointStats
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointFEI
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointFEI
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointFEI
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointFEI
      VAProfileHEVCMain               :	VAEntrypointEncSliceLP
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointEncSliceLP
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointEncSliceLP
      VAProfileVP9Profile1            :	VAEntrypointVLD
      VAProfileVP9Profile1            :	VAEntrypointEncSliceLP
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointEncSliceLP
      VAProfileVP9Profile3            :	VAEntrypointVLD
      VAProfileVP9Profile3            :	VAEntrypointEncSliceLP
      VAProfileHEVCMain12             :	VAEntrypointVLD
      VAProfileHEVCMain12             :	VAEntrypointEncSlice
      VAProfileHEVCMain422_10         :	VAEntrypointVLD
      VAProfileHEVCMain422_10         :	VAEntrypointEncSlice
      VAProfileHEVCMain422_12         :	VAEntrypointVLD
      VAProfileHEVCMain422_12         :	VAEntrypointEncSlice
      VAProfileHEVCMain444            :	VAEntrypointVLD
      VAProfileHEVCMain444            :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         :	VAEntrypointVLD
      VAProfileHEVCMain444_10         :	VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12         :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointVLD
      VAProfileHEVCSccMain            :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10          :	VAEntrypointVLD
      VAProfileHEVCSccMain10          :	VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444         :	VAEntrypointVLD
      VAProfileHEVCSccMain444         :	VAEntrypointEncSliceLP
      VAProfileAV1Profile0            :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :	VAEntrypointEncSliceLP
lspci | grep VGA
tsingkwai@fedorax ~ 🍬 lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Raptor Lake-P [Iris Xe Graphics] (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation AD107M [GeForce RTX 4060 Max-Q / Mobile] (rev a1)
rpm -qa | grep stream
tsingkwai@fedorax ~ 🍬 rpm -qa | grep stream
appstream-1.0.2-2.fc40.x86_64
appstream-data-40-8.fc40.noarch
PackageKit-gstreamer-plugin-1.2.8-5.fc40.x86_64
boost-iostreams-1.83.0-5.fc40.x86_64
pipewire-gstreamer-1.0.7-2.fc40.x86_64
gstreamer1-1.24.6-1.fc40.x86_64
gstreamer1-plugins-base-1.24.6-1.fc40.x86_64
gstreamer1-plugins-good-qt6-1.24.6-1.fc40.x86_64
gstreamer1-plugins-good-1.24.6-1.fc40.x86_64
gstreamer1-plugins-good-qt-1.24.6-1.fc40.x86_64
gstreamer1-plugins-bad-free-libs-1.24.6-1.fc40.x86_64
gstreamer1-plugins-bad-free-1.24.6-1.fc40.x86_64
gstreamer1-plugins-good-gtk-1.24.6-1.fc40.x86_64
gstreamer1-plugin-libav-1.24.6-1.fc40.x86_64
gstreamer1-plugin-openh264-1.24.6-1.fc40.x86_64
gstreamer1-plugins-ugly-free-1.24.6-1.fc40.x86_64
rpm -qa | grep nvidia
tsingkwai@fedorax ~ 🍬 rpm -qa | grep nvidia
xorg-x11-drv-nvidia-cuda-libs-555.58.02-1.fc40.x86_64
nvidia-modprobe-555.58.02-1.fc40.x86_64
xorg-x11-drv-nvidia-libs-555.58.02-1.fc40.x86_64
nvidia-persistenced-555.58.02-1.fc40.x86_64
xorg-x11-drv-nvidia-kmodsrc-555.58.02-1.fc40.x86_64
nvidia-settings-555.58.02-1.fc40.x86_64
xorg-x11-drv-nvidia-power-555.58.02-1.fc40.x86_64
xorg-x11-drv-nvidia-555.58.02-1.fc40.x86_64
akmod-nvidia-555.58.02-1.fc40.x86_64
xorg-x11-drv-nvidia-cuda-555.58.02-1.fc40.x86_64
kmod-nvidia-6.10.3-200.fc40.x86_64-555.58.02-1.fc40.x86_64
nvidia-gpu-firmware-20240811-2.fc40.noarch
kmod-nvidia-6.10.6-200.fc40.x86_64-555.58.02-1.fc40.x86_64

Btw i’m using ffmpeg from rpmfusion instead of ffmpeg-free

*Somehow using i3wm instead of gnome fixed this for no reason
*using Gnome(Xorg) doesn’t solve this issue
*login to root with gnome(wayland), everything works normally

Tho i don’t know why, after disabling a few gnome shell extensions it works normally again

For those who encountered this issue. You may try the following steps

dnf
tsingkwai@fedorax ~ 🍬 dnf history list
ID Command line                                                          Date and time       Action(s) Altered
81 dnf5 install lshw -y                                                  2024-08-23 10:32:31                 1
80 dnf5 install @multimedia @sound-and-video ffmpeg-libs                 2024-08-23 10:13:02                 0
79 dnf5 reinstall gstreamer1-libav                                       2024-08-23 10:12:42                 2
78 dnf5 reinstall ffmpeg                                                 2024-08-23 10:12:32                 2
77 dnf5 install libva-intel-driver libva-intel-hybrid-driver libva-utils 2024-08-23 09:53:17                 3
76 dnf5 install libva-utils                                              2024-08-23 09:45:57                 1
75 dnf5 swap ffmpeg-free ffmpeg --allowerasing                           2024-08-23 09:42:36                12
74 dnf5 swap ffmpeg ffmpeg-free --allowerasing                           2024-08-23 09:42:01                 2
73 dnf5 swap ffmpeg ffmpeg-free --allowerasing                           2024-08-23 09:30:06                12
72 dnf5 remove libva-nvidia-driver                                       2024-08-23 09:27:50                 1
71 dnf5 install i3                                                       2024-08-23 09:12:47                24
70 dnf5 swap ffmpeg-free ffmpeg --allowerasing                           2024-08-23 08:59:37                12
69 dnf5 swap ffmpeg ffmpeg-free --allowerasing                           2024-08-23 08:55:34                12
68 dnf5 install libva-nvidia-driver                                      2024-08-23 08:51:54                 1
67 dnf5 install intel-media-driver                                       2024-08-23 08:51:47                 1
66 dnf5 upgrade -y                                                       2024-08-23 08:49:11               269
  • switching between kernels
  • disable some sus gnome shell extensions
  • Give your system a complete reboot (Exter/Inter power offline)