Convert MXF subtitles to XML with java

Anything and everything to do with DCP-o-matic.
Post Reply
mary
Posts: 2
Joined: Mon Apr 06, 2020 3:51 pm

Convert MXF subtitles to XML with java

Post 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!
Carsten
Posts: 2648
Joined: Tue Apr 15, 2014 9:11 pm
Location: Germany

Re: Convert MXF subtitles to XML with java

Post 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
carl
Site Admin
Posts: 2338
Joined: Thu Nov 14, 2013 2:53 pm

Re: Convert MXF subtitles to XML with java

Post 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?
mary
Posts: 2
Joined: Mon Apr 06, 2020 3:51 pm

Re: Convert MXF subtitles to XML with java

Post 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
Last edited by mary on Mon Apr 06, 2020 9:35 pm, edited 2 times in total.
mary
Posts: 2
Joined: Mon Apr 06, 2020 3:51 pm

Re: Convert MXF subtitles to XML with java

Post 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, ...)
Post Reply