Skip to content

kemapak/dfxp-to-vvt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dfxp-to-vvt

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.

DFXP

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.

VTT

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

Installation

Node and NPM are prerequest and must be installed before.

  • Open terminal
  • Type npm install

Running Tests

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

License

This project is developed unter MIT license. Please read license file for more information.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published