Farzam Azhar
Farzam Azhar

Reputation: 23

How to validate Video in node js based on it's length and quality

I have been searching through net, how to upload video and Validate it based on it's length and quality like 480 or 720 minimum. Moreover, If it does not have any adultery content. My development environment is Node along with express framework in it. I am looking for ward for nay kind of maybe plugin suggestion that I could work out my self how to configure it with my application. Any kind of suggestions would be really helpful. Thank you.

Upvotes: 1

Views: 1373

Answers (1)

Peter Majko
Peter Majko

Reputation: 1321

Information like length of the video or resolution is part of the file's metadata. To be able to read metadata of some file type, you need specific library.

This should help for videos:

https://www.npmjs.com/package/ffmetadata

At least for lenght and quality. As for the content - you would need to process binary data through some content detection algorithm, combined with machine learning probably :) I don't think there is anything out of the shelve for that.

Upvotes: 1

Related Questions