Reputation: 698
I'm uploading a video through an express
call and using multer
for resumable uploads. I forward the buffer directly to GoogleCloud Storage and don't want to save the file at all on my server.
Is there a server-side way to check for the duration (length) of the video file using only req.file.buffer
?
My code looks very similar to this example.
Upvotes: 0
Views: 1680
Reputation: 529
$ npm install --save get-video-duration I really don't need to explain any further. and look up the npm doc for get video durration
Upvotes: 1