https://github.com/parzival-space/ffmpeg-inject
Injects the ffmpeg-static binarys into the path variable of the current node process.
https://github.com/parzival-space/ffmpeg-inject
environment-variables ffmpeg ffmpeg-static
Last synced: 13 days ago
JSON representation
Injects the ffmpeg-static binarys into the path variable of the current node process.
- Host: GitHub
- URL: https://github.com/parzival-space/ffmpeg-inject
- Owner: parzival-space
- License: gpl-3.0
- Created: 2021-08-15T14:40:40.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-01-10T09:51:05.000Z (over 4 years ago)
- Last Synced: 2025-03-11T01:03:25.412Z (about 1 year ago)
- Topics: environment-variables, ffmpeg, ffmpeg-static
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/ffmpeg-inject
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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.
```javascript
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
```