video_url_thumbnail_generator

1.0.0 • Public • Published

Video Url Thumbnail Generator

This module will generate thumbnail for videos urls.

Uses video-thumbnail-generator module.

Needs to be installed in your OS ffmpeg

Here is an example:

var  VideoThumbnailGenerator = require('video_url_thumbnail_generator') 

let videoUrl = 'https://.....' //Replace with your video orl
let Thumbnail = new VideoThumbnailGenerator({
    dir: 'tmp', //Directory where to save files
    videoUrl: videoUrl,
    videoArgs: {
        count: 2 //How many thumbnail you wants. Default 10.
    }
});

(async function(){
    var files = await Thumbnail.generate() //Generate thumbnails. Return promise.
    console.log(files) //Console a list of created thumbnail files
    await Thumbnail.deleteFiles() //Delete all created files 
}())

Readme

Keywords

none

Package Sidebar

Install

npm i video_url_thumbnail_generator

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

3.98 kB

Total Files

3

Last publish

Collaborators

  • albipatria