Skip to content

Transform stream that converts srt files to vtt files (html5 video subtitles)

License

Notifications You must be signed in to change notification settings

mediastream/srt-to-vtt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

srt-to-vtt

Transform stream that converts srt files to vtt files. vtt files are used to provide subtitles in html5 video

npm install srt-to-vtt

build status

Usage

var srt2vtt = require('srt-to-vtt')
var fs = require('fs')

fs.createReadStream('some-subtitle-file.srt')
  .pipe(srt2vtt())
  .pipe(fs.createWriteStream('some-html5-video-subtitle.vtt'))

Command line usage

There is also a command line tool available

npm install -g srt-to-vtt
srt-to-vtt --help

License

MIT

About

Transform stream that converts srt files to vtt files (html5 video subtitles)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%