Node.js FFMPEG Example to Extract Frames From MP4 Video as PNG/JPEG Image Using ffmpeg-extract-frame Library in Javascript Full Project For Beginners

 

 

npm i ffmpeg-extract-frames

 

 

 

Install

 

 

npm i ffmpeg-extract-frame

 

 

 

Usage

 

 

 

app.js

 

 

const extractFrame = require('ffmpeg-extract-frame')
 
await extractFrame({
  input: 'media/1.mp4',
  output: 'test.jpg',
  offset: 1000 // seek offset in milliseconds
})

Leave a Reply