All Projects → kribblo → Node Ffmpeg Installer

kribblo / Node Ffmpeg Installer

Platform independent binary installer of FFmpeg for node projects

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Node Ffmpeg Installer

FFmpegAudioPlayer
基于FFmpeg+OpenSL ES实现的音频播放器,组合使用多种过滤器
Stars: ✭ 50 (-80.39%)
Mutual labels:  ffmpeg
yayd
youtube-dl backend in Rust, aka youtube & co downloader
Stars: ✭ 32 (-87.45%)
Mutual labels:  ffmpeg
FFmpeg
Unofficial FFmpeg with added custom native Visual Studio project build tools. FFmpeg: A complete, cross-platform solution to record, convert and stream audio and video.
Stars: ✭ 479 (+87.84%)
Mutual labels:  ffmpeg
nightcoreify
Randomly generates nightcore and uploads it to YouTube. A joke that got out of hand.
Stars: ✭ 54 (-78.82%)
Mutual labels:  ffmpeg
mmtool
mutimedia tool script
Stars: ✭ 21 (-91.76%)
Mutual labels:  ffmpeg
puppeteer-lottie-cli
CLI for rendering Lottie animations via Puppeteer to image, GIF, or MP4.
Stars: ✭ 85 (-66.67%)
Mutual labels:  ffmpeg
Tana
Bringing the Picture-in-Picture experience to the desktop.
Stars: ✭ 109 (-57.25%)
Mutual labels:  ffmpeg
docker python-opencv-ffmpeg
Dockerfile containing FFmpeg, OpenCV4 and Python2/3, based on Ubuntu LTS
Stars: ✭ 38 (-85.1%)
Mutual labels:  ffmpeg
Dockerfiles
Optimized media, analytics and graphics software stack images. Use the dockerfile(s) in your project or as a recipe book for bare metal installation.
Stars: ✭ 98 (-61.57%)
Mutual labels:  ffmpeg
DuME
A fast, versatile, easy-to-use and cross-platform Media Encoder based on FFmpeg
Stars: ✭ 66 (-74.12%)
Mutual labels:  ffmpeg
X1Player
iOS端封装的视频播放器.支持直播,录播视频的播放,支持常用的播放界面控制,类似于ijkplayer 优点是体积更小,使用快捷
Stars: ✭ 21 (-91.76%)
Mutual labels:  ffmpeg
jellyfin-ffmpeg
FFmpeg for Jellyfin
Stars: ✭ 88 (-65.49%)
Mutual labels:  ffmpeg
SharpGrabber
Download from YouTube, Vimeo, PornHub, HLS (M3U8 files) with .NET and JavaScript, Library and desktop app for downloading high quality media
Stars: ✭ 138 (-45.88%)
Mutual labels:  ffmpeg
ffmpeg-progressbar-cli
A colored progress bar for FFmpeg.
Stars: ✭ 140 (-45.1%)
Mutual labels:  ffmpeg
nebula
Media asset management and broadcast automation system
Stars: ✭ 103 (-59.61%)
Mutual labels:  ffmpeg
AndroidFFmpeg
FFmpeg命令在Android中的使用
Stars: ✭ 28 (-89.02%)
Mutual labels:  ffmpeg
acinerella
FFmpeg wrapper library for audio/video decoding
Stars: ✭ 18 (-92.94%)
Mutual labels:  ffmpeg
catnip
terminal audio visualizer for linux/unix/macOS/windblows*
Stars: ✭ 79 (-69.02%)
Mutual labels:  ffmpeg
eloquent-ffmpeg
High-level API for FFmpeg's Command Line Tools
Stars: ✭ 71 (-72.16%)
Mutual labels:  ffmpeg
ffmpeg-commander
🛠️ FFmpeg Command Generator Web UI
Stars: ✭ 136 (-46.67%)
Mutual labels:  ffmpeg

node-ffmpeg-installer

Platform independent binary installer of FFmpeg for node projects. Useful for tools that should "just work" on multiple environments.

Installs a binary of ffmpeg for the current platform and provides a path and version. Supports Linux, Windows and Mac OS/X.

A combination of package.json fields optionalDependencies, cpu, and os let's the installer only download the binary for the current platform. See also "Warnings during install", below.

Install

npm install --save @ffmpeg-installer/ffmpeg

Usage examples

const ffmpeg = require('@ffmpeg-installer/ffmpeg');
console.log(ffmpeg.path, ffmpeg.version);

process.spawn()

const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
const spawn = require('child_process').spawn;
const ffmpeg = spawn(ffmpegPath, args);
ffmpeg.on('exit', onExit);

fluent-ffmpeg

const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
const ffmpeg = require('fluent-ffmpeg');
ffmpeg.setFfmpegPath(ffmpegPath);

Known issues

Warnings during install

To automatically choose the binary to install, optionalDependencies are used. This currently outputs warnings in the console, an issue that is tracked by the npm team here.

AWS and/or Elastic Beanstalk

If you get permissions issues, try adding a .npmrc file with the following:

unsafe-perm=true

See issue #21

Wrong path under Electron with Asar enabled

It's a known issue that Asar breaks native paths. As a workaround, if you use Asar, you can do something like this:

const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path.replace('app.asar', 'app.asar.unpacked');

Compiling ffmpeg for platforms other than your own

If you need to install a version of ffmpeg that differs than your current platform (e.g. compiling a Linux version to upload to AWS Lambda from MacOS), you can use npm install @ffmpeg-installer/linux-x64 --force (substituting linux-x64 with whatever platform you need). Note that if you are compressing your project into a .zip for Lambda, you will need to exclude the other platforms' builds from your archive.

The binaries

Downloaded from the sources listed at ffmpeg.org:

For version updates, submit issue or pull request.

Upload new versions

In every updated platforms/* directory:

npm run upload

See also

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].