mediaforge - v0.1.0
    Preparing search index...

    Function screenshots

    • Extract screenshots from a video file.

      Parameters

      Returns Promise<ScreenshotResult>

      // 5 evenly-spaced screenshots
      const { files } = await screenshots({ input: 'video.mp4', folder: './thumbs', count: 5 });
      // At specific timestamps
      const { files } = await screenshots({
      input: 'video.mp4', folder: './thumbs',
      timestamps: ['00:00:05', '00:00:30', 90],
      });