This is a utility that converts closed captioned files from DFXP to VTT format. It is written in JavaScript and can be used part of a Node application or service.
HTML5 based video tag/control uses VTT files to show closed captions. DFXP files are used by flash and some video vendors but are not supported by HTML5 based video tags. This utility converts DFXP files to VTT format.
Distribution Format Exchange Profile is a timed text format in XML. It is developed by W3C you read the W3C spec Timed Text Markup Language 3rd Edition.
Web Video Text Tracks is developed by Web Hypertext Application Technology Working Group (WHATWG). It is modelled after SRT (SubRip Subtitle) format. You find the W3C spec The Web Video Text Tracks Format
Node and NPM are prerequest and must be installed before.
- Open terminal
- Type
npm install
Please run the test to understand how the applicatin works.
JEST unit testing framework is used in the project but can be replaced with any library you want.
You can run the tests in your IDE or in the command line.
To run all the test with NPM.
npm test
or to run a single test suite with JEST
For example:
jest /test/FileUtil.test.js
This project is developed unter MIT license. Please read license file for more information.