Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mafintosh/srt-to-vtt
Transform stream that converts srt files to vtt files (html5 video subtitles)
https://github.com/mafintosh/srt-to-vtt
Last synced: about 1 month ago
JSON representation
Transform stream that converts srt files to vtt files (html5 video subtitles)
- Host: GitHub
- URL: https://github.com/mafintosh/srt-to-vtt
- Owner: mafintosh
- License: mit
- Created: 2014-12-25T21:58:41.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-08-16T16:27:21.000Z (over 6 years ago)
- Last Synced: 2024-10-30T23:07:08.897Z (about 1 month ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 89
- Watchers: 8
- Forks: 17
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](http://img.shields.io/travis/mafintosh/srt-to-vtt.svg?style=flat)](http://travis-ci.org/mafintosh/srt-to-vtt)
## Usage
``` js
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