<?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>224969</bug_id>
          
          <creation_ts>2021-04-22 22:38:34 -0700</creation_ts>
          <short_desc>[GStreamer] webrtc/video-vp8-videorange.html is failing</short_desc>
          <delta_ts>2021-05-05 03:07:05 -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>DUPLICATE</resolution>
          <dup_id>225345</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=225345</see_also>
          <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="Diego Pino">dpino</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>jean-yves.avenard</cc>
    
    <cc>pnormand</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1753461</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-04-22 22:38:34 -0700</bug_when>
    <thetext>The test was added in r276478. It returns the following failure in WebKitGTK:

https://build.webkit.org/results/GTK-Linux-64-bit-Release-Tests/r276484%20%281349%29/webrtc/video-vp8-videorange-diff.txt

--- /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/webrtc/video-vp8-videorange-expected.txt
+++ /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/webrtc/video-vp8-videorange-actual.txt
@@ -2,5 +2,5 @@
 
 
 PASS Setting video exchange
-PASS Track is enabled, video should not be black
+FAIL Track is enabled, video should not be black assert_equals: expected &quot;0,0,0&quot; but got &quot;1,0,1&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1753503</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2021-04-23 02:18:13 -0700</bug_when>
    <thetext>I had a look... Incoming BGRA frames are converted to I420. The dest colorimetry of the video converter used in GStreamerVideoFrameLibWebRTC::ToI420() is already BT.601 so the color ranges should be correct for incoming frames.

Unless there is a bug in the gst video-converter. I am not sure yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756802</commentid>
    <comment_count>2</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-05-04 22:12:59 -0700</bug_when>
    <thetext>Fixed by r276988.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756810</commentid>
    <comment_count>3</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2021-05-04 22:30:54 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 225345 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756881</commentid>
    <comment_count>4</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2021-05-05 03:07:05 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #1)
&gt; I had a look... Incoming BGRA frames are converted to I420. The dest
&gt; colorimetry of the video converter used in
&gt; GStreamerVideoFrameLibWebRTC::ToI420() is already BT.601 so the color ranges
&gt; should be correct for incoming frames.
&gt; 
&gt; Unless there is a bug in the gst video-converter. I am not sure yet.

For the record, the issue isn&apos;t a color space (e.g BT601 vs 709 etc) but a color range one.

The data coming in though should be YUV already as that&apos;s what is coming out of the vp8 decoder.

It&apos;s surprising that you would get BGRA in between, this imply that in the code path there&apos;s a double conversion happening YUV -&gt; BGRA -&gt; YUV which would be less than optimal.

Maybe it&apos;s worth investigating this further.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>