Socket
Book a DemoInstallSign in
Socket

choirlessffmpegrunner

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

choirlessffmpegrunner

fluent-ffmpeg promise runner

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
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

ffmpeg

FAQs

Package last updated on 28 Jun 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.