Socket
Socket
Sign inDemoInstall

@drovp/ffmpeg

Package Overview
Dependencies
3
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @drovp/ffmpeg

FFMPEG as a Drovp dependency.


Version published
Maintainers
1
Install size
2.07 MB
Created

Readme

Source

@drovp/ffmpeg

Provides ffmpeg, ffprobe, and ffplay static binaries as a Drovp processor dependencies.

Pre-built binaries are downloaded from:

IMPORTANT!

The source of static binaries we're using for Linux (https://johnvansickle.com/ffmpeg/) doesn't come with ffplay, therefore you can't rely on ffplay dependency to be available on Linux. If you know about a better or a separate source with ffplay in it, share it in #1.

The dependency loader does try to fall back to local binaries exposed in current platform's PATH, but that is of course unreliable.

Usage

Require in your processor config:

plugin.registerProcessor('name', {
	// ...config...
	dependencies: ['@drovp/ffmpeg:ffmpeg'],
});

Consume in your processor:

function processor(operation, utils) {
	const ffmpegPath = utils.dependencies.ffmpeg;
	// or a no conflict risking version (unnecessary in 99.999% cases)
	const ffmpegPath = utils.dependencies['@drovp/ffmpeg:ffmpeg'];
}

API

Dependency IDs and their values inside processor's utils.dependencies object.

ffmpeg

ID: @drovp/ffmpeg:ffmpeg

Shorthand: ffmpeg

Value: path to ffmpeg binary

ffprobe

ID: @drovp/ffmpeg:ffprobe

Shorthand: ffprobe

Value: path to ffprobe binary

ffplay

ID: @drovp/ffmpeg:ffplay

Shorthand: ffplay

Value: path to ffplay binary

Not available on Linux atm!

Keywords

FAQs

Last updated on 15 Jan 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc