Skip to content

Injects the ffmpeg-static binarys into the path variable of the current node process.

License

Notifications You must be signed in to change notification settings

parzival-space/ffmpeg-inject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FFMPEG-INJECT

This module injects the ffmpeg binaries into the path variable of the current node process.
The binaries 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 to the environment 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

About

Injects the ffmpeg-static binarys into the path variable of the current node process.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published