Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

Wrapper around ffprobe for getting info about media files.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.8K
decreased by-4.12%
Maintainers
1
Weekly downloads
 
Created
Source

ffmpeg-probe

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

NPM Build Status JavaScript Style Guide

This is a helpful wrapper around for getting common media info

Install

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

Usage

const ffmpeg = require('fluent-ffmpeg')
const ffmpegProbe = require('ffmpeg-probe')

const info = await ffmpegProbe('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)

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.

License

MIT © Travis Fischer

Keywords

FAQs

Package last updated on 28 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc