avprobemeta
Simple avprobe wrapper for node
installation
$ npm install avprobemeta
you'll also need avprobe which is available via libav-tools
package on debian-like distros
$ apt-get install libav-tools
Windows users might want to check out the official static builds http://builds.libav.org/windows/
usage
var avprobemeta = require('avprobemeta');
avprobemeta('./test.mp4', function(err, meta) {
console.log(JSON.stringify(meta, null, ' '));
});
avprobemeta('./test.mp4', { format: false }, function(err, meta) {
console.log(JSON.stringify(meta, null, ' '));
});
avprobemeta('./test.mp4', { streams: false }, function(err, meta) {
console.log(JSON.stringify(meta, null, ' '));
});
avprobemeta('./test.mp4', {cmdPath: 'C:\\PROJEKTE\\libav\\bin\\avprobe'}, function(err, meta) {
console.log(JSON.stringify(meta, null, ' '));
});
License
MIT licensed