<?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>226776</bug_id>
          
          <creation_ts>2021-06-08 13:01:46 -0700</creation_ts>
          <short_desc>Colorimetry-related warnings with H264 encoded with iOS Safari</short_desc>
          <delta_ts>2021-06-15 13:02: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>Safari 14</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 14</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nazar Mokrynskyi">nazar</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1767869</commentid>
    <comment_count>0</comment_count>
    <who name="Nazar Mokrynskyi">nazar</who>
    <bug_when>2021-06-08 13:01:46 -0700</bug_when>
    <thetext>When encoding H264 on iOS, its contents doesn&apos;t seem to contain colorimetry information when decoded by GStreamer, resulting in following warnings:
&gt; 2:59:30.649107764     1 0x7f0298049400 WARN              video-info video-info.c:204:validate_colorimetry: Need to specify a color matrix when using YUV format (I420)
&gt; 2:59:30.649125302     1 0x7f0298049400 WARN              video-info video-info.c:520:gst_video_info_from_caps: invalid colorimetry, using default

Those warnings are not present when VP8 is used, not present with desktop Safari and H264 (which makes me think it is related to hardware-accelerated encoder) and not present with Firefox/Chromium.

Those are annoying warnings and would be nice to fix in iOS version of Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1769333</commentid>
    <comment_count>1</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-06-14 01:55:42 -0700</bug_when>
    <thetext>Thanks Nazar, can you detail whether this is with high profile or baseline?
Can you detail the impact of the issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1769335</commentid>
    <comment_count>2</comment_count>
    <who name="Nazar Mokrynskyi">nazar</who>
    <bug_when>2021-06-14 02:03:53 -0700</bug_when>
    <thetext>This is baseline. The impact is primarily A HUGE amount of warnings in logs, visually there doesn&apos;t seem to be anything bad, I guess GStreamer&apos;s default works fine there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1769398</commentid>
    <comment_count>3</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2021-06-14 08:26:13 -0700</bug_when>
    <thetext>It would help to understand what the spec says here.
That will tell us whether encoder should be fixed, or decoder, or application using decoder output.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1769401</commentid>
    <comment_count>4</comment_count>
    <who name="Nazar Mokrynskyi">nazar</who>
    <bug_when>2021-06-14 08:31:10 -0700</bug_when>
    <thetext>Decoding is done by libav integration in GStreamer, so application using it doesn&apos;t do anything special.
And since it works fine with every other browser I tried so far except mobile Safari, I believe it is mobile Safari that needs to be tweaked here. But I&apos;m not an expert in the field to suggest something more specific.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1769927</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-06-15 13:02:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/79357214&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>