You are not logged in.

#1 2023-06-02 10:10:29

Epp
Member
Registered: 2022-07-11
Posts: 101

[SOLVED/webkit2gtk malfunctioning] surf browser (youtube freezes)

Hi,

A light browser seemed nice for my at times loud laptop.

Sadly getting surf at a decent functional level is not light (to me).
I installed a bunch of packages and I hope it was not for nothing.

Although I installed it for light browsing. The fact that youtube.com freezes direct does not impress me positive.

At the moment I am struggling with the git clone from suckless.org. But before this I tried the Aur package.

This post comes close to my problem:
https://bbs.archlinux.org/viewtopic.php?id=263149

But I do have gst-plugins-base installed:

pacman -Qs gst

local/gst-libav 1.22.3-3
    Multimedia graph framework - libav plugin
local/gst-plugins-bad 1.22.3-3
    Multimedia graph framework - bad plugins
local/gst-plugins-bad-libs 1.22.3-3
    Multimedia graph framework - bad
local/gst-plugins-base 1.22.3-3
    Multimedia graph framework - base plugins
local/gst-plugins-base-libs 1.22.3-3
    Multimedia graph framework - base
local/gst-plugins-good 1.22.3-3
    Multimedia graph framework - good plugins
local/gstreamer 1.22.3-3
    Multimedia graph framework - core
local/gstreamer-vaapi 1.22.3-3
    Multimedia graph framework - vaapi plugin
u.nl

vainfo is good
but

gst-inspect-1.0 vaapi
No such element or plugin 'vaapi'

All gstreamer tests are successful for what it's worth:
https://gstreamer.freedesktop.org/docum … language=c

There is also this post, to me a bit like my problem:
https://bbs.archlinux.org/viewtopic.php?id=269665

 GST_DEBUG=4 LANG=en gst-inspect-1.0 vaapi
0:00:00.000033844 545406 0x55d3132064f0 INFO                GST_INIT gst.c:576:init_pre: Initializing GStreamer Core Library version 1.22.3
0:00:00.000041949 545406 0x55d3132064f0 INFO                GST_INIT gst.c:577:init_pre: Using library installed in /usr/lib
0:00:00.000045288 545406 0x55d3132064f0 INFO                GST_INIT gst.c:595:init_pre: Linux mymachine 6.3.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 30 May 2023 13:44:01 +0000 x86_64
0:00:00.000113662 545406 0x55d3132064f0 INFO                GST_INIT gstmessage.c:129:_priv_gst_message_initialize: init messages
0:00:00.000238695 545406 0x55d3132064f0 INFO                GST_INIT gstcontext.c:86:_priv_gst_context_initialize: init contexts
0:00:00.000297348 545406 0x55d3132064f0 INFO      GST_PLUGIN_LOADING gstplugin.c:324:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.000320109 545406 0x55d3132064f0 INFO      GST_PLUGIN_LOADING gstplugin.c:232:gst_plugin_register_static: registered static plugin "staticelements"
0:00:00.000322835 545406 0x55d3132064f0 INFO      GST_PLUGIN_LOADING gstplugin.c:234:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:00.000332463 545406 0x55d3132064f0 INFO            GST_REGISTRY gstregistry.c:1836:ensure_current_registry: reading registry cache: /home/example/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.004869445 545406 0x55d3132064f0 INFO            GST_REGISTRY gstregistrybinary.c:683:priv_gst_registry_binary_read_cache: loaded /home/example/.cache/gstreamer-1.0/registry.x86_64.bin in 0.004528 seconds
0:00:00.004921925 545406 0x55d3132064f0 INFO            GST_REGISTRY gstregistry.c:1703:scan_and_update_registry: Validating plugins from registry cache: /home/example/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.006162199 545406 0x55d3132064f0 INFO            GST_REGISTRY gstregistry.c:1795:scan_and_update_registry: Registry cache has not changed
0:00:00.006166505 545406 0x55d3132064f0 INFO            GST_REGISTRY gstregistry.c:1871:ensure_current_registry: registry reading and updating done
0:00:00.006171346 545406 0x55d3132064f0 INFO                GST_INIT gst.c:805:init_post: GLib runtime version: 2.76.3
0:00:00.006173819 545406 0x55d3132064f0 INFO                GST_INIT gst.c:807:init_post: GLib headers version: 2.76.3
0:00:00.006175344 545406 0x55d3132064f0 INFO                GST_INIT gst.c:809:init_post: initialized GStreamer successfully
No such element or plugin 'vaapi'

Remove (rm) the cache did not change anything.

I placed this text in my xinitrc:

GST_PLUGIN_FEATURE_RANK=nvmpegvideodec:MAX,nvmpeg2videodec:MAX,nvmpeg4videodec:MAX,nvh264sldec:MAX,nvh264dec:MAX,nvjpegdec:MAX,nvh265sldec:MAX,nvh265dec:MAX,nvvp9dec:MAX

