Skip to content

Instantly share code, notes, and snippets.

@gion
Created September 19, 2016 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gion/ba571a091a164ccba85a9e1c4bdeea73 to your computer and use it in GitHub Desktop.
Save gion/ba571a091a164ccba85a9e1c4bdeea73 to your computer and use it in GitHub Desktop.
geting video rotation
var ffprobe = require('ffprobe'),
ffprobeStatic = require('ffprobe-static');
ffprobe('/Users/gion/Downloads/landscape-fail.mp4', { path: ffprobeStatic.path }, function (err, info) {
if (err) {
console.log('error');
console.log(err);
} else {
console.log('COOOOOL');
console.log(JSON.stringify(info));
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment