node-video-duration

    1.0.1 • Public • Published

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

    Keywords

    none

    Install

    npm i node-video-duration

    DownloadsWeekly Downloads

    83

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.4 kB

    Total Files

    5

    Last publish

    Collaborators

    • jeoliva