Skip to content

tautcony/webvtt2ass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

                   __               __    __       ___                              
                  /\ \             /\ \__/\ \__  /'___`\                            
 __  __  __     __\ \ \____  __  __\ \ ,_\ \ ,_\/\_\ /\ \     __      ____    ____  
/\ \/\ \/\ \  /'__`\ \ '__`\/\ \/\ \\ \ \/\ \ \/\/_/// /__  /'__`\   /',__\  /',__\ 
\ \ \_/ \_/ \/\  __/\ \ \L\ \ \ \_/ |\ \ \_\ \ \_  // /_\ \/\ \L\.\_/\__, `\/\__, `\
 \ \___x___/'\ \____\\ \_,__/\ \___/  \ \__\\ \__\/\______/\ \__/.\_\/\____/\/\____/
  \/__//__/   \/____/ \/___/  \/__/    \/__/ \/__/\/_____/  \/__/\/_/\/___/  \/___/ 

Convert WebVTT (The Web Video Text Tracks Format, aka html5 video subtitles) into ASS subtitle.

Under constraction🚧

Setting up

npm install webvtt2ass
# or set it up globally
npm install webvtt2ass --global

Command line

You may use it from the terminal if webvtt2ass was installed globally

webvtt2ass example.vtt --output example.ass
webvtt2ass example.vtt (It will output the result to the console).
webvtt2ass 01.vtt 02.vtt (It will convert each webvtt file into ASS subtitle)

Usage

var webvtt2ass = require('webvtt2ass');
webvtt2ass('input_file_path', outputStream);

Because the limitation of the ASS, the <ruby> tag in WebVTT converted into a Furigana karaoke which need to use the Automation->Apply karaoke template in Aegisub to make the <ruby> tag display correctly.

TODO

Font size, alignment, etc.