<?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>180233</bug_id>
          
          <creation_ts>2017-11-30 19:39:54 -0800</creation_ts>
          <short_desc>[GTK] Turn on ENABLE_MEDIA_SOURCE</short_desc>
          <delta_ts>2017-12-04 04:32:29 -0800</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>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>167107</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 name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>aboya</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>clopez</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1376692</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-11-30 19:39:54 -0800</bug_when>
    <thetext>Turn on ENABLE_MEDIA_SOURCE

It&apos;s still disabled at runtime. We had previously agreed to enable media source ASAP so that it can get as much testing as possible during the development cycle, but this stalled due to $CONCERNS. Now, after discussing with Alicia, I think we are close to being able to toggle the runtime default, but not quite yet as there are a few essential patches that are not yet upstream. So we can consider the runtime flag in a separate bug. But there is no reason to leave the build flag turned off. The build flag does not seem to break anything. This will make it possible to test MSE in MiniBrowser without having to rebuild WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1376693</commentid>
    <comment_count>1</comment_count>
      <attachid>328067</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-11-30 19:40:28 -0800</bug_when>
    <thetext>Created attachment 328067
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1376694</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-11-30 19:43:11 -0800</bug_when>
    <thetext>Note: this will break the Debian stable bot again, since its GStreamer is not new enough. It will need to be taught to build with -DENABLE_MEDIA_SOURCE=OFF. I don&apos;t know how to do that.

That reminds me, this is not ready for cq+ because the GStreamer dependency is not defined anywhere in CMake. The build needs to fail at the CMake stage if GStreamer is not new enough for MSE. I don&apos;t know what version of GStreamer is required; we&apos;ll need Alicia or Enrique to comment on that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1376779</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2017-12-01 04:18:50 -0800</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #2)
&gt; Note: this will break the Debian stable bot again, since its GStreamer is
&gt; not new enough. It will need to be taught to build with
&gt; -DENABLE_MEDIA_SOURCE=OFF. I don&apos;t know how to do that.
&gt; 

I will do that

&gt; That reminds me, this is not ready for cq+ because the GStreamer dependency
&gt; is not defined anywhere in CMake. The build needs to fail at the CMake stage
&gt; if GStreamer is not new enough for MSE. I don&apos;t know what version of
&gt; GStreamer is required; we&apos;ll need Alicia or Enrique to comment on that.


&quot;Thanks&quot; to the slow restart of the master in https://bugs.webkit.org/show_bug.cgi?id=177338#c45 we know that this feature built fine on Ubuntu 16.04 but not on Debian jessie (oldstable).

Debian jessie has gstreamer 1.4 and Ubuntu LTS has 1.8.

Therefore the minimum version is either 1.6 or 1.8


But from the above link we know also that this depends on GST_BUFFER_DTS_OR_PTS definition that appeared on GStreamer 1.8.

Therefore: this is your number: 1.8 is the minimum version, please upload a new patch making this depend on gst &gt;= 1.8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1376780</commentid>
    <comment_count>4</comment_count>
      <attachid>328067</attachid>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2017-12-01 04:19:15 -0800</bug_when>
    <thetext>Comment on attachment 328067
Patch

This feature should depend on gst =&gt; 1.8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1376784</commentid>
    <comment_count>5</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2017-12-01 04:26:32 -0800</bug_when>
    <thetext>(In reply to Carlos Alberto Lopez Perez from comment #3)
&gt; (In reply to Michael Catanzaro from comment #2)
&gt; &gt; Note: this will break the Debian stable bot again, since its GStreamer is
&gt; &gt; not new enough. It will need to be taught to build with
&gt; &gt; -DENABLE_MEDIA_SOURCE=OFF. I don&apos;t know how to do that.
&gt; &gt; 
&gt; 
&gt; I will do that
&gt; 

Done: https://build.webkit.org/builders/GTK%20Linux%2064-bit%20Release%20Debian%20Stable%20%28Build%29/builds/7950/steps/compile-webkit/logs/stdio

This was done by simply setting on the machine:

export BUILD_WEBKIT_ARGS=&quot;--cmakeargs=-DENABLE_MEDIA_SOURCE=OFF --cmakeargs=-DUSE_WOFF2=OFF&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1376794</commentid>
    <comment_count>6</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2017-12-01 05:30:37 -0800</bug_when>
    <thetext>Also please use the previous bug for this

*** This bug has been marked as a duplicate of bug 167107 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1376803</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2017-12-01 07:23:32 -0800</bug_when>
    <thetext>Maybe we should use this bug for enabling the build option, but keep the previous bug around for enabling the runtime option? Because I am not turning on MSE by default: it will still be off at runtime.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1377659</commentid>
    <comment_count>8</comment_count>
    <who name="Alicia Boya García">aboya</who>
    <bug_when>2017-12-04 04:32:29 -0800</bug_when>
    <thetext>(In reply to Carlos Alberto Lopez Perez from comment #3)
&gt; But from the above link we know also that this depends on
&gt; GST_BUFFER_DTS_OR_PTS definition that appeared on GStreamer 1.8.

GST_BUFFER_DTS_OR_PTS() is a trivial utility macro, it could be recreated in WebKit easily.

I&apos;m more worried about matroskademux patches.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>328067</attachid>
            <date>2017-11-30 19:40:28 -0800</date>
            <delta_ts>2017-12-01 04:19:15 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-180233-20171130214027.patch</filename>
            <type>text/plain</type>
            <size>1411</size>
            <attacher name="Michael Catanzaro">mcatanzaro</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjI1MzM4CmRpZmYgLS1naXQgYS9Tb3VyY2UvY21ha2UvT3B0
aW9uc0dUSy5jbWFrZSBiL1NvdXJjZS9jbWFrZS9PcHRpb25zR1RLLmNtYWtlCmluZGV4IDY5ODQ1
ZWRjYzBhN2ZhODU0MTdmZTdjMWJiZDNmZTY1MjU3YTZiYmYuLjA3M2UzMDk0NzQwYjE3N2M1NTgz
ODdkMzM2OTIxZjIyMjI5ODA3MDQgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9jbWFrZS9PcHRpb25zR1RL
LmNtYWtlCisrKyBiL1NvdXJjZS9jbWFrZS9PcHRpb25zR1RLLmNtYWtlCkBAIC0xNDIsNyArMTQy
LDcgQEAgV0VCS0lUX09QVElPTl9ERUZBVUxUX1BPUlRfVkFMVUUoRU5BQkxFX0RPV05MT0FEX0FU
VFJJQlVURSBQUklWQVRFIE9OKQogV0VCS0lUX09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4gb24gRU5BQkxFX01FRElBX1NPVVJDRQorICAgICAgICBodHRwczov
L2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTgwMjMzCisKKyAgICAgICAgUmV2aWV3
ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgKiBTb3VyY2UvY21ha2UvT3B0aW9uc0dU
Sy5jbWFrZToKKwogMjAxNy0xMS0yOSAgQWxleCBDaHJpc3RlbnNlbiAgPGFjaHJpc3RlbnNlbkB3
ZWJraXQub3JnPgogCiAgICAgICAgIEZpeCBNYWMgQ01ha2UgYnVpbGQuCg==
</data>
<flag name="review"
          id="347263"
          type_id="1"
          status="-"
          setter="clopez"
    />
          </attachment>
      

    </bug>

</bugzilla>