1.0.0 • Published 3 years ago

ffmpeg-inject v1.0.0

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
3 years ago

FFMPEG-INJECT

This module injects the ffmpeg binarys into the path variable of the current node process. The binarys are provided by the ffmpeg-static module.

How to use

The usage is pretty much the same as in ffmpeg-static, except that it also adds the ffmpeg binary path the the enviroment variables.

var file = require('ffmpeg-inject');
var enviroment = process.env['PATH'];

console.log(`path: ${ffmpeg}`);
console.log(`enviroment: ${enviroment}`);
$ node example.js

path: /home/malte/test/ffmpeg-inject/node_modules/ffmpeg-static/ffmpeg.exe
enviroment: ...:/home/malte/test/ffmpeg-inject/node_modules/ffmpeg-static