Coding question:

You know how there are libraries in Java that let you load XML files, manipulate their contents via a model, then save them to a new file?

I want to do that with MKV, so that I can make edits to subtitle tracks (WITHOUT re-coding any media streams).

Anyone have any ideas please? I'm sure there must be something somewhere that can do this. I could research the full MKV format and write my own code, but frankly, it's a bit daunting.

#Software #AskMastodon

@macronencer

Maybe check with @mosu who makes the MKVToolNix tools.

@stepheneb @mosu Thanks! Is it possible to use those on a Mac? I'm running Java in IntelliJ.
@macronencer @stepheneb I'm not a Java person. I know there were low-level EBML/Matroska Java libraries at one point, but I have insight if they're still updated, how they're used, their capabilities or if there are others. https://github.com/Matroska-Org/jebml
GitHub - Matroska-Org/jebml

Contribute to Matroska-Org/jebml development by creating an account on GitHub.

GitHub
@mosu @stepheneb Wow, another link to look at! It seems there are quite a few related technologies/solutions around that I've not found until now. Thanks :)
@macronencer @stepheneb Like I said, I cannot say anything about that repo apart from "it exists". Yes, I'm listed as a committer once or twice, but that was solely merging PRs by other people.