Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java API for SRT subtitles [closed]

Is there any Java API for SRT subtitles ?

like image 295
FearUs Avatar asked Feb 21 '11 06:02

FearUs


People also ask

Are SRT files closed captions?

An SRT file or SubRip (. srt) file is one of the most common types of raw closed caption or subtitle file formats.

Does SRT file have timing?

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.


1 Answers

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);
like image 188
sofm Avatar answered Oct 02 '22 14:10

sofm