This package is built on top of MediaInfo. You can view any public video's metadata from the URL, or simply by inputting the file path.
Install my-project with npm
npm install fetch-video-metadata
const { fetchMediaInfoFromUrl, fetchMediaInfoFromFile} = require("fetch-video-metadata");
(async () => {
const metadataFromUrl =
await fetchMediaInfoFromUrl('https://media.istockphoto.com/videos/female-streamer-playing-games-on-her-computer-video-id1296587040');
console.log('metadataFromUrl', metadataFromUrl);
const metadataFromFile = await fetchMediaInfoFromFile('/Users/rex/Downloads/video.mp4');
console.log('metadataFromFile', metadataFromFile);
})();
-
Additional demo page at web
-
CLI for operations
I'm a full stack developer...