javascript - How to convert .ass & .ssa subtitles files fomats to webvtt format in js?
问题描述
I know how to transform .srt file format to webvtt format in javascript , I want to know how to do the same with .ass & .ssa subtitles files formats to be able to parse them and transform to webvtt format on the fly without using file stream using javascript .
解决方案
After a deep search I found what I asked for in an underrated Github repo online named subsrt, can be found here for whoever encounters the same request or similar. it transforms between the following subtitles formats :
MicroDVD SUB (.sub), SubRip (.srt), SubViewer (.sbv), WebVTT (.vtt), SubStation Alpha (.ssa and .ass), SAMI (.smi) aka Synchronized Accessible Media Interchange, LRC (.lrc) aka LyRiCs, JSON (.json)
推荐阅读
- python - Scipy.stats t 矩提取问题
- python - Pyserial 读取具有异常答案的传入信息
- facebook - 受众定义/估计的每日结果
- php - PhpStorm 不会为类型提示的函数/方法参数生成 docblock
- ruby - 通过 Faraday 向 GitHub API 发出请求时,我不断收到错误的状态代码(400、401、403)
- python - 在 Python 中将 knnMatch 与 opencv 一起使用时出错
- python - Matplotlib 绘图减少延迟
- html - 如何使用css过滤器将不同颜色的图像色调更改为蓝色色调
- lua - 从 Lua 中的模块内部引用模块中的变量/函数
- haskell - 我应该使用什么递归方案来重复一个有效的动作,直到它的结果符合某个标准?