/media-file-probe

node module using ffprobe to get metadata

Primary LanguageJavaScript

Media File Probe

Build Status Dependency Status Greenkeeper badge

Tiny module, using ffprobe, to collect metadata about media files.

Install

npm install media-file-probe

Usage

var mediaprober = require('media-file-probe')();

mediaprober.probe('/Users/artheus/somemediafile.mov').on('metadata', function(data){
	// Now you can read the media file data from the data variable
});

CLI

There is also a cli tool included that simply does what is in the example usage above and then prints the metadata. You can use it like this

npm install -g media-file-probe

media-file-probe /Users/artheus/somemediafile.mov
{
	... Lots o' metadata ...
}