# get-video-dimensions

> Get the dimensions of a video

Latest version **1.0.0** (published 2015-02-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-video-dimensions
pnpm add get-video-dimensions
yarn add get-video-dimensions
bun add get-video-dimensions
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-02-03 |
| First published | 2015-02-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 22 |
| Author | Jonathan Ong |
| Maintainers | jongleberry |
| Keywords | video, dimensions, ffmpeg, ffprobe |

## Links

- npm: https://www.npmjs.com/package/get-video-dimensions
- Repository: https://github.com/mgmtio/get-video-dimensions
- Issues: https://github.com/mgmtio/get-video-dimensions/issues
- npm.io page: https://npm.io/package/get-video-dimensions

## Dependencies (1)

- [mz](https://npm.io/package/mz.md) ^1.2.1

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-02-03

## README

# get-video-dimensions

[![NPM version][npm-image]][npm-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Dependency Status][david-image]][david-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![Gittip][gittip-image]][gittip-url]

Get the dimensions of a video with `ffprobe`.
Requires the `ffprobe` binary installed.

```js
var getDimensions = require('get-video-dimensions');

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

[gitter-image]: https://badges.gitter.im/mgmtio/get-video-dimensions.png
[gitter-url]: https://gitter.im/mgmtio/get-video-dimensions
[npm-image]: https://img.shields.io/npm/v/get-video-dimensions.svg?style=flat-square
[npm-url]: https://npmjs.org/package/get-video-dimensions
[github-tag]: http://img.shields.io/github/tag/mgmtio/get-video-dimensions.svg?style=flat-square
[github-url]: https://github.com/mgmtio/get-video-dimensions/tags
[travis-image]: https://img.shields.io/travis/mgmtio/get-video-dimensions.svg?style=flat-square
[travis-url]: https://travis-ci.org/mgmtio/get-video-dimensions
[coveralls-image]: https://img.shields.io/coveralls/mgmtio/get-video-dimensions.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/mgmtio/get-video-dimensions
[david-image]: http://img.shields.io/david/mgmtio/get-video-dimensions.svg?style=flat-square
[david-url]: https://david-dm.org/mgmtio/get-video-dimensions
[license-image]: http://img.shields.io/npm/l/get-video-dimensions.svg?style=flat-square
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/get-video-dimensions.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/get-video-dimensions
[gittip-image]: https://img.shields.io/gratipay/jonathanong.svg?style=flat-square
[gittip-url]: https://gratipay.com/jonathanong/

---
_Source: https://npm.io/package/get-video-dimensions · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