With and without export before the string. Also tried to run it from the command line.

What I noticed was that in the post first linked above there are 2 lib32 packages mentioned.

But I don't find pages where is stated that those must be installed. I read on arch pages that you better not go too wild on installing lib32 packages.
Dependencies should be automatically fulfilled. And there are a lot of dependencies for lib32-gstreamer.

Last edited by Epp (2023-06-04 06:53:38)

Offline

#2 2023-06-03 19:24:24

Epp
Member
Registered: 2022-07-11
Posts: 101

Re: [SOLVED/webkit2gtk malfunctioning] surf browser (youtube freezes)

Please let me know if this is an unwanted form of bumping.
I will try to merge the 2 posts then.

2 new things:
1. vimb gives the same problem. Youtube.com can be launched, but vidoes can not be started and the whole page hangs (after 2 seconds). A bit strange I think, with vimb being a more recently updated package and I believe with making use of webkit2gtk 4.1.

2. after installing the packages and trying some things for making surf work I end up with starting arch with 3 st (terminal) screens launched.
I think this started after the install of the tabbed package. I feel quite silly. And I would like to know what the trigger is for this.

Offline

#3 2023-06-03 19:33:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,471
Website

Re: [SOLVED/webkit2gtk malfunctioning] surf browser (youtube freezes)

Epp wrote:

1. vimb gives the same problem.

That's not at all surprising as these are not issues with the browsers themselves but with the web rendering engine - and vimb and surf use the same web renderer.

Epp wrote:

A bit strange I think, with vimb being a more recently updated package and I believe with making use of webkit2gtk 4.1.

More recently updated?  Surf is an aur package - it's updated whenever you last built it.  And they both have the exact same dependency of webkit2gtk.

Epp wrote:

... I end up with starting arch with 3 st (terminal) screens launched.

Are you sure they're `st` and not `xterm`?  This is, however, a completely seperate issue.  If you need help with your graphical session start up, start a new thread, and provide some information on how you have configured and start your session.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2023-06-03 20:08:25

Epp
Member
Registered: 2022-07-11
Posts: 101

Re: [SOLVED/webkit2gtk malfunctioning] surf browser (youtube freezes)

Great yes, and also you are right. Point 2 distracts from the actual problem.
(It was xterm. Did not know I had another terminal than st and tty. With messing with my xinitrc I activated 3 xterm lines by moving an &. These xterm lines are a leftover from an example xinitrc I think.)

Thanks for the clarification.

Trilby wrote:

That's not at all surprising as these are not issues with the browsers themselves but with the web rendering engine - and vimb and surf use the same web renderer.

I think these applications need to keep up with other software. Especially with Arch I think. What I meant was that it looks more up to date to me.
Sorry for the simplistic view.

Offline

#5 2023-06-03 21:00:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,238

Re: [SOLVED/webkit2gtk malfunctioning] surf browser (youtube freezes)

vainfo
mpv --hwdec=vaapi 'https://www.youtube.com/watch?v=v2AC41dglnM'

Online

#6 2023-06-03 21:27:59

Epp
Member
Registered: 2022-07-11
Posts: 101

Re: [SOLVED/webkit2gtk malfunctioning] surf browser (youtube freezes)

vainfo

Trying display: wayland
Trying display: x11
vainfo: VA-API version: 1.18 (libva 2.18.1)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.1.0 ()
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
mpv --hwdec=vaapi 'https://www.youtube.com/watch?v=v2AC41dglnM'

[ytdl_hook] ERROR: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[ytdl_hook] youtube-dl failed: unexpected error occurred
[ytdl_hook] It appears that your youtube-dl version is severely out of date.
Failed to recognize file format.

Exiting... (Errors when loading file)

youtube-dl was not on my computer. I have no experience with youtube-dl and just installed it. There a lot of posts on the internet mentioning such a problem with youtube-dl.
But at this moment it does not work.

Last edited by Epp (2023-06-03 21:28:51)

Offline

#7 2023-06-03 21:33:37

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,238

Online

#8 2023-06-03 21:43:35

Epp
Member
Registered: 2022-07-11
Posts: 101

Re: [SOLVED/webkit2gtk malfunctioning] surf browser (youtube freezes)

Sounds good!

 (+) Video --vid=1 (*) (vp9 2880x2160 25.000fps)
 (+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz)
     Subs  --sid=1 --slang=en-nP7-2PuUl7o 'English - en' (webvtt) (external)
File tags:
 Uploader: acdcVEVO
 Channel_URL: https://www.youtube.com/channel/UCmPuJ2BltKsGE2966jLgCnw
Using hardware decoding (vaapi).
AO: [pulse] 48000Hz stereo 2ch float
VO: [gpu] 2880x2160 vaapi[nv12]

Offline

#9 2023-06-03 21:57:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,238

