Skip to content
Snippets Groups Projects
Commit d9089f82 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- added rule to express that either a stream should not exist or exist with...

- added rule to express that either a stream should not exist or exist with given properties to all film-profiles
parent f63d0242
No related branches found
No related tags found
No related merge requests found
the policy format of mediaconch is not well documented yet, here some observations the policy format of mediaconch is not well documented yet, here some observations
(date: 2017-02-20) (date: 2017-02-20)
- within the policy-xml there are no XML-comments allowed - within the policy-xml there are no XML-comments allowed
(will be fixed in upcoming mediaconch version)
- tag <description /> is only allowed on top level, otherwise it will be - tag <description /> is only allowed on top level, otherwise it will be
interpreted as a rule with value "true". This could affect the result if next interpreted as a rule with value "true". This could affect the result if next
real rule fails. Example: real rule fails. Example:
<policy type="or" name="foo"> <policy type="or" name="foo">
<description>foo</description> <description>foo</description>
<rule name="bar" value="baz" tracktype="General" occurrence="*" operator="=">1</rule> <rule name="bar" value="baz" tracktype="General" occurrence="*" operator="=">1</rule>
</policy> </policy>
will always "true", also if <rule name="bar" .. /> fails. will always "true", also if <rule name="bar" .. /> fails.
- there is no way to express an "optional depends". This means you can't
express a rule like "Either Audio or not, but if Audio it must be a FLAC"
- to express that either a stream should not exist or exist with given properties, try this:
<policy type="or" name="Audio">
<rule name="Audio does not exist" value="Default" tracktype="Audio" occurrence="*" operator="must not exist"/>
<policy type="or" name="Audio exist">
... <!-- here to check given audio properties -->
</policy>
</policy>
Expected video-sizes: Expected video-sizes:
- a good source about videosizes could be https://de.wikipedia.org/wiki/Digital_Intermediate - a good source about videosizes could be https://de.wikipedia.org/wiki/Digital_Intermediate
Preservation policy for video material of SLUB: Preservation policy for video material of SLUB:
- there is no policy offically released yet, please be patient… :) - there is no policy offically released yet, please be patient… :)
...@@ -26,3 +31,4 @@ Howto check files against policy: ...@@ -26,3 +31,4 @@ Howto check files against policy:
- you need an installed mediaconch - you need an installed mediaconch
- on Bash call: - on Bash call:
$> mediaconch --Policy=SLUB_mediaconch_policy_retrodigitized_film35mm.xml -fh file-to-test.mkv > report.html $> mediaconch --Policy=SLUB_mediaconch_policy_retrodigitized_film35mm.xml -fh file-to-test.mkv > report.html
...@@ -42,19 +42,22 @@ ...@@ -42,19 +42,22 @@
</policy> </policy>
<policy type="or" name="Audio"> <policy type="or" name="Audio">
<rule name="General/AudioCount is 1" value="AudioCount" tracktype="General" occurrence="*" operator="=">1</rule> <rule name="Audio does not exist" value="Default" tracktype="Audio" occurrence="*" operator="must not exist"/>
<policy type="or" name="Audio is PCM or FLAC"> <policy type="or" name="Audio exist">
<rule name="Audio is PCM" value="Format" tracktype="Audio" occurrence="*" operator="=">PCM</rule> <rule name="General/AudioCount is 1" value="AudioCount" tracktype="General" occurrence="*" operator="=">1</rule>
<rule name="Audio is FLAC" value="Format" tracktype="Audio" occurrence="*" operator="=">FLAC</rule> <policy type="or" name="Audio is PCM or FLAC">
</policy> <rule name="Audio is PCM" value="Format" tracktype="Audio" occurrence="*" operator="=">PCM</rule>
<rule name="Audio is 48000 Hz?" value="SamplingRate" tracktype="Audio" occurrence="*" operator="=">48000</rule> <rule name="Audio is FLAC" value="Format" tracktype="Audio" occurrence="*" operator="=">FLAC</rule>
<policy type="or" name="Audio is Stereo or Mono?"> </policy>
<rule name="Audio is mono?" value="Channels" tracktype="Audio" occurrence="*" operator="=">1</rule> <rule name="Audio is 48000 Hz?" value="SamplingRate" tracktype="Audio" occurrence="*" operator="=">48000</rule>
<rule name="Audio is stereo?" value="Channels" tracktype="Audio" occurrence="*" operator="=">2</rule> <policy type="or" name="Audio is Stereo or Mono?">
</policy> <rule name="Audio is mono?" value="Channels" tracktype="Audio" occurrence="*" operator="=">1</rule>
<policy type="or" name="Audio Bit Depth is 16 or 24?"> <rule name="Audio is stereo?" value="Channels" tracktype="Audio" occurrence="*" operator="=">2</rule>
<rule name="Bit Depth is 16?" value="BitDepth" tracktype="Audio" occurrence="*" operator="=">16</rule> </policy>
<rule name="Bit Depth is 24?" value="BitDepth" tracktype="Audio" occurrence="*" operator="=">24</rule> <policy type="or" name="Audio Bit Depth is 16 or 24?">
<rule name="Bit Depth is 16?" value="BitDepth" tracktype="Audio" occurrence="*" operator="=">16</rule>
<rule name="Bit Depth is 24?" value="BitDepth" tracktype="Audio" occurrence="*" operator="=">24</rule>
</policy>
</policy> </policy>
</policy> </policy>
</policy> </policy>
......
...@@ -49,6 +49,8 @@ ...@@ -49,6 +49,8 @@
</policy> </policy>
<policy type="or" name="Audio"> <policy type="or" name="Audio">
<rule name="Audio does not exist" value="Default" tracktype="Audio" occurrence="*" operator="must not exist"/>
<policy type="or" name="Audio exist">
<rule name="General/AudioCount is 1" value="AudioCount" tracktype="General" occurrence="*" operator="=">1</rule> <rule name="General/AudioCount is 1" value="AudioCount" tracktype="General" occurrence="*" operator="=">1</rule>
<policy type="or" name="Audio is PCM or FLAC"> <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 PCM" value="Format" tracktype="Audio" occurrence="*" operator="=">PCM</rule>
...@@ -63,6 +65,7 @@ ...@@ -63,6 +65,7 @@
<rule name="Bit Depth is 16?" value="BitDepth" tracktype="Audio" occurrence="*" operator="=">16</rule> <rule name="Bit Depth is 16?" value="BitDepth" tracktype="Audio" occurrence="*" operator="=">16</rule>
<rule name="Bit Depth is 24?" value="BitDepth" tracktype="Audio" occurrence="*" operator="=">24</rule> <rule name="Bit Depth is 24?" value="BitDepth" tracktype="Audio" occurrence="*" operator="=">24</rule>
</policy> </policy>
</policy>
</policy> </policy>
</policy> </policy>
</policy> </policy>
...@@ -49,19 +49,22 @@ ...@@ -49,19 +49,22 @@
</policy> </policy>
<policy type="or" name="Audio"> <policy type="or" name="Audio">
<rule name="General/AudioCount is 1" value="AudioCount" tracktype="General" occurrence="*" operator="=">1</rule> <rule name="Audio does not exist" value="Default" tracktype="Audio" occurrence="*" operator="must not exist"/>
<policy type="or" name="Audio is PCM or FLAC"> <policy type="or" name="Audio exist">
<rule name="Audio is PCM" value="Format" tracktype="Audio" occurrence="*" operator="=">PCM</rule> <rule name="General/AudioCount is 1" value="AudioCount" tracktype="General" occurrence="*" operator="=">1</rule>
<rule name="Audio is FLAC" value="Format" tracktype="Audio" occurrence="*" operator="=">FLAC</rule> <policy type="or" name="Audio is PCM or FLAC">
</policy> <rule name="Audio is PCM" value="Format" tracktype="Audio" occurrence="*" operator="=">PCM</rule>
<rule name="Audio is 48000 Hz?" value="SamplingRate" tracktype="Audio" occurrence="*" operator="=">48000</rule> <rule name="Audio is FLAC" value="Format" tracktype="Audio" occurrence="*" operator="=">FLAC</rule>
<policy type="or" name="Audio is Stereo or Mono?"> </policy>
<rule name="Audio is mono?" value="Channels" tracktype="Audio" occurrence="*" operator="=">1</rule> <rule name="Audio is 48000 Hz?" value="SamplingRate" tracktype="Audio" occurrence="*" operator="=">48000</rule>
<rule name="Audio is stereo?" value="Channels" tracktype="Audio" occurrence="*" operator="=">2</rule> <policy type="or" name="Audio is Stereo or Mono?">
</policy> <rule name="Audio is mono?" value="Channels" tracktype="Audio" occurrence="*" operator="=">1</rule>
<policy type="or" name="Audio Bit Depth is 16 or 24?"> <rule name="Audio is stereo?" value="Channels" tracktype="Audio" occurrence="*" operator="=">2</rule>
<rule name="Bit Depth is 16?" value="BitDepth" tracktype="Audio" occurrence="*" operator="=">16</rule> </policy>
<rule name="Bit Depth is 24?" value="BitDepth" tracktype="Audio" occurrence="*" operator="=">24</rule> <policy type="or" name="Audio Bit Depth is 16 or 24?">
<rule name="Bit Depth is 16?" value="BitDepth" tracktype="Audio" occurrence="*" operator="=">16</rule>
<rule name="Bit Depth is 24?" value="BitDepth" tracktype="Audio" occurrence="*" operator="=">24</rule>
</policy>
</policy> </policy>
</policy> </policy>
</policy> </policy>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment