首页 > 解决方案 > 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 .

标签: javascriptwebvttvideo-subtitles

解决方案


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)


推荐阅读