Re: [SOLVED/webkit2gtk malfunctioning] surf browser (youtube freezes)

If you download the video, can you play it w/ eg. https://archlinux.org/packages/extra/x86_64/parole/

yt-dlp -f22 'https://www.youtube.com/watch?v=v2AC41dglnM'

Online

#10 2023-06-03 22:03:37

Epp
Member
Registered: 2022-07-11
Posts: 101

Re: [SOLVED/webkit2gtk malfunctioning] surf browser (youtube freezes)

yes, Parole player plays the video, without problems.

---

Edit:
I see now that there is a warning in the terminal.

** (parole:2524524): WARNING **: 00:06:05.125: Inhibiting power management failed GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PowerManagement was not provided by any .service files

Last edited by Epp (2023-06-03 22:07:01)

Offline

#11 2023-06-04 05:21:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,238

Re: [SOLVED/webkit2gtk malfunctioning] surf browser (youtube freezes)

The power management inhibitiion isn't relevant.
The good news is that your VAAPI and gstreamer configurations are fine.
The bad news is that this means there's an issue w/ webkit2gtk.
https://bugs.webkit.org/buglist.cgi?bug … ate%20DESC

If you're looking for lightweight ways to watch youtube, see eg. youtube-viewer, you can also try https://yewtu.be/ but I guess it's not the page itself…
Can you play local videos in surf?

Online

#12 2023-06-04 06:50:59

Epp
Member
Registered: 2022-07-11
Posts: 101

Re: [SOLVED/webkit2gtk malfunctioning] surf browser (youtube freezes)

seth wrote:

The bad news is that this means there's an issue w/ webkit2gtk.
https://bugs.webkit.org/buglist.cgi?bug … ate%20DESC

Yeah, there are a lot of YouTube issues. Does not really give hope for the near future.

seth wrote:

Can you play local videos in surf?

Videos do play normal in surf.

Could be that youtube.com is the only real popular website that does not work for me on my computers.
I like the simplicity of https://yewtu.be
But the fact that I can't just follow a big part of search engine links is most likely a showstopper.
I'd better stick to heavy surfing then. Thanks for your help.

Offline

#13 2023-06-04 09:49:19

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,238

Re: [SOLVED/webkit2gtk malfunctioning] surf browser (youtube freezes)

Does yewtu.be work?
Any adblockers at play maybe?

Online

#14 2023-06-04 10:17:20

Epp
Member
Registered: 2022-07-11
Posts: 101

Re: [SOLVED/webkit2gtk malfunctioning] surf browser (youtube freezes)

yewtu.be does not hang, but video is not playing.
I don't know if I was so sleepy this morning that I did not test that.
Excuses.

I don't have extra settings for surf and vimb.
I tried to run surf with different variables for acceleration (from other people's config scripts) and javascript on and off. I did not do anything with adblocking.
Can't remember that I saw any ad though.

---

Edit:

It did work this morning, but I was sleepy. There are no buttons, but spacebar starts and stops video. It is working with surf and vimb.
Excuses again.

Last edited by Epp (2023-06-04 10:43:01)

Offline

#15 2023-06-04 12:16:38

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,471
Website

Re: [SOLVED/webkit2gtk malfunctioning] surf browser (youtube freezes)

FWIW, I've previously tinkered a fair bit with webkit (and am still keeping my eye more on wpe-webkit), and for as long as I can remember, it has always had crippling issues on youtube that are not really video media issues as non-google-owned video websites work just fine.  But the actual youtube site, and several others owned by google, would just never display or work properly on webkit.

It's hard not to entertain conspiracy theories about such things when youtube's help / support just says "use chrome instead".  Google doesn't make webpages, it makes chromepages (and somehow firefox generally manages to come along for the ride).

Last edited by Trilby (2023-06-04 12:18:30)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#16 2023-06-04 15:52:08

Epp
Member
Registered: 2022-07-11
Posts: 101

Re: [SOLVED/webkit2gtk malfunctioning] surf browser (youtube freezes)

Trilby wrote:

It's hard not to entertain conspiracy theories about such things when youtube's help / support just says "use chrome instead".  Google doesn't make webpages, it makes chromepages (and somehow firefox generally manages to come along for the ride).

With Edge being a bit of a flop before it was on chromium, Chrome was the browser to go to for a lot op people.
Just use Chrome is still baked into peoples mind (I think).

I make a bit of a sport out of not googling.
But I think it's just big money that's needed to keep up with Safari for example.
Or a whole lot of smart motivated people.

Till a few months back I had a macbook. The only youtube thing I did not like was the adblocker with Safari.
This motivated me to a chromium browser. But, perhaps there is hope for the future.
Sadly browser choice is a bit limited at this moment.

My conclusion for now is that the best light browser would be a "normal" browser with minimal tab use.

Last edited by Epp (2023-06-04 15:57:59)

Offline

Board footer

Powered by FluxBB