npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

ffmpeg-probe

1.0.6 • Public • Published

ffmpeg-probe

Wrapper around ffprobe for getting info about media files such as width, height, and duration.

NPM Build Status JavaScript Style Guide

Install

npm install --save ffmpeg-probe
# or 
yarn add ffmpeg-probe

Usage

const ffmpeg = require('fluent-ffmpeg')
const probe = require('ffmpeg-probe')
 
const info = await probe('input.mp4')
 
// info = {
//   width: 640,
//   height: 360,
//   duration: 4000,
//   fps: 25,
//   streams: [ ... ],
//   format: { ... }
// }

API

probe(input)

Returns a Promise for the probe information augmented with the first stream's width, height, and duration in milliseconds.

input

Type: String

Path or URL to a media file.

Related

License

MIT © Travis Fischer

install

npm i ffmpeg-probe

Downloadsweekly downloads

224

version

1.0.6

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability