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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2
  • 1.0.4
    0
  • 1.0.2
    0
  • 1.0.1
    0

Package Sidebar

Install

npm i video_url_thumbnail_generator

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

3.98 kB

Total Files

3

Last publish

Collaborators

  • albipatria