-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrawcooked_mkv_policy.xml
executable file
·46 lines (46 loc) · 4 KB
/
rawcooked_mkv_policy.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0"?>
<policy type="or" name="BFI RAWcooked FFV1 Matroska conformance checks" license="MIT">
<description>Test that the video file is suitable for preservation.
- Container format is Matroska with error detection (CRC)
- Video format is FFV1 with error detection (CRC) and with Intra mode
- Maintainer BFI</description>
<policy type="and" name="BFI RAWcooked MKV checks">
<policy type="or" name="Check for Matroska container type">
<rule name="Container is MKV" value="Format" tracktype="General" occurrence="*" operator="=">Matroska</rule>
<rule name="Container is MKV/RAWcooked" value="Format" tracktype="General" occurrence="*" operator="=">Matroska / RAWcooked</rule>
</policy>
<policy type="or" name="Reversibility data present">
<rule name="Reversibility data file attached" value="Segment/Attachments/AttachedFile/FileName/Data" occurrence="*" operator="=" scope="mmt">RAWcooked reversibility data</rule>
<rule name="Container is MKV/RAWcooked" value="Format" tracktype="General" occurrence="*" operator="=">Matroska / RAWcooked</rule>
</policy>
<rule name="MKV version 4 or greater" value="Format_Version" tracktype="General" occurrence="*" operator=">=">4</rule>
<rule name="Unique ID is present" value="UniqueID" tracktype="General" occurrence="*"/>
<rule name="Duration field exists" value="Duration" tracktype="General" occurrence="*"/>
<rule name="Container uses error detection" value="extra/ErrorDetectionType" tracktype="General" occurrence="*" operator="=">Per level 1</rule>
<rule name="Overall bit rate more than" value="OverallBitRate" tracktype="General" occurrence="*" operator=">=">300</rule>
<rule name="Video is FFV1" value="Format" tracktype="Video" occurrence="*" operator="=">FFV1</rule>
<rule name="FFV1 version 3.4 or later" value="Format_Version" tracktype="Video" occurrence="*" operator=">=">3.4</rule>
<rule name="GOP size of 1" value="Format_Settings_GOP" tracktype="Video" occurrence="*" operator="=">N=1</rule>
<rule name="FFV1 is lossless" value="Compression_Mode" tracktype="Video" occurrence="*" operator="=">Lossless</rule>
<rule name="Frame Rate is Constant?" value="FrameRate_Mode" tracktype="Video" occurrence="*" operator="=">CFR</rule>
<rule name="Video uses error detection" value="extra/ErrorDetectionType" tracktype="Video" occurrence="*" operator="=">Per slice</rule>
<policy type="or" name="MaxSliceCount greater than 16">
<rule name="Video minimum slice count" value="extra/MaxSlicesCount" tracktype="Video" occurrence="*" operator=">=">16</rule>
<rule name="Video minimum slice count" value="Format_Settings_SliceCount" tracktype="Video" occurrence="*" operator=">=">16</rule>
</policy>
<rule name="Duration field exists" value="Duration" tracktype="Video" occurrence="*"/>
<rule name="Height is gt/et 1280" value="Height" tracktype="Video" occurrence="*" operator=">=">900</rule>
<rule name="Width is gt/et 2048" value="Width" tracktype="Video" occurrence="*" operator=">=">1000</rule>
<rule name="Compression mode is Lossless" value="Compression_Mode" tracktype="Video" occurrence="*" operator="=">Lossless</rule>
<rule name="Pixel aspect ratio is 1.0" value="PixelAspectRatio" tractype="Video" occurrence="*" operator="=">1.000</rule>
<policy type="or" name="Colourspace check RGB or Y luma only">
<rule name="Colour space is RGB" value="ColorSpace" tracktype="Video" occurrence="*" operator="=">RGB</rule>
<rule name="Colour space is Y Luma" value="ColorSpace" tracktype="Video" occurrence="*" operator="=">Y</rule>
</policy>
<policy type="or" name="BitDepth is 10,12 or 16">
<rule name="BitDepth is 16" value="BitDepth" tracktype="Video" occurrence="*" operator="=">16</rule>
<rule name="BitDepth is 12" value="BitDepth" tracktype="Video" occurrence="*" operator="=">12</rule>
<rule name="BitDepth is 10" value="BitDepth" tracktype="Video" occurrence="*" operator="=">10</rule>
</policy>
</policy>
</policy>