You are not logged in.
Hello
I'm having an issue with streamed video in browsers (chrome and firefox) and in mpv player where the sound continues properly but the video itself buffers and freezes. It was fine before shutting my system down last night and today it is not, so im confused.
Im using Nvidia Geforce RTX 2060. using latest linux-zen kernel 5.18.9-zen1-1-zen, latest nvidia-dkms 515.57, nvidia-utils 515.57-1, nvidia-settings packages.
My searches led me to the wiki to look at hardware acceleration.
vainfo command gives me:
vaInitialize failed with error code -1 (unknown libva error),exit vdpauinfo command gives me:
display: :0.0 screen: 0
API version: 1
Information string: NVIDIA VDPAU Driver Shared Library 515.57 Wed Jun 22 22:28:16 UTC 2022
Video surface:
name width height types
-------------------------------------------
420 8192 8192 NV12 YV12
422 8192 8192 UYVY YUYV
444 8192 8192 NV24 YV24
420_16 8192 8192 P010 P016
422_16 8192 8192 UYVY YUYV
444_16 8192 8192 Y_U_V_444_16
Decoder capabilities:
name level macbs width height
----------------------------------------------------
MPEG1 0 65536 4096 4096
MPEG2_SIMPLE 3 65536 4096 4096
MPEG2_MAIN 3 65536 4096 4096
H264_BASELINE 51 65536 4096 4096
H264_MAIN 51 65536 4096 4096
H264_HIGH 51 65536 4096 4096
VC1_SIMPLE 1 8190 2048 2048
VC1_MAIN 2 8190 2048 2048
VC1_ADVANCED 4 8190 2048 2048
MPEG4_PART2_SP 3 8192 2048 2048
MPEG4_PART2_ASP 5 8192 2048 2048
DIVX4_QMOBILE 0 8192 2048 2048
DIVX4_MOBILE 0 8192 2048 2048
DIVX4_HOME_THEATER 0 8192 2048 2048
DIVX4_HD_1080P 0 8192 2048 2048
DIVX5_QMOBILE 0 8192 2048 2048
DIVX5_MOBILE 0 8192 2048 2048
DIVX5_HOME_THEATER 0 8192 2048 2048
DIVX5_HD_1080P 0 8192 2048 2048
H264_CONSTRAINED_BASELINE 51 65536 4096 4096
H264_EXTENDED 51 65536 4096 4096
H264_PROGRESSIVE_HIGH 51 65536 4096 4096
H264_CONSTRAINED_HIGH 51 65536 4096 4096
H264_HIGH_444_PREDICTIVE 51 65536 4096 4096
VP9_PROFILE_0 1 262144 8192 8192
VP9_PROFILE_1 --- not supported ---
VP9_PROFILE_2 1 262144 8192 8192
VP9_PROFILE_3 --- not supported ---
HEVC_MAIN 153 262144 8192 8192
HEVC_MAIN_10 153 262144 8192 8192
HEVC_MAIN_STILL --- not supported ---
HEVC_MAIN_12 153 262144 8192 8192
HEVC_MAIN_444 153 262144 8192 8192
HEVC_MAIN_444_10 153 262144 8192 8192
HEVC_MAIN_444_12 153 262144 8192 8192
Output surface:
name width height nat types
----------------------------------------------------
B8G8R8A8 32768 32768 y Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8
R10G10B10A2 32768 32768 y Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8
Bitmap surface:
name width height
------------------------------
B8G8R8A8 32768 32768
R8G8B8A8 32768 32768
R10G10B10A2 32768 32768
B10G10R10A2 32768 32768
A8 32768 32768
Video mixer:
feature name sup
------------------------------------
DEINTERLACE_TEMPORAL y
DEINTERLACE_TEMPORAL_SPATIAL y
INVERSE_TELECINE y
NOISE_REDUCTION y
SHARPNESS y
LUMA_KEY y
HIGH QUALITY SCALING - L1 y
HIGH QUALITY SCALING - L2 -
HIGH QUALITY SCALING - L3 -
HIGH QUALITY SCALING - L4 -
HIGH QUALITY SCALING - L5 -
HIGH QUALITY SCALING - L6 -
HIGH QUALITY SCALING - L7 -
HIGH QUALITY SCALING - L8 -
HIGH QUALITY SCALING - L9 -
parameter name sup min max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH y 1 8192
VIDEO_SURFACE_HEIGHT y 1 8192
CHROMA_TYPE y
LAYERS y 0 4
attribute name sup min max
-----------------------------------------------------
BACKGROUND_COLOR y
CSC_MATRIX y
NOISE_REDUCTION_LEVEL y 0.00 1.00
SHARPNESS_LEVEL y -1.00 1.00
LUMA_KEY_MIN_LUMA y
LUMA_KEY_MAX_LUMA y I followed the instructions on the wiki and set the environment:
export LIBVA_DRIVER_NAME=vdpau and
export VDPAU_DRIVER=nvidia I checked the log file:
grep -iE 'vdpau | dri_driver' /var/log/Xorg.0.log
[ 2338.920] (II) NVIDIA(0): [DRI2] VDPAU driver: nvidia I have MODULES=( ... nvidia nvidia_modeset nvidia_drm) in my /etc/mkinitpio.conf (just for info)
I installed this package which did produce some information from vainfo:
vainfo
vainfo: VA-API version: 1.15 (libva 2.15.0)
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.4
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG4Simple : VAEntrypointVLD
VAProfileMPEG4AdvancedSimple : VAEntrypointVLD
<unknown profile> : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264High : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLDI have not needed this package before as this problem literally started today but i tried it so see if it might give some useful information.
I didnt change any system files yesterday. All my packages are up-to-date.
I dont like to trouble people here but would very much appreciate any advice about what I can try next. I have tried to include as much relevent information as I can. I'm sorry if i have missed something.
Best wishes, jimmy
Edit: for completeness I also removed the ~/.local/state/wireplumber directory -- in addition to clearing xfce4 saved sessions -- as it also contained the output sinks i'd made whilst playing around with carla which turns out was the reason video was buffering as I'd messed up my pipewire audio.
Last edited by jimmyg (2022-07-10 14:50:16)
Offline
It was fine before shutting my system down last night and today it is not, so im confused.
Did the reboot realize a kernel update?
Does "mpv -ao alsa -vo vdpau someporn.mp4" exhibit the problem?
(The browser situation is far more fucked up than this and there's a good chance that you didn't play HW accelerated video at all so far, see the eternal thread about hw accelerated chromium video on this forum)
Online
Hi, no kernel update. I upgraded the kernel on 4 July when i did a system upgrade. I ran mpv as you suggested and it produces the same output which just freezes.
Im wondering if downgrading my nvidia packages 'might' be worth trying as im at a loss
Offline
Did you play a local file or a youtube video? Does mpv yell any errors at you?
If you're autostarting X11 (or a DM - also make sure it's X11 and you didn't silently switch to wayland), try to restart X11 after the boot (there're 3-4 threads of the last week where the nvidia driver "misbehaves" right after boot)
Online
I downloaded a file to play locally to test it and i just tried a different one too. The only complaint it gave was about the options used on the command line:
. vo/vdpau] Warning: this compatibility VO is low quality and may have issues with OSD, scaling, screenshots and more.
[vo/vdpau] vo=gpu is the preferred choice in any case and includes VDPAU support via hwdec=vdpau or vdpau-copy.
Using hardware decoding (vdpau).
AO: [alsa] 48000Hz stereo 2ch float
VO: [vdpau] 3840x2160 vdpau[yuv420p]
[vo/vdpau] Compositing window manager detected. Assuming timing info is inaccurate.
AV: 00:01:15 / 00:01:45 (72%) A-V: 0.000With the command you suggested it was just a black screen. So i then just used mpv without options, using the options in my mpv.conf file which are simply vo=gpu hwdec=auto and this did produce the frozen video again.
I dont currently use a DM and just use startx to get into my xfce DE
Offline
[vo/vdpau] Compositing window manager detected. Assuming timing info is inaccurate.
Disable the compositor, https://wiki.archlinux.org/title/Xfwm#Composite_manager
I dont currently use a DM and just use startx to get into my xfce DE
Automatically? Otherwise just wait a minute before running startx and see whether that has any impact.
Online
I have tried a few more things with no success sadly. I checked for improvement after each step.
I disabled the compositor as you suggested.
I downgraded my nvidia packages to the previous version.
I did system upgrade and which restored the nvidia driver package to the most recent and incidentally it upgraded the the kernel too as a new package for the kernel must have been made available this afternoon.
So I am completely at a loss. ![]()
Offline
Did you try to delay the X11 start?
Also try "mpv --ao=null"
Online
yh i delayed it. tried your mpv command too. I appreciate you trying to help me ![]()
just dont get why turning the machine off and the on a few hours later means its broken lol. perhaps its just a nvidia thing.
Offline
so i tried vlc and another browser too so its not specific to chrome and firefox either. Any media player or browser that i use to watch streamed content just freezes. I tried mpv youtube video with hwdec=no option too and it still freezes. Its so weird.
Im wondering if there could be a different reason other than hardware acceleration related issues which is just what thought it would be.
Do you know if there could be something else I might look into?
Offline
The symptoms would fit https://archlinux.org/news/undone-repla … replumber/ but that's supposed to be resolved and -ao=null should™ also take care of it and it doesn't fit "I just rebooted" either.
Please post a complete system journal (sudo journaclt -b | curl -F 'file=@-' 0x0.st) - maybe something sticks out…
Online
Ok you beat me too it. I just came back to post to you as I retraced my steps i decided to try something.
Yesterday evening, the only thing i did differently than previous days was i was playing around with carla patchbay and jack. It didnt occur to me earlier to mention it as I couldnt see how that would affect my video issues. However, just now i thought i would try just removing all pipewire packages and now video plays correctly. In view of what you suggested just now it seems this is the problem.
As pipewire was absolutely fine until i was messing around with carla last night, Im guessing its ok to just reinstall it? or would you suggest using pulseaudio instead?
jimmy
edited: a typo
Last edited by jimmyg (2022-07-09 21:35:31)
Offline
Pipewire is supposed to be fine now - I assume you installed jack2 instead of pipewire-jack?
Edit: also typo…
Last edited by seth (2022-07-09 22:17:04)
Online
Ok so I reinstalled pipewire pipewire-alsa pipewire-pulse which pulled in wireplumber automatically, as expected. this broke video again. Im unclear about the steps i need to take to get pipewire installed again without affecting my video streaming.
edit just to answer your question as i was typing a reply and didnt see it: no i did install pipewire-jack
Last edited by jimmyg (2022-07-09 22:26:19)
Offline
i was playing around with carla patchbay and jack
?
Online
i was trying something i was reading on the wiki . I didnt change my pipewire packages at all, which have always been pipewire wireplumber pipewire-pulse pipewire-jack pipewire-alsa since i installed the system.
Offline
In that case make sure to stop & remove those user services.
Online
I did do that. i removed all pipewire packages above. I then tried to reinstall them as they really should be ok seeing as i've been using them for weeks without issue but it just breaks video again so im stuck with no audio right now as im not sure what i need to install to fix it
Offline
ok so i just went ahead and reinstall the packages pipewire wireplumber pipewire-pulse pipewire-alsa pipewire-jack. The video buffers untill i open pavucontrol and change a profile on the configuration tab and it immediately makes the video play normally.
so at least i know how to make the video play properly again but still not sure how to sort pavucontrol, do you know why this might be?
Offline
Did you deleted all configuration files you made for pipewire?
https://wiki.archlinux.org/title/PipeWire#Configuration
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
hi yes i had checked that but the system config was removed when i uninstalled them and reinstalled them and i had not yet made any local configs.
However, it appears the problem was -- at least i think -- that xfce4 session saved settings that were causing the issues. I cleared the saved sessions and it appears to be good again. So it is solved!
Something simple in the end but I actually learned a bit from the process. Thanks again for taking the time to help. ![]()
Offline
Great, please mark the thread as solved by adding [SOLVED] at the start of its title.
Last edited by kokoko3k (2022-07-10 12:34:31)
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline