MediaConch icon indicating copy to clipboard operation
MediaConch copied to clipboard

Wishlist/question: Avoid failures on broadcast standard identification

Open genfhk opened this issue 8 years ago • 3 comments

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!

genfhk avatar Nov 23 '16 18:11 genfhk

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

dericed avatar Nov 23 '16 18:11 dericed

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

dericed avatar Nov 23 '16 20:11 dericed

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.

dericed avatar Nov 23 '16 20:11 dericed