npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

media-inspector

0.2.5 • Public • Published

media-inspector

NPM package CircleCI codecov Codacy Badge

Find media files by searching in the metadata

Requirements

  • Node 8 or newer
  • mediainfo executable in $PATH

Supported media mime-types

The current list of supported mime-types is

  • video/

However, as Mediainfo is utilised for reading the metadata, it should be fairly simple to expand that to include both audio and image/.

Installation

$ npm install -g media-inspector

Use

$ media-inspector --read <path/to/directory> --filter <path/to/filter>

Example

See the examples folder for examples of filters.

$ media-inspector --read <path/to/directory> --filter examples/filter-default.json --include-auxiliary --verbose

How filters work

A filter is a list of rules. A rule is a prioritised list of conditions. A rule is considered satisfied when all its conditions are satisfied. When a media file satisfies all the conditions of any rule, that media-file is considered a match.

Notes

  • [https://github.com/yargs/yargs]
  • [https://github.com/jshttp/mime-types#readme]
  • [https://github.com/mgcrea/node-mediainfo-parser]

Test files

[https://www.sample-videos.com/about.php]

install

npm i media-inspector

Downloadsweekly downloads

1

version

0.2.5

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability