0.2.0 • Published 2 years ago

@oscnord/get-video-resolution v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Get video resolution

Get the dimensions (width and height) of a video. Can be a local video or a video stream.

Requirements

ffprobe

To be able to extract the video dimensions ffmpeg/ffprobe needs to be installed.

MacOS:

brew install ffmpeg

Ubuntu:

sudo apt-get install ffmpeg

Usage

import { getVideoResolution } from "@oscnord/get-video-resolution";

const resolution = await getVideoResolution('https://www.example-stream/manifest.m3u8');
console.log(resolution); // { width: 1920, height: 1080 }
0.2.0

2 years ago

0.1.4

2 years ago

0.1.5

2 years ago

0.1.2

2 years ago

0.1.0

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.1

2 years ago