mediaforge - v0.3.0
    Preparing search index...

    Function extractFrames

    • Extract all frames from a video as images.

      Parameters

      Returns Promise<ExtractFramesResult>

      // Extract 1 frame per second to ./frames folder
      const { files } = await extractFrames({
      input: 'video.mp4',
      folder: './frames',
      fps: '1'
      });
      // Extract at 30fps, 10 second clip
      const { files } = await extractFrames({
      input: 'video.mp4',
      folder: './frames',
      fps: '30',
      startTime: 5,
      endTime: 15
      });