From a69f42d023da9fac81476b71678fd398ff17ae2f Mon Sep 17 00:00:00 2001
From: Andreas Romeyke <andreas.romeyke@slub-dresden.de>
Date: Mon, 29 Jul 2019 14:35:25 +0200
Subject: [PATCH] - added interlace rule - fixed Aspectratio for BetaCam/VHS

---
 ...mediaconch_policy_retrodigitized_video.xml | 36 ++++++++++++++++---
 1 file changed, 31 insertions(+), 5 deletions(-)

diff --git a/SLUB_mediaconch_policy_retrodigitized_video.xml b/SLUB_mediaconch_policy_retrodigitized_video.xml
index 0f91063..dd4efb9 100644
--- a/SLUB_mediaconch_policy_retrodigitized_video.xml
+++ b/SLUB_mediaconch_policy_retrodigitized_video.xml
@@ -25,7 +25,7 @@
       <rule name="GOP size of 1" value="Format_Settings_GOP" tracktype="Video" occurrence="*" operator="=">N=1</rule>
       <rule name="Video uses error detection" value="extra/ErrorDetectionType" tracktype="Video" occurrence="*" operator="=">Per slice</rule>
       <rule name="Frame Rate is Constant" value="FrameRate_Mode" tracktype="Video" occurrence="*" operator="=">CFR</rule>
-      <rule name="Video/ScanType is Progressive" value="ScanType" tracktype="Video" occurrence="*" operator="=">Progressive</rule>
+      
       <rule name="Video/Compression_Mode is Lossless" value="Compression_Mode" tracktype="Video" occurrence="*" operator="=">Lossless</rule>
       
       <policy type="or" name="Video is PAL/NTSC">
@@ -43,16 +43,42 @@
           <rule name="Video/PixelAspectRatio is 1" value="PixelAspectRatio" tracktype="Video" occurrence="*" operator="=">1</rule>
           <rule name="Video/DisplayAspectRatio is 1.333" value="DisplayAspectRatio" tracktype="Video" occurrence="*" operator="=">1.333</rule>
           <rule name="General/FrameRate is 25.000" value="FrameRate" tracktype="General" occurrence="*" operator="=">25.000</rule>
-          <rule name="Video/ScanType is Progressive" value="ScanType" tracktype="Video" occurrence="*" operator="=">Progressive</rule>
+          <policy name="Scantype" type="or">
+            <rule name="Video/ScanType is Progressive" value="ScanType" tracktype="Video" occurrence="*" operator="=">Progressive</rule>
+            <rule name="Video/ScanType is Interlaced" value="ScanType" tracktype="Video" occurrence="*" operator="=">Interlaced</rule>
+          </policy>
+        </policy>
+        <policy type="and" name="VHS/BetaCam retrodigitized">
+          <rule name="Video/Width is =768" value="Width" tracktype="Video" occurrence="*" operator="=">768</rule>
+          <rule name="Video/Height is =576" value="Height" tracktype="Video" occurrence="*" operator="=">576</rule>
+          <policy type="or" name="AspectRatio">
+            <policy name="PixelAspect 1.024" type="and">
+              <rule name="Video/PixelAspectRatio is 1.024" value="PixelAspectRatio" tracktype="Video" occurrence="*" operator="=">1.024</rule>
+              <rule name="Video/DisplayAspectRatio is 1.366" value="DisplayAspectRatio" tracktype="Video" occurrence="*" operator="=">1.366</rule>
+            </policy>
+            <policy name="PixelAspect 1.000" type="and">
+              <rule name="Video/PixelAspectRatio is 1.000" value="PixelAspectRatio" tracktype="Video" occurrence="*" operator="=">1.000</rule>
+              <rule name="Video/DisplayAspectRatio is 1.333" value="DisplayAspectRatio" tracktype="Video" occurrence="*" operator="=">1.333</rule>
+            </policy>
+            
+            </policy>
+            
+          <rule name="General/FrameRate is 25.000" value="FrameRate" tracktype="General" occurrence="*" operator="=">25.000</rule>
+          <policy name="Scantype" type="or">
+            <rule name="Video/ScanType is Progressive" value="ScanType" tracktype="Video" occurrence="*" operator="=">Progressive</rule>
+            <rule name="Video/ScanType is Interlaced" value="ScanType" tracktype="Video" occurrence="*" operator="=">Interlaced</rule>
+          </policy>
         </policy>
         <policy type="and" name="NTSC">
           <rule name="Video/Width is =640" value="Width" tracktype="Video" occurrence="*" operator="=">640</rule>
           <rule name="Video/Height is =480" value="Height" tracktype="Video" occurrence="*" operator="=">480</rule>
           <rule name="General/FrameRate is 30.000" value="FrameRate" tracktype="General" occurrence="*" operator="=">30.000</rule>
-          <rule name="Video/ScanType is Progressive" value="ScanType" tracktype="Video" occurrence="*" operator="=">Progressive</rule>
+          <policy name="Scantype" type="or">
+            <rule name="Video/ScanType is Progressive" value="ScanType" tracktype="Video" occurrence="*" operator="=">Progressive</rule>
+            <rule name="Video/ScanType is Interlaced" value="ScanType" tracktype="Video" occurrence="*" operator="=">Interlaced</rule>
+          </policy>
         </policy>
-      </policy>
-      
+      </policy>      
       <policy type="and" name="YUV">
         <rule name="ColorSpace is YUV" value="ColorSpace" tracktype="Video" occurrence="*" operator="=">YUV</rule>
         <rule name="Chroma Subsampling is 4:2:2" value="ChromaSubsampling" tracktype="Video" occurrence="*" operator="=">4:2:2</rule>
-- 
GitLab