Tiny module, using ffprobe, to collect metadata about media files.
npm install media-file-probe
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
});
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 ...
}