Given a hypothetical folder structure like this:
Star.Trek.Discovery.S04E06.German.DL.1080p.BluRay.x264-iNTENTiON/
├── star.trek.discovery.s04e06.german.dl.1080p.bluray.x264-intention.mkv
├── star.trek.discovery.s04e06.german.dl.1080p.bluray.x264-intention.nfo
└── Subs
├── star.trek.discovery.s04e06.german.dl.1080p.bluray.x264-intention-eng.idx
├── star.trek.discovery.s04e06.german.dl.1080p.bluray.x264-intention-eng.sub
├── star.trek.discovery.s04e06.german.dl.1080p.bluray.x264-intention.idx
└── star.trek.discovery.s04e06.german.dl.1080p.bluray.x264-intention.sub
Star.Trek.Discovery.S04E07.German.DL.1080p.BluRay.x264-iNTENTiON/
├── star.trek.discovery.s04e07.german.dl.1080p.bluray.x264-intention.mkv
├── star.trek.discovery.s04e07.german.dl.1080p.bluray.x264-intention.nfo
└── Subs
├── star.trek.discovery.s04e07.german.dl.1080p.bluray.x264-intention-eng.idx
├── star.trek.discovery.s04e07.german.dl.1080p.bluray.x264-intention-eng.sub
├── star.trek.discovery.s04e07.german.dl.1080p.bluray.x264-intention.idx
└── star.trek.discovery.s04e07.german.dl.1080p.bluray.x264-intention.sub
4 directories, 12 files
What’s the best way to integrate all the subtitles into the corresponding MKV file?
I’m pretty sure MKV can handle VOBSUB. Why do you convert them to .srt before merging them?
Edit:
I’ve also just found this: https://github.com/elizagamedev/vobsubocr
Edit 2:
And a fork of it, of course: https://github.com/gwen-lg/subtile-ocr
Iirc vobsub is not text so while you can add it to the container it will always require a transcode on plex/jelly/etc to burn in.
I wasn’t aware of the transcoding requirement, thank you. So I guess converting the subtitles is a best practice I should adopt.
If vobsub is image based (pretty sure it is) then it needs an OCR converter. Most streaming setups will burn the image based subs in. Honestly for 1080p and lower a modern cpu/gpu won’t miss a beat.
Yeah, mkv can handle VOBSUB. I just prefer text based like srt or ass since you can edit the subtitles to get better timings or changing font/ colour or fix spellings really easily. I also find the VOBSUB a bit blurry around the edges of the text.
If you’re happy with the VOBSUB, then the last bit of code above will merge them with the mkv file and they should be automatically on when using vlc.
Thanks for the links, I was thinking about how outdated vobsub2srt was and definitely want to try these instead!