<?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>218221</bug_id>
          
          <creation_ts>2020-10-26 20:59:30 -0700</creation_ts>
          <short_desc>[GStreamer][WebRTC] Support for VP9 Profile 2 (10-bit color) encoding</short_desc>
          <delta_ts>2022-07-15 04:39:16 -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>WebRTC</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=217673</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>222795</dependson>
          <blocked>235885</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Philippe Normand">philn</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>philn</cc>
    
    <cc>pnormand</cc>
    
    <cc>vjaquez</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1701746</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2020-10-26 20:59:30 -0700</bug_when>
    <thetext>On r268971 support for  VP9 Profile 2 (10-bit color) was added, but the feature is not working still for the GTK or WPE ports.

The layout test webrtc/vp9-profile2.html added on r268971 fails with:

--- /home/igalia/clopez/webkit/webkit-flatpak/layout-test-results/webrtc/vp9-profile2-expected.txt
+++ /home/igalia/clopez/webkit/webkit-flatpak/layout-test-results/webrtc/vp9-profile2-actual.txt
@@ -1,10 +1,4 @@
 
 
-PASS VP9 profile 2 in getCapabilities
-PASS Verify VP9 activation
-PASS Setting video exchange
-PASS Ensuring connection state is connected
-PASS Track is enabled, video should not be black
-PASS Track is disabled, video should be black
-PASS Track is enabled, video should not be black 2
+FAIL VP9 profile 2 in getCapabilities assert_equals: expected 1 but got 0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1701753</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2020-10-26 21:40:30 -0700</bug_when>
    <thetext>Updated expectations in r269021</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746035</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2021-04-01 08:19:03 -0700</bug_when>
    <thetext>I had a look at this one, a few notes:

- the libvpx shipped in the SDK doesn&apos;t support high bit depth pixel formats, but that&apos;s easy to fix (--enable-vp9-highbitdepth configure option)
- the gst 1.18 vp9dec still chokes after fixing libvpx
- gst 1.19 vp9dec works better thanks to the vp9parse element autoplugged in decodebin3
- the test still fails, here&apos;s the diff:

--- /app/webkit/WebKitBuild/Release/layout-test-results/webrtc/vp9-profile2-expected.txt
+++ /app/webkit/WebKitBuild/Release/layout-test-results/webrtc/vp9-profile2-actual.txt
@@ -4,7 +4,7 @@
 PASS Verify VP9 activation
 PASS Setting video exchange
 PASS Ensuring connection state is connected
-PASS Track is enabled, video should not be black
-PASS Track is disabled, video should be black
-PASS Track is enabled, video should not be black 2
+FAIL Track is enabled, video should not be black promise_test: Unhandled rejection with value: object &quot;IndexSizeError: The index is not in the allowed range.&quot;
+FAIL Track is disabled, video should be black promise_test: Unhandled rejection with value: object &quot;IndexSizeError: The index is not in the allowed range.&quot;
+FAIL Track is enabled, video should not be black 2 promise_test: Unhandled rejection with value: object &quot;IndexSizeError: The index is not in the allowed range.&quot;
 

I suspect the decoded video dimensions are not correctly propagated from the player to the media element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883649</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2022-07-14 09:51:28 -0700</bug_when>
    <thetext>Re-purposing to GstWebRTC. Patch incoming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883663</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2022-07-14 10:29:11 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/2414</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884013</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-07-15 04:38:15 -0700</bug_when>
    <thetext>Committed 252497@main (d3c0cebbf427): &lt;https://commits.webkit.org/252497@main&gt;

Reviewed commits have been landed. Closing PR #2414 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884014</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-15 04:39:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/97068026&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>