get-video-dimensions

Get the dimensions of a video

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
get-video-dimensions
2021.0.08 years ago8 years agoMinified + gzip package size for get-video-dimensions in KB

Readme

get-video-dimensions
!NPM versionnpm-imagenpm-url !Build statustravis-imagetravis-url !Test coveragecoveralls-imagecoveralls-url !Dependency Statusdavid-imagedavid-url !Licenselicense-imagelicense-url !Downloadsdownloads-imagedownloads-url !Gittipgittip-imagegittip-url
Get the dimensions of a video with ffprobe. Requires the ffprobe binary installed.
var getDimensions = require('get-video-dimensions');

getDimensions('video.mp4').then(function (dimensions) {
  console.log(dimensions.width);
  console.log(dimensions.height);
})