1.1.1 • Published 8 years ago

tc2s v1.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

tc2s

Convert timecodes to milliseconds, or a frame index - eg '1h27m45s' -> 5265000

What?

This is a simple utility for making it easier to convert human-friendly timecodes to machine-friendly frame IDs, to facilitate machine generation of video from simple hand-writeable scripts.

var tc = require('tc2s');

console.log( tc.to_ms('1h 27m 45s') );          // 5265000
console.log( tc.to_60_frames('1h 27m 45s') );   // 315900

console.log( tc.to_tick(1000, '1h 27m 45s') );  // 5265000
console.log( tc.to_tick(60,   '1h 27m 45s') );  // 315900
1.1.1

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.0

8 years ago