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 This looks promising: https://www.nikse.dk/subtitleedit

Or extract with ffmpeg https://www.mux.com/articles/extracting-subtitles-and-captions-from-video-files-with-ffmpeg

You can split & join tracks with ffmpeg without reencoding the streams.

Nikse.dk

@gunchleoc Many thanks! Those both look interesting, and I'll check them out. 👍
@villares I appreciate the tip, but I don't do Python :)

@macronencer as a Python enthusiast I had to try :D

(Just joking a bit, I totally respect your choices!)