Is there any Java API for SRT subtitles ?
An SRT file or SubRip (. srt) file is one of the most common types of raw closed caption or subtitle file formats.
A file with the . SRT extension is the file that contains the text of what's being said in a video, along with the timing for those words and the order in which they appear. It's not the only type of captioning file format, but it's one of the most popular.
There is another basic (and open source) API that can deal with SRT and ASS subtitle here
Parsing SRT :
File file = Paths.get("subtitle.srt").toFile();
SRTSub subtitle = new SRTParser().parse(file);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With