MediaConch
MediaConch copied to clipboard
Wishlist/question: Avoid failures on broadcast standard identification
Is there a way to identify whether a file has the correct width & height specifically for its broadcast standard?
Perhaps I just need more tutoring in policy development, but it appears that to identify whether a file is NTSC or PAL, there must be a failure for one or the other (which we'd like to avoid). I'd like to implement a policy such that: Is PAL or NTSC?; IF NTSC, W/H must be equal to xyz OR xyz; IF PAL ditto.
Thanks!
There is an installed Is this NTSC or PAL SD?
policy which tests for combinations of width, height, and frame rate. The basis of the policy is here: https://github.com/MediaArea/MediaConch_SourceCode/blob/master/Tools/Policies/sample_policy_1.xml
We have policies set as an and policy
or an or policy
. If an or policy
then it passes if one of the included tests are true, but an and policy
needs all of the included tests to be true. So the output should be analogous to one of the following:
is it NTSC or PAL? = TRUE
is it NTSC? TRUE
is it PAL? FALSE
is it NTSC or PAL? = TRUE
is it NTSC? FALSE
is it PAL? TRUE
is it NTSC or PAL? = FALSE
is it NTSC? FALSE
is it PAL? FALSE
(not really possible in this case, but)
is it NTSC or PAL? = TRUE
is it NTSC? TRUE
is it PAL? TRUE
Also I wrote a blog about this type of logic in a policy at https://mediaarea.net/MediaConch/2016/10/04/policy-refactor/. Feedback/impresions welcome.