Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 948 Bytes

README.md

File metadata and controls

39 lines (24 loc) · 948 Bytes

Video's MetaData Reader [fetch-video-metadata]

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.

Installation

Install my-project with npm

  npm install fetch-video-metadata

Usage/Examples

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);
})();

Roadmap

  • Additional demo page at web

  • CLI for operations

🚀 About Me

I'm a full stack developer...