MediaArea / MediaConch

MediaConch (funded by PREFORMA)
31 stars 11 forks source link

Mediatrace produces invalid XML for a subtitle DCP MXF #126

Open kieranjol opened 8 years ago

kieranjol commented 8 years ago

Hi,

Using the 0.7.8.4 CLI on OS X (and 0.7.8.3 on Ubuntu), and the 16.03 Mediaconch OS X GUI, the file sub1_24.mxfin the following DCP - https://www.charbon-studio.com/get/dcps/CHARBON-SMPTE-24.zip produces invalid XML, located in full here: https://gist.github.com/kieranjol/20e469ecf72462ada979a37d8d5007d4

Other similar subtitles.mxf files have all produced valid XML from mediatrace. I can't test if this is just a corrupt file or if the issue is with Mediatrace.

I used the following command to generate the XML mediainfo --Details=1 --Output=XML /Users/kieranoleary/Downloads/CHARBON-SMPTE-24/sub1_24.mxf > der.xml

xmlstarlet validation error:

kieranoleary$ xmlstarlet val -e der.xml 
der.xml:2955.13: Opening and ending tag mismatch: media line 8 and block
    </block>
            ^
der.xml - invalid

Here are lines 2953 to 2965, where there are a bunch of closing tags that do not appear to have corresponding opening tags:

 </block>
        <data offset="18838" name="Unknown">(46698 bytes)</data>
    </block>
        <data offset="65536" name="Unknown">(65536 bytes)</data>
    </block>
        <data offset="131072" name="Unknown">(65536 bytes)</data>
    </block>
        <data offset="196608" name="Unknown">(65536 bytes)</data>
    </block>
        <data offset="262144" name="Unknown">(65536 bytes)</data>
    </block>
        <data offset="327680" name="Unknown">(41358 bytes)</data>
    </block>

Thanks,

Kieran.

JeromeMartinez commented 8 years ago

We need to change the way the XML is done (manual text writing, based of the code for raw text output) in MediaInfo.