Bug 238952 - [GStreamer] Some youtube videos are not playing
Summary: [GStreamer] Some youtube videos are not playing
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Local Build
Hardware: PC Linux
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-07 12:08 PDT by 247
Modified: 2022-12-21 05:31 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 247 2022-04-07 12:08:07 PDT
hello, seems that webkitgtk has some troubles with some youtube videos, as they are not playing while some others are

gathered this on the terminal, from epiphany in fedora 35, maybe it will help?

(WebKitWebProcess:2): GLib-GObject-WARNING **: 20:34:32.280: g_object_set_is_valid_property: object class 'avdec_av1' has no property named 'max-threads'
Comment 1 Philippe Normand 2022-04-08 03:17:13 PDT
Thanks for the bug-report. Can you gather some logs please? The procedure is explained there:

https://github.com/Igalia/meta-webkit/wiki/Providing-useful-GStreamer-Zero-copy-issue-reports#in-webkit
Comment 2 Philippe Normand 2022-04-08 03:25:03 PDT
> (WebKitWebProcess:2): GLib-GObject-WARNING **: 20:34:32.280:
> g_object_set_is_valid_property: object class 'avdec_av1' has no property
> named 'max-threads'

Let's handle this one in https://bugs.webkit.org/show_bug.cgi?id=238991
Comment 3 Philippe Normand 2022-04-08 04:31:05 PDT
Please attach logs here... not in the other bug.
Comment 4 247 2022-04-08 04:36:24 PDT
my bad i found later the right command, anyway i would love to help you but unfortunately the folder in tmp that should contain logs is empty...
Comment 5 Philippe Normand 2022-04-10 08:24:43 PDT
(In reply to 247 from comment #4)
> my bad i found later the right command, anyway i would love to help you but
> unfortunately the folder in tmp that should contain logs is empty...

That's quite odd, I doubt Fedora disables GStreamer debug logging. Not sure I can help much without this...
Comment 6 Philippe Normand 2022-04-12 10:19:44 PDT
GST_DEBUG="3,webkit*:6" GST_DEBUG_DUMP_DOT_DIR=/tmp epiphany "https://www.youtube.com/watch?v=XIAor5VAjuE"

shows nothing either?
Comment 7 247 2022-04-14 03:31:37 PDT
if the folder is /tmp/epiphany-luca247-e8l4pX then yes it's empty...
Comment 8 Philippe Normand 2022-04-15 10:40:54 PDT
I mean in the terminal output...
Comment 9 247 2022-04-15 10:45:39 PDT
it's actually full of

c:2068:gst_ffmpegviddec_handle_frame:<avdec_av1-0> Failed to send data for decoding
0:00:22.626063912     2 0x7fc17c00b760 ERROR                  libav :0:: video_get_buffer: image parameters invalid
0:00:22.626071981     2 0x7fc17c00b760 ERROR                  libav :0:: get_buffer() failed
0:00:22.626077629     2 0x7fc17c00b760 ERROR                  libav :0:: thread_get_buffer() failed
0:00:22.626083319     2 0x7fc17c00b760 ERROR                  libav :0:: Failed to allocate space for current frame.
0:00:22.626088690     2 0x7fc17c00b760 ERROR                  libav :0:: Get current frame error
0:00:22.626095629     2 0x7fc17c00b760 WARN                   libav gstavviddec.c:2068:gst_ffmpegviddec_handle_frame:<avdec_av1-0> Failed to send data for decoding
Comment 10 Philippe Normand 2022-04-15 10:58:49 PDT
Try this?

export GST_PLUGIN_FEATURE_RANK=avdec_av1:NONE

Then run epiphany again
Comment 11 247 2022-04-16 16:02:32 PDT
this solves the problem, thank you...
Comment 12 Philippe Normand 2022-08-16 11:58:22 PDT
What's the ffmpeg version you have? I think this should be reported in their bug tracker if the issue is still happening.
Comment 13 Philippe Normand 2022-12-21 05:31:28 PST
The ffmpeg av1 decoder is going to be disabled in GStreamer 1.20, see https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3610

Closing.