Skip to content
No description, website, or topics provided.
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
.github/workflows
examples
src
test-assets
.codecov.yml
.editorconfig
.eslintignore
.eslintrc.json
.gitignore
LICENCE.md
README.md
jest.config.js
package-lock.json
package.json
tsconfig.eslint.json
tsconfig.json

README.md

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

Test files

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

You can’t perform that action at this time.