<?xml version="1.0" encoding="UTF-8"?>
<MediaConch xmlns="https://mediaarea.net/mediaconch" xmlns:mt="https://mediaarea.net/mediatrace" xmlns:mi="https://mediaarea.net/mediainfo" version="0.3">
  <media ref="test5.mp4">
    <policy name="Example MKV FFV1 digitization policy" type="and" rules_run="17" fail_count="12" pass_count="5" outcome="fail">
      <description>Example of a digitization specification of analog SD video to FFV1 and Matroska.</description>
      <rule name="Is it Matroska?" xpath="mi:MediaInfo/mi:track[@type='General']/mi:Format='Matroska'" actual="MPEG-4" outcome="fail"/>
      <rule name="Matroska version 4 or greater?" xpath="mi:MediaInfo/mi:track[@type='General']/mi:Format_Version&gt;='4'" actual="" outcome="fail"/>
      <rule name="Unique ID is present?" xpath="mi:MediaInfo/mi:track[@type='General']/mi:UniqueID" actual="" outcome="fail"/>
      <rule name="Is the video FFV1?" xpath="mi:MediaInfo/mi:track[@type='Video']/mi:Format" outcome="pass"/>
      <rule name="FFV1 is version 3.4 or later?" xpath="mi:MediaInfo/mi:track[@type='Video']/mi:Format_Version&gt;='3.4'" actual="" outcome="fail"/>
      <rule name="FFV1 is encoded in GOP size of 1?" xpath="mi:MediaInfo/mi:track[@type='Video']/mi:Format_Settings_GOP='N=1'" actual="" outcome="fail"/>
      <rule name="FFV1 uses slice crcs?" xpath="mi:MediaInfo/mi:track[@type='Video']/mi:extra/ErrorDetectionType='Per slice'" actual="" outcome="fail"/>
      <rule name="Display Aspect Ratio is 4/3?" xpath="mi:MediaInfo/mi:track[@type='Video']/mi:DisplayAspectRatio='1.333'" outcome="pass"/>
      <rule name="Frame Rate is Constant?" xpath="mi:MediaInfo/mi:track[@type='Video']/mi:FrameRate_Mode='CFR'" outcome="pass"/>
      <rule name="ColorSpace is YUV?" xpath="mi:MediaInfo/mi:track[@type='Video']/mi:ColorSpace='YUV'" outcome="pass"/>
      <rule name="Chroma Subsampling is 4:2:2?" xpath="mi:MediaInfo/mi:track[@type='Video']/mi:ChromaSubsampling='4:2:2'" actual="4:4:4" outcome="fail"/>
      <rule name="Audio is PCM?" xpath="mi:MediaInfo/mi:track[@type='Audio']/mi:Format='PCM'" actual="" outcome="fail"/>
      <rule name="Audio is 48000 Hz?" xpath="mi:MediaInfo/mi:track[@type='Audio']/mi:SamplingRate='48000'" actual="" outcome="fail"/>
      <policy name="Is it PAL or NTSC?" type="or" rules_run="2" fail_count="2" pass_count="0" outcome="fail">
        <policy name="Is it PAL?" type="and" rules_run="4" fail_count="3" pass_count="1" outcome="fail">
          <rule name="Width is 720?" xpath="mi:MediaInfo/mi:track[@type='Video']/mi:Width='720'" actual="320" outcome="fail"/>
          <rule name="Height is 512?" xpath="mi:MediaInfo/mi:track[@type='Video']/mi:Height='512'" actual="240" outcome="fail"/>
          <rule name="Frame Rate is 25?" xpath="mi:MediaInfo/mi:track[@type='Video']/mi:FrameRate='25.000'" outcome="pass"/>
          <rule name="Scan Order is Top Field First?" xpath="mi:MediaInfo/mi:track[@type='Video']/mi:ScanOrder='TFF'" actual="" outcome="fail"/>
        </policy>
        <policy name="Is it NTSC?" type="and" rules_run="4" fail_count="4" pass_count="0" outcome="fail">
          <rule name="Width is 720?" xpath="mi:MediaInfo/mi:track[@type='Video']/mi:Width='720'" actual="320" outcome="fail"/>
          <rule name="Height is 486?" xpath="mi:MediaInfo/mi:track[@type='Video']/mi:Height='486'" actual="240" outcome="fail"/>
          <rule name="Frame Rate is 29.97?" xpath="mi:MediaInfo/mi:track[@type='Video']/mi:FrameRate='29.970'" actual="25.000" outcome="fail"/>
          <rule name="Scan Order is Bottom Field First?" xpath="mi:MediaInfo/mi:track[@type='Video']/mi:ScanOrder='BFF'" actual="" outcome="fail"/>
        </policy>
      </policy>
      <policy name="Bit Depth is 8 or 10?" type="or" rules_run="2" fail_count="1" pass_count="1" outcome="pass">
        <rule name="Bit Depth is 8?" xpath="mi:MediaInfo/mi:track[@type='Video']/mi:BitDepth='8'" outcome="pass"/>
        <rule name="Bit Depth is 10?" xpath="mi:MediaInfo/mi:track[@type='Video']/mi:BitDepth='10'" actual="8" outcome="fail"/>
      </policy>
      <policy name="Audio is Stereo or Mono?" type="or" rules_run="2" fail_count="2" pass_count="0" outcome="fail">
        <rule name="Audio is mono?" xpath="mi:MediaInfo/mi:track[@type='Audio']/mi:Channels='1'" actual="" outcome="fail"/>
        <rule name="Audio is stereo?" xpath="mi:MediaInfo/mi:track[@type='Audio']/mi:Channels='2'" actual="" outcome="fail"/>
      </policy>
      <policy name="Bit Depth is 16 or 24?" type="or" rules_run="2" fail_count="2" pass_count="0" outcome="fail">
        <rule name="Bit Depth is 16?" xpath="mi:MediaInfo/mi:track[@type='Audio']/mi:BitDepth='16'" actual="" outcome="fail"/>
        <rule name="Bit Depth is 24?" xpath="mi:MediaInfo/mi:track[@type='Audio']/mi:BitDepth='24'" actual="" outcome="fail"/>
      </policy>
    </policy>
  </media>
</MediaConch>
