🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

ffmpeg-probe

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ffmpeg-probe - npm Package Compare versions

Comparing version

to
1.0.2

.editorconfig

2

package.json
{
"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 @@