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.

  • 1.0.3
  • 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

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.

  • fluent-ffmpeg
  • awesome-ffmpeg - A curated list of awesome ffmpeg resources with a focus on JavaScript.

License

MIT © Travis Fischer

Keywords

FAQs

Package last updated on 17 Apr 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