From 14836fa2d57c691c9fea3ec127f2845783a100cb Mon Sep 17 00:00:00 2001 From: Andreas Romeyke <art1@andreas-romeyke.de> Date: Mon, 7 Nov 2022 12:51:36 +0100 Subject: [PATCH] - added workaround to handle profiles with legacy and current mediaconch, closes https://git.slub-dresden.de/digital-preservation/mediaconch-profile/-/issues/1 --- CHANGES | 7 +++++++ SLUB_mediaconch_policy_retrodigitized_audio.xml | 7 ++++++- SLUB_mediaconch_policy_retrodigitized_film16mm.xml | 7 ++++++- SLUB_mediaconch_policy_retrodigitized_film35mm.xml | 10 ++++++---- SLUB_mediaconch_policy_retrodigitized_film8mm.xml | 7 ++++++- SLUB_mediaconch_policy_retrodigitized_video.xml | 13 ++++++------- 6 files changed, 37 insertions(+), 14 deletions(-) create mode 100644 CHANGES diff --git a/CHANGES b/CHANGES new file mode 100644 index 0000000..6353525 --- /dev/null +++ b/CHANGES @@ -0,0 +1,7 @@ +2022-10-24: between Mediaconch 22.03 and 22.09: + * the libmediainfo output changed for track unique id, now operator "exists" + needed to match. + * TimeCode_Striped replaced by TimeCode_Stripped (value was buggy in previous + builds anyway), in current profiles not used! + * ConformanceChecks replaced by ConformanceErrors, in current profile not + used diff --git a/SLUB_mediaconch_policy_retrodigitized_audio.xml b/SLUB_mediaconch_policy_retrodigitized_audio.xml index d3d8b09..2ed17fe 100644 --- a/SLUB_mediaconch_policy_retrodigitized_audio.xml +++ b/SLUB_mediaconch_policy_retrodigitized_audio.xml @@ -8,6 +8,8 @@ - Example MKV FFV1 digitization policy.xml - Video file is MKV + FFV1-Intra + PCM or FLAC with CRC32 everywhere.xml If there are any policy violations or suggestions, please send an email to langzeitarchiv@slub-dresden.de + + Hint: this policy is well tested with mediaconch v18.0 and v22.09 </description> <policy type="and" name="MKV, FFV1 Intra, PCM/FLAC, error detection"> <policy type="and" name="Container"> @@ -15,7 +17,10 @@ <rule name="General/FileExtension is mka" value="FileExtension" tracktype="General" occurrence="*" operator="=">mka</rule> </policy> <rule name="Container is MKV" value="Format" tracktype="General" occurrence="*" operator="=">Matroska</rule> - <rule name="Unique ID is present" value="UniqueID" tracktype="General" occurrence="*"/> + <policy name="22.09_or_legacy" type="or"> + <rule name="Unique ID is present" value="UniqueID" tracktype="General" operator="exists" occurrence="*" /> + <rule name="Unique ID is present (legacy mediaconch older v22.09)" value="UniqueID" tracktype="General" occurrence="*"/> + </policy> <rule name="Container uses error detection" value="extra/ErrorDetectionType" tracktype="General" occurrence="*" operator="=">Per level 1</rule> <rule name="General/Format_Version is 4" value="Format_Version" tracktype="General" occurrence="*" operator="=">4</rule> </policy> diff --git a/SLUB_mediaconch_policy_retrodigitized_film16mm.xml b/SLUB_mediaconch_policy_retrodigitized_film16mm.xml index e703f50..110e06c 100644 --- a/SLUB_mediaconch_policy_retrodigitized_film16mm.xml +++ b/SLUB_mediaconch_policy_retrodigitized_film16mm.xml @@ -9,12 +9,17 @@ - Example MKV FFV1 digitization policy.xml - Video file is MKV + FFV1-Intra + PCM or FLAC with CRC32 everywhere.xml If there are any policy violations or suggestions, please send an email to langzeitarchiv@slub-dresden.de + + Hint: this policy is well tested with mediaconch v18.0 and v22.09 </description> <policy type="and" name="MKV, FFV1 Intra, PCM/FLAC, error detection"> <policy type="and" name="Container"> <rule name="General/FileExtension is mkv" value="FileExtension" tracktype="General" occurrence="*" operator="=">mkv</rule> <rule name="Container is MKV" value="Format" tracktype="General" occurrence="*" operator="=">Matroska</rule> - <rule name="Unique ID is present" value="UniqueID" tracktype="General" occurrence="*"/> + <policy name="22.09_or_legacy" type="or"> + <rule name="Unique ID is present" value="UniqueID" tracktype="General" operator="exists" occurrence="*" /> + <rule name="Unique ID is present (legacy mediaconch older v22.09)" value="UniqueID" tracktype="General" occurrence="*"/> + </policy> <rule name="Container uses error detection" value="extra/ErrorDetectionType" tracktype="General" occurrence="*" operator="=">Per level 1</rule> <rule name="General/Format_Version is 4" value="Format_Version" tracktype="General" occurrence="*" operator="=">4</rule> <policy type="and" name="FrameRate from 12Hz till 32Hz"> diff --git a/SLUB_mediaconch_policy_retrodigitized_film35mm.xml b/SLUB_mediaconch_policy_retrodigitized_film35mm.xml index 8f49369..996c80d 100644 --- a/SLUB_mediaconch_policy_retrodigitized_film35mm.xml +++ b/SLUB_mediaconch_policy_retrodigitized_film35mm.xml @@ -8,14 +8,17 @@ - Example MKV FFV1 digitization policy.xml - Video file is MKV + FFV1-Intra + PCM or FLAC with CRC32 everywhere.xml If there are any policy violations or suggestions, please send an email to langzeitarchiv@slub-dresden.de + + Hint: this policy is well tested with mediaconch v18.0 and v22.09 </description> <policy type="and" name="MKV, FFV1 Intra, PCM/FLAC, error detection"> - <policy type="and" name="Container"> <rule name="General/FileExtension is mkv" value="FileExtension" tracktype="General" occurrence="*" operator="=">mkv</rule> <rule name="Container is MKV" value="Format" tracktype="General" occurrence="*" operator="=">Matroska</rule> - <rule name="Unique ID is present" value="UniqueID" tracktype="General" occurrence="*"/> - + <policy name="22.09_or_legacy" type="or"> + <rule name="Unique ID is present" value="UniqueID" tracktype="General" operator="exists" occurrence="*" /> + <rule name="Unique ID is present (legacy mediaconch older v22.09)" value="UniqueID" tracktype="General" occurrence="*"/> + </policy> <rule name="Container uses error detection" value="extra/ErrorDetectionType" tracktype="General" occurrence="*" operator="=">Per level 1</rule> <rule name="General/Format_Version is 4" value="Format_Version" tracktype="General" occurrence="*" operator="=">4</rule> <policy type="and" name="FrameRate from 12Hz till 32Hz"> @@ -23,7 +26,6 @@ <rule name="General/FrameRate is 32.000 or lower" value="FrameRate" tracktype="General" occurrence="*" operator="<=">32.000</rule> </policy> </policy> - <policy type="and" name="Video"> <rule name="Video is FFV1" value="Format" tracktype="Video" occurrence="*" operator="=">FFV1</rule> <rule name="FFV1 is version 3.4 or later" value="Format_Version" tracktype="Video" occurrence="*" operator=">=">3.4</rule> diff --git a/SLUB_mediaconch_policy_retrodigitized_film8mm.xml b/SLUB_mediaconch_policy_retrodigitized_film8mm.xml index 3b61f52..1c06ae9 100644 --- a/SLUB_mediaconch_policy_retrodigitized_film8mm.xml +++ b/SLUB_mediaconch_policy_retrodigitized_film8mm.xml @@ -9,12 +9,17 @@ - Example MKV FFV1 digitization policy.xml - Video file is MKV + FFV1-Intra + PCM or FLAC with CRC32 everywhere.xml If there are any policy violations or suggestions, please send an email to langzeitarchiv@slub-dresden.de + + Hint: this policy is well tested with mediaconch v18.0 and v22.09 </description> <policy type="and" name="MKV, FFV1 Intra, PCM/FLAC, error detection"> <policy type="and" name="Container"> <rule name="General/FileExtension is mkv" value="FileExtension" tracktype="General" occurrence="*" operator="=">mkv</rule> <rule name="Container is MKV" value="Format" tracktype="General" occurrence="*" operator="=">Matroska</rule> - <rule name="Unique ID is present" value="UniqueID" tracktype="General" occurrence="*"/> + <policy name="22.09_or_legacy" type="or"> + <rule name="Unique ID is present" value="UniqueID" tracktype="General" operator="exists" occurrence="*" /> + <rule name="Unique ID is present (legacy mediaconch older v22.09)" value="UniqueID" tracktype="General" occurrence="*"/> + </policy> <rule name="Container uses error detection" value="extra/ErrorDetectionType" tracktype="General" occurrence="*" operator="=">Per level 1</rule> <rule name="General/Format_Version is 4" value="Format_Version" tracktype="General" occurrence="*" operator="=">4</rule> <policy type="and" name="FrameRate from 12Hz till 32Hz"> diff --git a/SLUB_mediaconch_policy_retrodigitized_video.xml b/SLUB_mediaconch_policy_retrodigitized_video.xml index 95af265..cafe991 100644 --- a/SLUB_mediaconch_policy_retrodigitized_video.xml +++ b/SLUB_mediaconch_policy_retrodigitized_video.xml @@ -9,15 +9,19 @@ - Example MKV FFV1 digitization policy.xml - Video file is MKV + FFV1-Intra + PCM or FLAC with CRC32 everywhere.xml If there are any policy violations or suggestions, please send an email to langzeitarchiv@slub-dresden.de + + Hint: this policy is well tested with mediaconch v18.0 and v22.09 </description> <policy type="and" name="MKV, FFV1 Intra, PCM/FLAC, error detection"> <policy type="and" name="Container"> <rule name="General/FileExtension is mkv" value="FileExtension" tracktype="General" occurrence="*" operator="=">mkv</rule> <rule name="Container is MKV" value="Format" tracktype="General" occurrence="*" operator="=">Matroska</rule> - <rule name="Unique ID is present" value="UniqueID" tracktype="General" occurrence="*"/> + <policy name="22.09_or_legacy" type="or"> + <rule name="Unique ID is present" value="UniqueID" tracktype="General" operator="exists" occurrence="*" /> + <rule name="Unique ID is present (legacy mediaconch older v22.09)" value="UniqueID" tracktype="General" occurrence="*"/> + </policy> <rule name="Container uses error detection" value="extra/ErrorDetectionType" tracktype="General" occurrence="*" operator="=">Per level 1</rule> <rule name="General/Format_Version is 4" value="Format_Version" tracktype="General" occurrence="*" operator="=">4</rule> - </policy> <policy type="and" name="Video"> <rule name="Video is FFV1" value="Format" tracktype="Video" occurrence="*" operator="=">FFV1</rule> @@ -25,9 +29,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/Compression_Mode is Lossless" value="Compression_Mode" tracktype="Video" occurrence="*" operator="=">Lossless</rule> - <policy type="or" name="Video is PAL/NTSC"> <policy type="and" name="DV PAL"> <rule name="Video/Width is =720" value="Width" tracktype="Video" occurrence="*" operator="=">720</rule> @@ -62,9 +64,7 @@ <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> @@ -107,7 +107,6 @@ </policy> <rule name="Bit Depth is 10" value="BitDepth" tracktype="Video" occurrence="*" operator="=">10</rule> </policy> - <policy type="and" name="Audio"> <rule name="General/AudioCount is 1" value="AudioCount" tracktype="General" occurrence="*" operator=">=">1</rule> <policy type="or" name="Audio is PCM or FLAC"> -- GitLab