-
Notifications
You must be signed in to change notification settings - Fork 1
/
general_mkv_policy.xml
executable file
·86 lines (86 loc) · 7.64 KB
/
general_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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?xml version="1.0"?>
<policy type="or" name="BFI MKV video metadata error checks" license="MIT">
<description>Test that the video file is suitable for archiving.
- Container format is Matroska with error detection (CRC)
- Video format is FFV1 with error detection (CRC) and with Intra mode
- Maintainer Joanna White</description>
<policy type="and" name="BFI RAWcooked MKV checks">
<rule name="Container is MKV" value="Format" tracktype="General" occurrence="*" operator="=">Matroska</rule>
<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=">=">100</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>
<rule name="Video minimum slice count" value="extra/MaxSlicesCount" tracktype="Video" occurrence="*" operator=">=">16</rule>
<rule name="Duration field exists" value="Duration" tracktype="Video" occurrence="*"/>
<rule name="Video/ChromaSubsampling is 4:2:2" value="ChromaSubsampling" tracktype="Video" occurrence="*" operator="=">4:2:2</rule>
<rule name="Video/ColorSpace is YUV" value="ColorSpace" tracktype="Video" occurrence="*" operator="=">YUV</rule>
<rule name="Video/BitDepth is 10" value="BitDepth" tracktype="Video" occurrence="*" operator="=">10</rule>
<rule name="Video/colour_description_present is Yes" value="colour_description_present" tracktype="Video" occurrence="*" operator="=">Yes</rule>
<policy type="and" name="Colour information comparison">
<policy type="or" name="Colour primaries">
<rule name="Video/colour_primaries is BT.601 PAL" value="colour_primaries" tracktype="Video" occurrence="*" operator="=">BT.601 PAL</rule>
<rule name="Video/colour_primaries is BT.470 System B/G" value="colour_primaries" tracktype="Video" occurrence="*" operator="=">BT.470 System B/G</rule>
<rule name="Video/colour_primaries is BT.709" value="colour_primaries" tracktype="Video" occurrence="*" operator="=">BT.709</rule>
</policy>
<policy type="or" name="Transfer characteristics">
<rule name="Video/transfer_characteristics is BT.709" value="transfer_characteristics" tracktype="Video" occurrence="*" operator="=">BT.709</rule>
<rule name="Video/transfer_characteristics is BT.601" value="transfer_characteristics" tracktype="Video" occurrence="*" operator="=">BT.601</rule>
</policy>
<policy type="or" name="Matrix coefficients">
<rule name="Video/matrix_coefficients is BT.601" value="matrix_coefficients" tracktype="Video" occurrence="*" operator="=">BT.601</rule>
<rule name="Video/matrix_coefficients is BT.709" value="matrix_coefficients" tracktype="Video" occurrence="*" operator="=">BT.709</rule>
<rule name="Video/matrix_coefficients is BT.470 System B/G" value="matrix_coefficients" tracktype="Video" occurrence="*" operator="=">BT.470 System B/G</rule>
</policy>
</policy>
<policy type="or" name="ScanType is progressive or interlaced / ScanOrder is TFF or BFF">
<rule name="FFV1 is progressive" value="ScanType" tracktype="Video" occurrence="*" operator="=">Progressive</rule>
<rule name="FFV1 is interlaced" value="ScanType" tracktype="Video" occurrence="*" operator="=">Interlaced</rule>
<rule name="Video/ScanOrder is TFF" value="ScanOrder" tracktype="Video" occurrence="*" operator="=">TFF</rule>
<rule name="Video/ScanOrder is BFF" value="ScanOrder" tracktype="Video" occurrence="*" operator="=">BFF</rule>
</policy>
<policy type="or" name="Height, width, DAR correct for video standard">
<policy type="and" name="Height, width and DAR correct for PAL 4:3">
<rule name="Video/Width is 720" value="Width" tracktype="Video" occurrence="*" operator="=">720</rule>
<rule name="Video/Height is 576" value="Height" tracktype="Video" occurrence="*" operator="=">576</rule>
<rule name="Video/DisplayAspectRatio is 1.333" value="DisplayAspectRatio" tracktype="Video" occurrence="*" operator="=">1.333</rule>
</policy>
<policy type="and" name="Height, width and DAR correct for PAL 16:9">
<rule name="Video/Width is 720" value="Width" tracktype="Video" occurrence="*" operator="=">720</rule>
<rule name="Video/Height is 576" value="Height" tracktype="Video" occurrence="*" operator="=">576</rule>
<rule name="Video/DisplayAspectRatio is 1.778" value="DisplayAspectRatio" tracktype="Video" occurrence="*" operator="=">1.778</rule>
</policy>
<policy type="and" name="HD 720 height, width and DAR correct">
<rule name="Video/Width is 1280" value="Width" tracktype="Video" occurrence="*" operator="=">1280</rule>
<rule name="Video/Height is 720" value="Height" tracktype="Video" occurrence="*" operator="=">720</rule>
<rule name="Video/DisplayAspectRatio is 1.778" value="DisplayAspectRatio" tracktype="Video" occurrence="*" operator="=">1.778</rule>
</policy>
<policy type="and" name="HD 1080 height, width and DAR correct">
<rule name="Video/Width is 1920" value="Width" tracktype="Video" occurrence="*" operator="=">1920</rule>
<rule name="Video/Height is 1080" value="Height" tracktype="Video" occurrence="*" operator="=">1080</rule>
<rule name="Video/DisplayAspectRatio is 1.778" value="DisplayAspectRatio" tracktype="Video" occurrence="*" operator="=">1.778</rule>
</policy>
</policy>
<policy type="or" name="Framerate is 25.000 or 29.970">
<rule name="Video/FrameRate is 25.000" value="FrameRate" tracktype="Video" occurrence="*" operator="=">25.000</rule>
<rule name="Video/FrameRate is 29.970" value="FrameRate" tracktype="Video" occurrence="*" operator="=">29.970</rule>
</policy>
<policy type="or" name="Audio is PCM or FLAC">
<rule name="Audio is PCM" value="Format" tracktype="Audio" occurrence="*" operator="=">PCM</rule>
<rule name="Audio is FLAC" value="Format" tracktype="Audio" occurrence="*" operator="=">FLAC</rule>
</policy>
<rule name="Audio/Format_Settings_Sign is Signed" value="Format_Settings_Sign" tracktype="Audio" occurrence="*" operator="=">Signed</rule>
<rule name="Audio/BitRate_Mode is CBR" value="BitRate_Mode" tracktype="Audio" occurrence="*" operator="=">CBR</rule>
<rule name="Audio/SamplingRate is 48000" value="SamplingRate" tracktype="Audio" occurrence="*" operator="=">48000</rule>
<policy type="or" name="Audio BitDepth">
<rule name="Audio/BitDepth is 16" value="BitDepth" tracktype="Audio" occurrence="*" operator="=">16</rule>
<rule name="Audio/BitDepth is 24" value="BitDepth" tracktype="Audio" occurrence="*" operator="=">24</rule>
</policy>
</policy>
</policy>