Closed jamiegau closed 4 years ago
Hi, I created a pull request to try and fix this error, but it appears more sinister than that..
For example..
I take it that this is a multi line subtitle, one entry per line, tried to use asdcp-unwrap, but was not able to pull the subtitles out for some reason. I am not familiar with SMPTE subtitle files and extracting them.. But this image indicates, it may not be pulling the dtaa right into the object. The first line does not have the "Text" attribute. (Why the code fails) What's your opinion @remia ?
Will need to dig into other sections of the code to figure that one out..
Hi @jamiegau,
I tried to download the DCP at https://www.smptedcp.com/resources/test-package but the subtitle are encrypted so I can't reproduce this error yet. I'm not sure who / what server the KDMs inside the package are targeting.
As for how we extract the subtitles, you should look at https://github.com/Ymagis/ClairMeta/blob/develop/clairmeta/dcp_check_subtitle.py#L187 and the unwrap_mxf
helper functions.
Didn't really really took the time to understand your last post as I prefer to reproduce the bug myself first.
Thanks for the report
@jamiegau is it possible to make this package available for download somewhere? I would like to test what is going wrong. EDCF does not seem to have this package for download anymore.
The logs unfortunately doesn't say what the CPL uuid of your package is..
I have the following which is similair but not exactly the same:
ContentTitleText: EDCF-SMPTE-Bv2_TST_S_EN-EN_OV_51-HI-VI-Atmos_2K_20161020_DTU_SMPTE_OV CPL uuid: 362ec1b8-363c-439c-bda0-a5d0a181c8b0
The above package passes the clairmeta checks without crashing.
Those who want the DCP that causes the error, please send me an email and I'll mailsend it to you james . gardiner @ digitall net au
Any update on this ?
Hj, I have a the main culprit DCP on its way to you now.. (Via a filemail.com) That DCP and another that clairmeta just dope out with an error on the probe.
James
Thanks, please see PR #164 that should address this.
Hi, I have found current release will crash the subtitle test on certain DCPs.
Below is an example running against the EDCF SMPTE test DCP. EDCF-SMPTE-Bv2_TST_S_EN-EN_OV_51-HI-VI_2K_20161020_DTU_SMPTE_OV
It appear to be parsing the subtitles differently resulting in attempting to unique_chars.add(char) where char is a dict and not what is expected.. The error is self explanatory.