<?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>217580</bug_id>
          
          <creation_ts>2020-10-11 08:47:48 -0700</creation_ts>
          <short_desc>[GStreamer] Peertube videos don&apos;t play</short_desc>
          <delta_ts>2020-10-15 07:23:24 -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>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>165394</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>hoboprimate</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>pnormand</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1696632</commentid>
    <comment_count>0</comment_count>
    <who name="">hoboprimate</who>
    <bug_when>2020-10-11 08:47:48 -0700</bug_when>
    <thetext>Videos from peertube websites don&apos;t play, tested on Epiphany 3.38.

From https://peer.tube/ :
&quot;PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent and Angular.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1696633</commentid>
    <comment_count>1</comment_count>
    <who name="">hoboprimate</who>
    <bug_when>2020-10-11 08:48:47 -0700</bug_when>
    <thetext>Example video link:

https://peer.tube/videos/watch/5a370009-1868-46de-a5c2-2b34405fc5c7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1696634</commentid>
    <comment_count>2</comment_count>
    <who name="">hoboprimate</who>
    <bug_when>2020-10-11 08:50:20 -0700</bug_when>
    <thetext>Correction, audio plays but not video, as seen in the following video:

https://peer.tube/videos/watch/f3cb1945-a8f7-481f-a465-946c6f884e50</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1696825</commentid>
    <comment_count>3</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2020-10-12 05:49:26 -0700</bug_when>
    <thetext>(In reply to hoboprimate from comment #2)
&gt; Correction, audio plays but not video, as seen in the following video:
&gt; 
&gt; https://peer.tube/videos/watch/f3cb1945-a8f7-481f-a465-946c6f884e50

This one plays fine for me, both with current stable (WebKitGTK 2.30.1)
and a recent build from “trunk”; the video seems to be encoded with
H.264 (and AAC for the audio), so I suspect your system maybe does not
have a GStreamer plug-in installed to decode H.264.

For example here I have the following in my system

  % gst-inspect-1.0 | grep -i &apos;264.*dec&apos;
  va:  vah264dec: VA-API H.264 Decoder
  libav:  avdec_h264: libav H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 decoder
  %

The fist one is provided by gstreamer-vaapi [1] (hardware accelerated,
works will with Intel GPUs, but YMMV with others) and the second comes
from gst-libav [2], which should work everywhere (as it&apos;s software based).
There is also a decode based on OpenH264 included as part of the
gst-plugins-bad package (which I do not have installed). You may want to
check which packages include those in your distribution, and install them.

If after that, the video still doesn&apos;t play, please let us know —  we may
need to ask you for a GStreamer debug log to figure out what the exact
problem is.


---
[1] https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi
[2] https://gitlab.freedesktop.org/gstreamer/gst-libav</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1696826</commentid>
    <comment_count>4</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2020-10-12 05:54:35 -0700</bug_when>
    <thetext>(In reply to hoboprimate from comment #1)
&gt; Example video link:
&gt; 
&gt; https://peer.tube/videos/watch/5a370009-1868-46de-a5c2-2b34405fc5c7

OTOH for this one I get the video, but not the audio… Downloading the
video I see that the audio codec is also AAC — same as for the other
one which played fine; puzzling!

Leaving this here as a hint, in case it helps the multimedia savvy people:
checking from the Web Inspector the &lt;video&gt; element has a VideoTrack
associated, but there is no AudioTrack; the player seems to be using MSE.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1696827</commentid>
    <comment_count>5</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2020-10-12 05:59:09 -0700</bug_when>
    <thetext>Adding [GStreamer] tag: The missing audio issue for the first
video linked also affects WPE.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1696847</commentid>
    <comment_count>6</comment_count>
    <who name="">hoboprimate</who>
    <bug_when>2020-10-12 08:10:18 -0700</bug_when>
    <thetext>(In reply to Adrian Perez from comment #4)
&gt; (In reply to hoboprimate from comment #1)
&gt; &gt; Example video link:
&gt; &gt; 
&gt; &gt; https://peer.tube/videos/watch/5a370009-1868-46de-a5c2-2b34405fc5c7
&gt; 
&gt; OTOH for this one I get the video, but not the audio… Downloading the
&gt; video I see that the audio codec is also AAC — same as for the other
&gt; one which played fine; puzzling!

After installing all gstreamer codecs (I was missing a &quot;bad&quot; package) I&apos;m now getting the same results as you :) The first link plays correctly, and this one doesn&apos;t play audio.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1697211</commentid>
    <comment_count>7</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2020-10-13 02:47:20 -0700</bug_when>
    <thetext>Here with MiniBrowser from trunk:

(In reply to hoboprimate from comment #1)
&gt; Example video link:
&gt; 
&gt; https://peer.tube/videos/watch/5a370009-1868-46de-a5c2-2b34405fc5c7

Video plays, no audio.

(In reply to hoboprimate from comment #2)
&gt; Correction, audio plays but not video, as seen in the following video:
&gt; 
&gt; https://peer.tube/videos/watch/f3cb1945-a8f7-481f-a465-946c6f884e50

Video and audio play fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1698074</commentid>
    <comment_count>8</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2020-10-15 05:10:08 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #7)
&gt; Here with MiniBrowser from trunk:
&gt; 
&gt; (In reply to hoboprimate from comment #1)
&gt; &gt; Example video link:
&gt; &gt; 
&gt; &gt; https://peer.tube/videos/watch/5a370009-1868-46de-a5c2-2b34405fc5c7
&gt; 
&gt; Video plays, no audio.
&gt; 

I&apos;ve checked this, the issue is that the same SourceBuffer exposes a video and an audio track, which is not supported in the GStreamer backend yet. See https://bugs.webkit.org/show_bug.cgi?id=165394

So I&apos;d close this bug if nobody opposes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1698094</commentid>
    <comment_count>9</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2020-10-15 07:23:24 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #8)
&gt; (In reply to Philippe Normand from comment #7)
&gt; &gt; Here with MiniBrowser from trunk:
&gt; &gt; 
&gt; &gt; (In reply to hoboprimate from comment #1)
&gt; &gt; &gt; Example video link:
&gt; &gt; &gt; 
&gt; &gt; &gt; https://peer.tube/videos/watch/5a370009-1868-46de-a5c2-2b34405fc5c7
&gt; &gt; 
&gt; &gt; Video plays, no audio.
&gt; &gt; 
&gt; 
&gt; I&apos;ve checked this, the issue is that the same SourceBuffer exposes a video
&gt; and an audio track, which is not supported in the GStreamer backend yet. See
&gt; https://bugs.webkit.org/show_bug.cgi?id=165394
&gt; 
&gt; So I&apos;d close this bug if nobody opposes.

In comment 6 the reporter has confirmed that installing the needed
GStreamer elements H.264 video decoding works as expected, so I agree
that we can keep tracking the remaining issue in bug #165394 and close
this one as duplicate.

With this bug report we have now a good publicly available reproducer
for multiple streams issue, so thanks to the reporter for that! 🤘️

*** This bug has been marked as a duplicate of bug 165394 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>