node-video-duration
v1.0.1
Published
NodeJs module that retrieves the duration of video/audio assets
Downloads
448
Readme
node-video-duration
NodeJs module that retrieves the duration of video/audio assets. Requires ffprobe
binary installed.
Install
$ npm install --save node-video-duration
Usage
const getVideoDuration = require('node-video-duration');
getVideoDuration('http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4')
.then((duration) => {
console.log('Asset duration: ' + duration);
});