ffmpeg-probe
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "ffmpeg-probe", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Wrapper around ffprobe for getting info about media files.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,11 +19,13 @@ # ffmpeg-probe | ||
const ffmpeg = require('fluent-ffmpeg') | ||
const ffmpegProbe = require('ffmpeg-probe') | ||
const probe = require('ffmpeg-probe') | ||
const info = await ffmpegProbe('input.mp4') | ||
const info = await probe('input.mp4') | ||
console.log(`size=${info.width}x${info.height}px duration=${info.duration}ms`) | ||
// => size=640x360 duration=4000ms | ||
console.log(info.streams) // extra ffprobe details | ||
// => array of ffprobe streams info (verbose) | ||
// info = { | ||
// width: 640, | ||
// height: 360, | ||
// duration: 4000, | ||
// streams: [ ... ], | ||
// format: { ... } | ||
// } | ||
``` | ||
@@ -30,0 +32,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3483
7
51