JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q38607F
  • License GPL-3.0-or-later

Absolute best way to use ffmpeg with node.

Package Exports

  • best-ffmpeg
  • best-ffmpeg/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (best-ffmpeg) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

best-ffmpeg-node

Looking for a ffmpeg module that's finally good? You've come to the right place my friend. Your search is over. This is the best way to use ffmpeg with node.

Advantages

Fully async

Unlike other modules best-ffmpeg is fully awaitable. No more painful callback functions and messy .then()s! Simply write await if you want execution to wait for ffmpeg to finish, if you do not, skip the await!

Simple, not OOP

No more writing 10 lines of code just to convert an image.

Compatible with 100% of ffmpeg

Most modules only support doing a few narrow operations with ffmpeg with no good way to do advanced processing with many layers and complex filters. This module supports everything ffmpeg does, and that is a lot.

The best support

Wonder how to do something, or just need help? We got you. There's more than 24998 questions answered on SO that apply to this module. There's 75 times more help avalible for this module compared to fluent-ffmpeg.

zero-dependancy

Well it's just nice isn't it?

Usage

Install the package:

npm i best-ffmpeg

If you haven't already, install FFMPEG: https://ffmpeg.org/

Now you're ready! Example usage:

const ffmpeg = require('best-ffmpeg');

// Convert a PNG file to .JPG:
await ffmpeg(`-i myImage.png myImage.jpg`)
console.log("Done!")