1.0.0 • Published 4 years ago

video_url_thumbnail_generator v1.0.0

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

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 
}())
1.0.0

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago