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
...@@ -2,6 +2,8 @@ the policy format of mediaconch is not well documented yet, here some observatio ...@@ -2,6 +2,8 @@ the policy format of mediaconch is not well documented yet, here some observatio
(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:
...@@ -10,15 +12,18 @@ real rule fails. Example: ...@@ -10,15 +12,18 @@ real rule fails. Example:
<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,6 +42,8 @@ ...@@ -42,6 +42,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>
...@@ -59,3 +61,4 @@ ...@@ -59,3 +61,4 @@
</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>
...@@ -66,3 +68,4 @@ ...@@ -66,3 +68,4 @@
</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>
...@@ -66,3 +68,4 @@ ...@@ -66,3 +68,4 @@
</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