<policy type="and" name="Example MKV FFV1 digitization policy">
  <description>Example of a digitization specification of analog SD video to FFV1 and Matroska. This policy contains a copy of another policy (Is this NTSC or PAL SD).</description>
  <rule name="Is it Matroska?" value="Format" tracktype="General" operator="=">Matroska</rule>
  <rule name="Matroska version 4 or greater?" value="Format_Version" tracktype="General" operator="&gt;=">4</rule>
  <rule name="Unique ID is present?" value="UniqueID" tracktype="General"/>
  <rule name="Is the video FFV1?" value="Format" tracktype="Video" operator="=">FFV1</rule>
  <rule name="FFV1 is version 3.4 or later?" value="Format_Version" tracktype="Video" operator="&gt;=">3.4</rule>
  <rule name="FFV1 is encoded in GOP size of 1?" value="Format_Settings_GOP" tracktype="Video" operator="=">N=1</rule>
  <rule name="FFV1 uses slice crcs?" value="extra/ErrorDetectionType" tracktype="Video" operator="=">Per slice</rule>
  <policy type="and" name="Display Aspect Ratio is 4/3ish?">
    <rule name="Display Aspect Ratio is &gt;= 1.315?" value="DisplayAspectRatio" tracktype="Video" operator="&gt;=">1.315</rule>
    <rule name="Display Aspect Ratio is &lt;= 1.351?" value="DisplayAspectRatio" tracktype="Video" operator="&lt;=">1.351</rule>
  </policy>
  <policy type="or" name="Is this NTSC or PAL SD?">
    <description>A test to see if the files use NTSC or PAL frame rates and sizes.</description>
    <policy type="or" name="Is this NTSC SD or PAL SD?">
      <policy type="and" name="Is this PAL?">
        <rule name="PAL height" value="Height" tracktype="Video" occurrence="1" operator="=">576</rule>
        <rule name="PAL Width" value="Width" tracktype="Video" occurrence="1" operator="=">720</rule>
        <rule name="PAL FrameRate" value="FrameRate" tracktype="Video" occurrence="1" operator="=">25.000</rule>
      </policy>
      <policy type="and" name="Is this NTSC?">
        <policy type="or" name="NTSC Height">
          <rule name="NTSC height" value="Height" tracktype="Video" occurrence="1" operator="=">486</rule>
          <rule name="NTSC-ish height" value="Height" tracktype="Video" occurrence="1" operator="=">480</rule>
        </policy>
        <rule name="NTSC Width" value="Width" tracktype="Video" occurrence="1" operator="=">720</rule>
        <rule name="NTSC FrameRate" value="FrameRate" tracktype="Video" occurrence="1" operator="=">29.970</rule>
      </policy>
    </policy>
    <rule name="Is Interlaced?" value="ScanType" tracktype="Video" occurrence="1" operator="=">Interlaced</rule>
  </policy>
  <rule name="Frame Rate is Constant?" value="FrameRate_Mode" tracktype="Video" operator="=">CFR</rule>
  <rule name="ColorSpace is YUV?" value="ColorSpace" tracktype="Video" operator="=">YUV</rule>
  <rule name="Chroma Subsampling is 4:2:2?" value="ChromaSubsampling" tracktype="Video" operator="=">4:2:2</rule>
  <policy type="or" name="Bit Depth is 8 or 10?">
    <rule name="Bit Depth is 8?" value="BitDepth" tracktype="Video" operator="=">8</rule>
    <rule name="Bit Depth is 10?" value="BitDepth" tracktype="Video" operator="=">10</rule>
  </policy>
  <rule name="Audio is PCM?" value="Format" tracktype="Audio" operator="=">PCM</rule>
  <rule name="Audio is 48000 Hz?" value="SamplingRate" tracktype="Audio" operator="=">48000</rule>
  <policy type="or" name="Audio is Stereo or Mono?">
    <rule name="Audio is mono?" value="Channels" tracktype="Audio" operator="=">1</rule>
    <rule name="Audio is stereo?" value="Channels" tracktype="Audio" operator="=">2</rule>
  </policy>
  <policy type="or" name="Bit Depth is 16 or 24?">
    <rule name="Bit Depth is 16?" value="BitDepth" tracktype="Audio" operator="=">16</rule>
    <rule name="Bit Depth is 24?" value="BitDepth" tracktype="Audio" operator="=">24</rule>
  </policy>
</policy>
