You are not logged in.

#1 2021-01-30 14:30:31

Irets
Member
Registered: 2019-02-01
Posts: 84

[SOLVED] Suckless' Surf freezes on viewing a Youtube video

Hello,

I'm unable to view Youtube videos through Suckless' Surf web browser because of a freeze which occurs when a video starts playing.
When that occurs, the following text is printed on the terminal from which Surf was launched from:

** (WebKitWebProcess:13580): WARNING **: 15:55:01.456: WebKit wasn't able to find the GL video sink dependencies. Hardware-accelerated zero-copy video rendering can't be enabled without this plugin.

I have gstreamer installed and the following plugins for it:

$ pacman -Qs gst
local/gst-libav 1.18.3-1
    Multimedia graph framework - libav plugin
local/gst-plugins-bad 1.18.3-1
    Multimedia graph framework - bad plugins
local/gst-plugins-bad-libs 1.18.3-1
    Multimedia graph framework - bad
local/gst-plugins-base-libs 1.18.3-1
    Multimedia graph framework - base
local/gst-plugins-good 1.18.3-1
    Multimedia graph framework - good plugins
local/gstreamer 1.18.3-1
    Multimedia graph framework - core
local/lib32-gst-plugins-base-libs 1.18.3-1
    GStreamer Multimedia Framework Base Plugin libraries (32-bit)
local/lib32-gstreamer 1.18.3-1
    GStreamer open-source multimedia framework core library (32-bit)

Output of 'glxinfo -B':

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 8192 MB
    Total available memory: 8192 MB
    Currently available dedicated video memory: 7899 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 1070/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 460.39
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 460.39
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 460.39
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Output of "vainfo":

vainfo: VA-API version: 1.10 (libva 2.10.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            : VAEntrypointVLD

Output of "vdpauinfo":

display: :0   screen: 0
API version: 1
Information string: NVIDIA VDPAU Driver Shared Library  460.39  Thu Jan 21 21:46:12 UTC 2021

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                  --- not supported ---
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                  --- not supported ---
HEVC_MAIN_444_10               --- not supported ---
HEVC_MAIN_444_12               --- not supported ---

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 had a look at https://wiki.archlinux.org/index.php/Ha … ion#NVIDIA and tried installing libvdpau-va-gl and libva-vdpau-driver but there was no difference.

This system is running a custom kernel with nvidia's proprietary drivers. (nvidia-dkms & nvidia-utils)
My kernel's .config file is in the OP of my previous thread.
I haven't made any modifications to Surf's source code after git cloning it.

I'd love to provide more information but I have yet to figure out how to proceed from here or how to make Surf more verbose about the problem.
Though it could be that the answer is right in front of me but I have yet to grasp it.

Any help will be greatly appreciated.

Last edited by Irets (2021-01-30 15:00:52)

Offline

#2 2021-01-30 14:40:42

progandy
Member
Registered: 2012-05-17
Posts: 4,548

Re: [SOLVED] Suckless' Surf freezes on viewing a Youtube video

To fix the first warning, you need the glimagesink I think. You seem to be missing gst-plugins-base which does include it.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2021-01-30 14:49:47

Irets
Member
Registered: 2019-02-01
Posts: 84

Re: [SOLVED] Suckless' Surf freezes on viewing a Youtube video

progandy wrote:

To fix the first warning, you need the glimagesink I think. You seem to be missing gst-plugins-base which does include it.

I was so sure that I had gst-plugins-base installed but instead I had gst-plugins-base-libs.
Installing the said package fixed my issue it seems.

Thank you for the lightning fast response.
I need to read more carefully next time.

Last edited by Irets (2021-01-31 00:52:07)

Offline

Board footer

Powered by FluxBB