Socket
Socket
Sign inDemoInstall

choirlessffmpegrunner

Package Overview
Dependencies
4
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    choirlessffmpegrunner

fluent-ffmpeg promise runner


Version published
Weekly downloads
7
increased by16.67%
Maintainers
1
Install size
1.54 MB
Created
Weekly downloads
 

Readme

Source

ffmpegrunner

A tiny utility that turns a fluent-ffmpeg command into a Promise

Installing

npm install https://github.com/glynnbird/ffmpegrunner.git

Usage

const run = require('ffmegrunner').run
const ffmpeg = require('fluent-ffmpeg')

const main = async () => {
  const command = ffmpeg()
    .input('in.mp4')
    .output('out.jpg')
    .outputOptions(['-format singlejpeg', '-vframes 1'])
  await run(command)
}

main()

To send debug information to stderr, add true as a second parameter to run e.g

  await run(command, true)

To probe a file with ffprobe:

  const probe = require('ffmpegrunner').probe
  const results = await probe('myfile.mp4')

Keywords

FAQs

Last updated on 28 Jun 2021

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