<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>230057</bug_id>
          
          <creation_ts>2021-09-08 11:51:10 -0700</creation_ts>
          <short_desc>[GStreamer] Green screen instead of playing video</short_desc>
          <delta_ts>2021-09-09 07:09:55 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Christian Stadelmann">wk</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>pnormand</cc>
    
    <cc>vjaquez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1791563</commentid>
    <comment_count>0</comment_count>
    <who name="Christian Stadelmann">wk</who>
    <bug_when>2021-09-08 11:51:10 -0700</bug_when>
    <thetext>Steps to reproduce:
1. Start epiphany
2. browse any website with video
3. start video

What should happen:
Play video. If it cannot be done using hardware acceleration, use software video decoding instead. If that is also not possible, show an error message.

What happens:
Green screen instead of video. Video stops after some time.

Example output on command line:
```
$ LC_ALL=C epiphany https://winfuture.de/videos/Hardware/Fairphone-3-im-Hands-On-Transparentes-fair-gebautes-Smartphone-20630.html
failed to open /usr/lib64/dri/hybrid_drv_video.so
Not using hybrid_drv_video.so
failed to open /usr/lib64/dri/hybrid_drv_video.so
Not using hybrid_drv_video.so
failed to open /usr/lib64/dri/hybrid_drv_video.so
Not using hybrid_drv_video.so

** (epiphany:252407): WARNING **: 19:29:51.802: GDK is not able to create a GL context, falling back to glReadPixels (slow!): Unable to create a GL context
```
(Note that I don&apos;t have a hybrid GPU system, only an Intel iGPU)

Software version info:
epiphany-40.3-1.fc34.x86_64
webkit2gtk3-2.32.3-1.fc34.x86_64
glib2-2.68.4-1.fc34.x86_64
gtk3-3.24.30-1.fc34.x86_64
gstreamer1-1.19.1-2.1.18.4.fc34.x86_64
gstreamer1-vaapi-1.19.1-2.1.18.4.fc34.x86_64
gstreamer1-libav-1.18.4-3.fc34.x86_64
libva-2.11.0-1.fc34.x86_64
libva-intel-driver-2.4.1-5.fc34.x86_64

I am willing to provide more debugging info but I don&apos;t know where to start debugging.

Note: This issue was first reported on https://gitlab.gnome.org/GNOME/epiphany/-/issues/1594 and put here due to a hint by Michael Catanzaro.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1791566</commentid>
    <comment_count>1</comment_count>
    <who name="Christian Stadelmann">wk</who>
    <bug_when>2021-09-08 11:55:12 -0700</bug_when>
    <thetext>Additional notes:
This is in a GNOME Wayland session.
DConf org.gnome.Epiphany.web hardware-acceleration-policy is &apos;on-demand&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1791602</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-09-08 13:34:35 -0700</bug_when>
    <thetext>By coincidence, somebody else ran into the exact same problem today, and fixed it by uninstalling gstreamer1-vaapi. That will probably fix it for you. (Even if we hadn&apos;t dealt with the same problem earlier today, uninstalling gstreamer1-vaapi would be my normal first suggestion.)

If that fixes your problem -- it probably will -- then I&apos;m afraid we&apos;ll need to yet again ping-pong you to their bug tracker: https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/issues/.

&gt; DConf org.gnome.Epiphany.web hardware-acceleration-policy is &apos;on-demand&apos;

Note this setting controls web rendering only. It&apos;s unrelated to hardware-accelerated video decoding.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1791761</commentid>
    <comment_count>3</comment_count>
    <who name="Christian Stadelmann">wk</who>
    <bug_when>2021-09-08 22:04:42 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #2)
&gt; By coincidence, somebody else ran into the exact same problem today, and
&gt; fixed it by uninstalling gstreamer1-vaapi.

I&apos;ve heard that before and probably have even done that as a workaround before. Thanks for the reminder. And yes, playing the video after uninstalling gstreamer1-vaapi works (same command line as before):

```
$ LC_ALL=C epiphany https://winfuture.de/videos/Hardware/Fairphone-3-im-Hands-On-Transparentes-fair-gebautes-Smartphone-20630.html

** (epiphany:263650): WARNING **: 06:47:12.362: GDK is not able to create a GL context, falling back to glReadPixels (slow!): Unable to create a GL context
```

&gt; If that fixes your problem -- it probably will -- then I&apos;m afraid we&apos;ll need
&gt; to yet again ping-pong you to their bug tracker:
&gt; https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/issues/.

Done: https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/issues/312

Shall I mark this bug report here as &quot;resolved | moved&quot;?

&gt; &gt; DConf org.gnome.Epiphany.web hardware-acceleration-policy is &apos;on-demand&apos;
&gt; 
&gt; Note this setting controls web rendering only. It&apos;s unrelated to
&gt; hardware-accelerated video decoding.

Thanks for explaination!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1791882</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2021-09-09 07:09:55 -0700</bug_when>
    <thetext>&gt; Shall I mark this bug report here as &quot;resolved | moved&quot;?

Yes, but I&apos;ll do that now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>