New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PAL framerate fail: "must be 25" but has value "25.000" #91
Comments
argh, does it work when the test value is "25.000"? I suspect we'll need to make a decision on whether each policy should be a string or numerical test. |
Works with test "is equal 25.000": pass. |
@JeromeMartinez, any data in MediaInfoLib where a value could be associated to a data type (decimal, integer, string, etc)? |
Is it possible to use XSLT functions like "round"? |
Yes the XSLT can use some mathematical functions but the XSL would have to know the data-type of the value to know if this is appropriate or not. For instance |
sounds reasonable. |
I could add the unit for each XML element but I am not fan of increasing the size of the XML for each instance. |
In this case such info can be in the XSD, not necessary to exist in each instance of the XML. |
Um. I'm not sure I know the answers well enough. MI has these rare oddities like a frame rate of "123 / 456" where many numbers are listed with a slash delimiter. Not sure if frame rate is an accurate sample but I've found that presuming a MI value is a number isn't always safe. |
At any rate I'll make the PR for the XSD and assign verification to Jerome. |
this is the case for e.g. channel numbers, it is used for showing what a legacy decoder can decode (e.g. a legacy DTS decoder decodes 6 channels but a new DTS decoder decodes 8 channels, it is displayed "8 / 6"). I can disable this feature for XML output, and we discuss in another ticket about how to show (if we show) such legacy information. So you can consider MI fields with "I" or "F" in the CSV files as real integers / floats without any " / ". |
Not sure if this is a better consideration for short term or long term but there is some risk in maintaining the XSD and the CSV separately. Perhaps we should have a makefile that generates one from the other. I'll use the |
Applying "Standards Mismatch (PAL)" profile, ran into the problem that MediaConch (v15.11) reports "fail" for framerate, although it's correct:
The text was updated successfully, but these errors were encountered: