

Same as fluent-ffmpeg's screenshots.timestamps. offsetsĪrray of seek offsets to take the screenshot from in milliseconds. I know this is confusing, but it's how fluent-ffmpeg works under the hood. Note that for timestamps or offsets, the pattern should include a %i or %s ( details).įor any other call, you should use the %d format specifier. The default behavior if you don't specify any of these options is to extract all frames from the input. There are several options for specifying which frames to extract, namely timestamps, offsets, fps, and numFrames. Returns a Promise for when all frames have been written. frame-100.png API extractFrames(options)Įxtracts one or more frames from a video file. screenshot-3.jpg // default behavior is to extract all frames


extract 3 frames at 1s, 2s, and 3.5s respectively Yarn add ffmpeg-extract-frames Usage const extractFrames = require('ffmpeg-extract-frames')

Install npm install -save ffmpeg-extract-frames To read more about the FFmpeg, feel free to checkout their documentation.Extracts frames from a video using fluent-ffmpeg. ffmpeg -i video.mp4 -vf fps=1/10 output%06d.png
