epiclabs-io / node-video-duration

NodeJs module that retrieves the duration of video/audio assets
MIT License
3 stars 1 forks source link

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);
    });