Page 1 of 1

Convert MXF subtitles to XML with java

Posted: Mon Apr 06, 2020 4:01 pm
by mary
Hi everyone,

I currently need to convert (unencrypted) SMPTE/MXF subtitles to XML text files with java library
Any suggestion is welcome :)

Thanks!

Re: Convert MXF subtitles to XML with java

Posted: Mon Apr 06, 2020 5:42 pm
by Carsten
Why does it need to be java?

DCP-o-matic 2.15.x has an XML export feature. Generating an Interop DCP from an MXF source file will also create an XML subtitle file. While the export function is not scriptable, I guess creation and interop generation should be doable with the existing commandline options. This would create unnecessary video and audio asset files, but, who cares, would be easy to delete them within a script after XML creation.

I guess there is something in ASDCP already to do that, and I also think some of Carls libraries dealing with subs would be able to do it.
However, not immediately javaish.

- Carsten

Re: Convert MXF subtitles to XML with java

Posted: Mon Apr 06, 2020 5:48 pm
by carl
As Carsten says you basically need the what the

Code: Select all

asdcp-unwrap
tool from this library does. It's C++ though. Maybe you can make a Java wrapper?

Re: Convert MXF subtitles to XML with java

Posted: Mon Apr 06, 2020 9:22 pm
by mary
Hi,

Thanks for your responses,

Yes, like you said the AsDcpLib in C++.
However, I need it in java language.
I try with regXmllib https://github.com/sandflow/regxmllib
and https://github.com/AMWA-TV/maj

But I did not have the desired result

Re: Convert MXF subtitles to XML with java

Posted: Wed Apr 08, 2020 8:27 am
by mary
Hi everybody again me,

Have you an idea, if the asdcp-unwrap is compatible with all Linux distributions (Debian, Ubuntu (desktop), Linux Mint, Red Hat Enterprise Linux, Fedora (workstation), CentOS, OpenSUSE Leap, Arch Linux, ...)