damianociarla / node-ffmpeg

ffmpeg module for nodejs
MIT License
600 stars 140 forks source link

How do you set a custom path to the ffmpeg bin ? #72

Open Melonbwead opened 4 years ago

Melonbwead commented 4 years ago

I have seen 2 PRs that mentions this but i cant seem to get it to work with: https://github.com/damianociarla/node-ffmpeg/pull/19 (MERGED) https://github.com/damianociarla/node-ffmpeg/pull/44 (This one here had a bit of readme instructions but got closed, sad times)

And there's no mention of how to do this in the README on master branch~ 😢

I've tried doing something like this but no luck:

const ffmpeg = window.require('ffmpeg');
ffmpeg.bin = './path/to/ffmpeg/bin/ffmpeg';
marioviana commented 4 years ago

@ChennyBaBy, it seems this issue was indeed solved with that PR, but the latest version (0.0.4) has 7 years and that PR is relatively recent and is not yet on that version..

We would need a new version with the new changes.