Created
September 19, 2016 12:25
-
-
Save gion/ba571a091a164ccba85a9e1c4bdeea73 to your computer and use it in GitHub Desktop.
geting video rotation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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