View previous topic :: View next topic |
Author |
Message |
Renkin42 n00b
Joined: 11 Jan 2024 Posts: 12 Location: McKinleyville, CA
|
Posted: Thu Jan 11, 2024 3:35 am Post subject: Help With Surf Browser Youtube Playback |
|
|
I see from google I'm not the first to have these issues, but no solutions I've tried so far have fixed anything.When I try to play a youtube video on Surf the video will play the first few frames before freezing while audio continues to play smoothly along with the subtitles. Pausing the video or attempting to leave the page simply locks up the browser. I've had a couple other odd crashes, notably when posting to reddit, but I'll adress those after dealing with the elephant in the room. For reference I'm running on a laptop with an Intel i5-8250U and UHD Graphics 620. I'm fairly sure I I activated the appropriate driver modules but it's entirely possible I missed something. Surf is version 2.1-r3 and webkit-gtk is 2.42.3-r410. Hopefully I've just missed a use flag or package.
Here is my make.cobf:
Code: |
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j4 -l4"
ACCEPT_LICENSE="* @FREE @BINARY-REDISTRIBUTABLE"
# NOTE: This stage was built with the bindist Use flag enabled
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8
VIDEO_CARDS="intel i965 iris"
INPUT_DEVICES="synaptics libinput"
LLVM_TARGETS="x86"
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse
sse2 sse3 sse4_1 sse4_2 ssse3"
USE="-gnome -kde dbus X xorg wayland egl gbm gles2 opengl xinerama pulseaudio savedconfig gstreamer ffmpeg pango"
GENTOO_MIRRORS="https://mirror.servaxnet.com/gentoo/"
|
My package.use:
Code: |
www-client/surf tabbed
media-video/pipewire sound-server gstreamer ffmpeg dbus bluetooth modemanager pipewire-alsa extra
dev-qt/qtwebengine -bindist
www-client/qutebrowser adblock pdf qt6 widevine
# required by dev-qt/qtwebengine-6.6.1::gentoo
# required by dev-qt/qtwebengine (argument)
>=sys-libs/zlib-1.3-r2 minizip
# required by dev-python/PyQt6-WebEngine-6.6.0::gentoo[widgets]
# required by www-client/qutebrowser-3.1.0::gentoo[python_single_target_python3_11,qt6]
# required by www-client/qutebrowser (argument)
>=dev-python/PyQt6-6.6.1 qml webchannel
# required by www-client/firefox-115.6.0::gentoo[system-libvpx]
# required by firefox (argument)
>=media-libs/libvpx-1.13.1-r1 postproc
|
My GST plugins:
Code: |
equery list gst-plugins\*
* Searching for gst-plugins* ...
[IP-] [ ] media-libs/gst-plugins-bad-1.20.6:1.0
[IP-] [ ] media-libs/gst-plugins-base-1.20.6:1.0
[IP-] [ ] media-libs/gst-plugins-good-1.20.6:1.0
[IP-] [ ] media-libs/gst-plugins-ugly-1.20.6:1.0
[IP-] [ ] media-plugins/gst-plugins-a52dec-1.20.6:1.0
[IP-] [ ] media-plugins/gst-plugins-cdparanoia-1.20.6:1.0
[IP-] [ ] media-plugins/gst-plugins-dts-1.20.6:1.0
[IP-] [ ] media-plugins/gst-plugins-dvdread-1.20.6:1.0
[IP-] [ ] media-plugins/gst-plugins-faad-1.20.6:1.0
[IP-] [ ] media-plugins/gst-plugins-flac-1.20.6:1.0
[IP-] [ ] media-plugins/gst-plugins-libav-1.20.6:1.0
[IP-] [ ] media-plugins/gst-plugins-meta-1.20.6:1.0
[IP-] [ ] media-plugins/gst-plugins-mpeg2dec-1.20.6:1.0
[IP-] [ ] media-plugins/gst-plugins-mpg123-1.20.6-r1:1.0
[IP-] [ ] media-plugins/gst-plugins-opus-1.20.6:1.0
[IP-] [ ] media-plugins/gst-plugins-pulse-1.20.6:1.0
[IP-] [ ] media-plugins/gst-plugins-resindvd-1.20.6:1.0
[IP-] [ ] media-plugins/gst-plugins-x264-1.20.6:1.0
|
And the logs from running surf with GST_DEBUG=2:
Code: |
GST_DEBUG=2 surf
Could not read style file: /home/renkin42/.surf/styles/default.css
0:00:00.012785939 4680 0x564774116a20 WARN webkitvideoencoderprivate VideoEncoderPrivateGStreamer.cpp:137:registerEncoder: Encoder omxh264enc not found, will not be used
0:00:00.012828192 4680 0x564774116a20 WARN webkitvideoencoderprivate VideoEncoderPrivateGStreamer.cpp:137:registerEncoder: Encoder openh264enc not found, will not be used
0:00:00.012836967 4680 0x564774116a20 WARN webkitvideoencoderprivate VideoEncoderPrivateGStreamer.cpp:137:registerEncoder: Encoder vp8enc not found, will not be used
0:00:00.012849645 4680 0x564774116a20 WARN webkitvideoencoderprivate VideoEncoderPrivateGStreamer.cpp:137:registerEncoder: Encoder vp9enc not found, will not be used
0:00:00.012858054 4680 0x564774116a20 WARN webkitvideoencoderprivate VideoEncoderPrivateGStreamer.cpp:137:registerEncoder: Encoder vah264lpenc not found, will not be used
0:00:00.012865651 4680 0x564774116a20 WARN webkitvideoencoderprivate VideoEncoderPrivateGStreamer.cpp:137:registerEncoder: Encoder vah264enc not found, will not be used
0:00:00.012872907 4680 0x564774116a20 WARN webkitvideoencoderprivate VideoEncoderPrivateGStreamer.cpp:137:registerEncoder: Encoder vah265enc not found, will not be used
0:00:00.012882719 4680 0x564774116a20 WARN webkitvideoencoderprivate VideoEncoderPrivateGStreamer.cpp:137:registerEncoder: Encoder x265enc not found, will not be used
0:00:00.017546607 4680 0x564774116a20 WARN webkitregistryscanner GStreamerRegistryScanner.cpp:281:hasElementForCaps: All video encoder elements matching caps video/x-av1 are disallowed
0:00:00.021241182 4680 0x564774116a20 WARN webkitregistryscanner GStreamerRegistryScanner.cpp:281:hasElementForCaps: All video encoder elements matching caps video/x-av1 are disallowed
0:00:00.169363744 4680 0x7efce0001e60 WARN qtdemux qtdemux.c:3128:qtdemux_parse_trex:<qtdemux1> failed to find fragment defaults for stream 1
0:00:00.169442957 4680 0x7efce0002580 WARN qtdemux qtdemux.c:3128:qtdemux_parse_trex:<qtdemux3> failed to find fragment defaults for stream 1
0:00:00.169583549 4680 0x7efce0001e60 WARN default qtdemux_tags.c:765:qtdemux_tag_add_revdns:<qtdemux1> This tag com.apple.iTunes:iTunSMPB type:1 is not mapped, file a bug at bugzilla.gnome.org
0:00:00.169585805 4680 0x7efce0002580 WARN default qtdemux_tags.c:765:qtdemux_tag_add_revdns:<qtdemux3> This tag com.apple.iTunes:iTunSMPB type:1 is not mapped, file a bug at bugzilla.gnome.org
0:00:00.169598624 4680 0x7efce0001e60 WARN default qtdemux_tags.c:765:qtdemux_tag_add_revdns:<qtdemux1> This tag com.apple.iTunes:Encoding Params type:0 is not mapped, file a bug at bugzilla.gnome.org
0:00:00.169610472 4680 0x7efce0002580 WARN default qtdemux_tags.c:765:qtdemux_tag_add_revdns:<qtdemux3> This tag com.apple.iTunes:Encoding Params type:0 is not mapped, file a bug at bugzilla.gnome.org
0:00:00.169619364 4680 0x7efce0001e60 WARN default qtdemux_tags.c:765:qtdemux_tag_add_revdns:<qtdemux1> This tag com.apple.iTunes:iTunNORM type:1 is not mapped, file a bug at bugzilla.gnome.org
0:00:00.169629939 4680 0x7efce0002580 WARN default qtdemux_tags.c:765:qtdemux_tag_add_revdns:<qtdemux3> This tag com.apple.iTunes:iTunNORM type:1 is not mapped, file a bug at bugzilla.gnome.org
0:00:00.169650945 4680 0x7efce00020c0 WARN qtdemux qtdemux.c:3128:qtdemux_parse_trex:<qtdemux0> failed to find fragment defaults for stream 1
0:00:00.169650944 4680 0x7efce0002320 WARN qtdemux qtdemux.c:3128:qtdemux_parse_trex:<qtdemux2> failed to find fragment defaults for stream 1
0:00:00.169700819 4680 0x7efce00020c0 WARN default qtdemux_tags.c:765:qtdemux_tag_add_revdns:<qtdemux0> This tag com.apple.iTunes:iTunSMPB type:1 is not mapped, file a bug at bugzilla.gnome.org
0:00:00.169700820 4680 0x7efce0002320 WARN default qtdemux_tags.c:765:qtdemux_tag_add_revdns:<qtdemux2> This tag com.apple.iTunes:iTunSMPB type:1 is not mapped, file a bug at bugzilla.gnome.org
0:00:00.169716669 4680 0x7efce00020c0 WARN default qtdemux_tags.c:765:qtdemux_tag_add_revdns:<qtdemux0> This tag com.apple.iTunes:Encoding Params type:0 is not mapped, file a bug at bugzilla.gnome.org
0:00:00.169727501 4680 0x7efce0002320 WARN default qtdemux_tags.c:765:qtdemux_tag_add_revdns:<qtdemux2> This tag com.apple.iTunes:Encoding Params type:0 is not mapped, file a bug at bugzilla.gnome.org
0:00:00.169737203 4680 0x7efce00020c0 WARN default qtdemux_tags.c:765:qtdemux_tag_add_revdns:<qtdemux0> This tag com.apple.iTunes:iTunNORM type:1 is not mapped, file a bug at bugzilla.gnome.org
0:00:00.169747187 4680 0x7efce0002320 WARN default qtdemux_tags.c:765:qtdemux_tag_add_revdns:<qtdemux2> This tag com.apple.iTunes:iTunNORM type:1 is not mapped, file a bug at bugzilla.gnome.org
0:00:04.546650205 4680 0x564774116a20 WARN alsa conf.c:5569:parse_args: alsalib error: Parameter DEV must be an integer
0:00:04.546673344 4680 0x564774116a20 WARN alsa conf.c:5711:snd_config_expand:
alsalib error: Parse arguments error: Invalid argument
0:00:04.546686526 4680 0x564774116a20 WARN alsa pcm.c:2675:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:0,0:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
0:00:04.546914480 4680 0x564774116a20 WARN alsa conf.c:5569:parse_args: alsalib error: Parameter DEV must be an integer
0:00:04.546928242 4680 0x564774116a20 WARN alsa conf.c:5711:snd_config_expand:
alsalib error: Parse arguments error: Invalid argument
0:00:04.546937193 4680 0x564774116a20 WARN alsa pcm.c:2675:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:0,3:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
0:00:04.547174430 4680 0x564774116a20 WARN alsa conf.c:5569:parse_args: alsalib error: Parameter DEV must be an integer
0:00:04.547187927 4680 0x564774116a20 WARN alsa conf.c:5711:snd_config_expand:
alsalib error: Parse arguments error: Invalid argument
0:00:04.547196951 4680 0x564774116a20 WARN alsa pcm.c:2675:snd_pcm_open_noupdate: alsalib error: Unknown PCM hw:1,0:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
0:01:08.834580163 4680 0x7efce0004760 WARN matroskademux matroska-demux.c:1143:gst_matroska_demux_parse_stream:<matroskademux3> Unknown TrackVideo subelement 0xec - ignoring
0:01:08.985289370 4680 0x7efce00056c0 WARN audio-resampler audio-resampler.c:274:convert_taps_gint16_c: can't find exact taps
0:01:08.989966564 4680 0x7efce0005440 WARN audio-resampler audio-resampler.c:274:convert_taps_gint16_c: can't find exact taps
0:01:08.993952330 4680 0x7efce0005440 WARN audio-resampler audio-resampler.c:274:convert_taps_gint16_c: can't find exact taps
0:01:10.132450278 4680 0x7efce0005bc0 WARN matroskademux matroska-demux.c:1143:gst_matroska_demux_parse_stream:<matroskademux5> Unknown TrackVideo subelement 0xec - ignoring
0:01:10.196338373 4680 0x7efce0004a40 WARN audio-resampler audio-resampler.c:274:convert_taps_gint16_c: can't find exact taps
0:01:10.198188455 4680 0x7efce00049e0 WARN audio-resampler audio-resampler.c:274:convert_taps_gint16_c: can't find exact taps
0:01:10.199699507 4680 0x7efce00049e0 WARN audio-resampler audio-resampler.c:274:convert_taps_gint16_c: can't find exact taps
|
It does look like it failed to load quite a few codecs, maybe av1 stuff? For what it's worth those errors were from navigating to youtube.com, as were all the odd ones about itunes. Most of the errors from the video page itself relate to audio curiously.. Not Sure what to do with that. Let me know if you need any further logs/command output, and thank you in advance! |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3347 Location: Rasi, Finland
|
Posted: Thu Jan 11, 2024 6:15 pm Post subject: |
|
|
Do you have a custom alsa config? Quote: | Code: | 0:00:04.546650205 4680 0x564774116a20 WARN alsa conf.c:5569:parse_args: alsalib error: Parameter DEV must be an integer
0:00:04.546673344 4680 0x564774116a20 WARN alsa conf.c:5711:snd_config_expand:
alsalib error: Parse arguments error: Invalid argument |
| ... suggest there is some invalid value in the alsa config.
But it is an audio related problem, which you say works. Doesn't hurt to check. ;)
If you don't have alsa config, then you might have some version mismatch of alsalib and some other component. _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Renkin42 n00b
Joined: 11 Jan 2024 Posts: 12 Location: McKinleyville, CA
|
Posted: Fri Jan 12, 2024 12:46 am Post subject: |
|
|
Zucca wrote: | Do you have a custom alsa config? Quote: | Code: | 0:00:04.546650205 4680 0x564774116a20 WARN alsa conf.c:5569:parse_args: alsalib error: Parameter DEV must be an integer
0:00:04.546673344 4680 0x564774116a20 WARN alsa conf.c:5711:snd_config_expand:
alsalib error: Parse arguments error: Invalid argument |
| ... suggest there is some invalid value in the alsa config.
But it is an audio related problem, which you say works. Doesn't hurt to check.
If you don't have alsa config, then you might have some version mismatch of alsalib and some other component. |
No alsa config sadly. I'm using Pipewire for audio. my media-libs/alsa-lib is 1.2.10-r2, and media-video/pipewire is 1.0.0-r1. I tried disabling pipewire-alsa, but no changes there.
Trying a few more things, I was able to leave the page with the ctrl-g prompt and go to google. On doing so, I get a new interesting error:
Code: |
0:00:54.083812580 15041 0x55d57bb7b1d0 WARN downloadbuffer gstdownloadbuffer.c:973:gst_download_buffer_close_temp_location_file:<downloadbuffer0> Failed to remove temporary file /var/tmp/WebKit-Media-7XUIH2: No such file or directory
|
Could this be a permission error in creating the stream buffer or something? That would be surprisingly consistent with what I'm seeing. |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3347 Location: Rasi, Finland
|
Posted: Fri Jan 12, 2024 9:51 pm Post subject: |
|
|
Do other webkit-gtk browsers work? _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Renkin42 n00b
Joined: 11 Jan 2024 Posts: 12 Location: McKinleyville, CA
|
Posted: Fri Jan 12, 2024 10:38 pm Post subject: |
|
|
Zucca wrote: | Do other webkit-gtk browsers work? |
This actually just occurred to me earlier. I’m emerging epiphany now. I’ll get back to you this evening. |
|
Back to top |
|
|
Renkin42 n00b
Joined: 11 Jan 2024 Posts: 12 Location: McKinleyville, CA
|
Posted: Sat Jan 13, 2024 3:38 pm Post subject: |
|
|
So epiphany didn’t work at all. Just got an endless stream of errors that it couldn’t connect to a gst server and it wouldn’t load anything. I was afraid it might have issues considering I’m running my system with the “-gnome” flag. I tried luakit after that and it demonstrates identical behavior to surf. |
|
Back to top |
|
|
Hammett Apprentice
Joined: 26 Jan 2005 Posts: 223 Location: Barcelona, Catalonia
|
Posted: Sun Jan 14, 2024 6:52 pm Post subject: |
|
|
For what is worth, I tried some months ago luakit and the performance was atrocious, not only on YT, but other sites as well. The RAM consumption was very high in general, and the playback on multimedia was very poor. My guess is that webkit+gstreamer are not a very performant combination. _________________ I don't fear the people. I fear the demon inside them. |
|
Back to top |
|
|
Renkin42 n00b
Joined: 11 Jan 2024 Posts: 12 Location: McKinleyville, CA
|
Posted: Tue Jan 16, 2024 4:02 pm Post subject: |
|
|
Got it working! Looks like I needed the vpx flag on gst-plugins-meta. I think. I enabled it globally and now playback seems to be working. Webkit performance is still kinda crap, but oh well. |
|
Back to top |
|
|
Vitolglomi n00b
Joined: 15 Jan 2024 Posts: 1 Location: East houston
|
Posted: Fri Jan 19, 2024 4:25 pm Post subject: |
|
|
Have you considered trying the vpx flag on gst-plugins-meta globally to see if it improves playback performance, especially since enabling it seems to have resolved the playback issue? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|