0

I am trying to get thumbnail image from a MP4 file.

I tried with MP4Box and it did not return any image.

var MP4Box = require('mp4box').MP4Box;
var mp4box = new MP4Box();
var arrayBuffer = new Uint8Array(fs.readFileSync('a.mp4')).buffer;
arrayBuffer.fileStart = 0;
mp4box.appendBuffer(arrayBuffer);
console.log(mp4box.getInfo());

Is it posible to get thumbnail using JS? And how can I do it?

Thank you so much!

Boyundefeated
  • 13
  • 1
  • 3

0 Answers0