的Java API的SRT字幕 [英] Java API for SRT subtitles

查看:1269
本文介绍了的Java API的SRT字幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何Java API的SRT字幕?

Is there any Java API for SRT subtitles ?

推荐答案

我已经产生了java的逻辑与分析和阅读不同格式的字幕文件,其中是流行的SRT:你可以找到code下许可麻省理工学院的开放源码许可证(免费使用等等)在我的Git仓库:

I have produced a java logic with which to parse and read different subtitle formats, among them is the popular srt: you can find the code licensed under MIT open source license (free to use for whatever) in my GiT repository:

https://github.com/JDaren/subtitleConverter

您可能只需要基本的阶级和阶级SRTFormat,并可以从InputStream读取SRT文件或一旦你完成编辑他们得到充分的String []文件。

You probably just need the basic classes and the SRTFormat class, and with that you can read srt files from an InputStream or get full String[] files once you've finished editing them.

如果你发现这个有用或者我可以帮你什么,请联系我。

If you do find this useful or I can help you with anything please contact me.

PS:(其他支持的格式,部分或完全是.ASS .SSA .STL .SCC和.XML(从W3C的TTAF-DFXP也称为TTML 1.0)

PS: (other supported formats, either partially or fully are .ASS .SSA .STL .SCC and .XML (from W3C's TTAF-DFXP also known as TTML 1.0)

编辑:

您可以在工作中找到的逻辑 www.subtitleconverter.net

you can find the logic at work in www.subtitleconverter.net

这篇关于的Java API的SRT字幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