Wrapper around ffprobe for getting info about media files such as width, height, and duration.
npm install --save ffmpeg-probe
# or
yarn add ffmpeg-probe
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: { ... }
// }
Returns a Promise
for the probe information augmented with the first stream's width
, height
, and duration
in milliseconds.
Type: String
Path or URL to a media file.
- fluent-ffmpeg
- awesome-ffmpeg - A curated list of awesome ffmpeg resources with a focus on JavaScript.
MIT © Travis Fischer
Support my OSS work by following me on twitter