Closed SmolSoftBoi closed 3 years ago
Handbrake-js installs the HandbrakeCLI
binary in the node_modules/handbrake-js/bin
folder, so as a temporary solution you can override the installed binary using symlinks.. For example, on a mac with handbrake-js installed globally, this will override the installed HandbrakeCLI
with a new version stored in my Downloads folder:
ln -s ~/Downloads/HandbrakeCLI /usr/local/lib/node_modules/handbrake-js/bin/HandbrakeCLI
That works as a temporary solution, but would still really like to see this included.
Should this feature be added to the CLI, Node.js API or both?
If we're adding it to the CLI, should we add it as an extra option? E.g.
$ handbrake --input something.mov --output another.mp4 --HandbrakeCLI-path ./something/HandbrakeCLI
Or some other way? A config file?
I feel like this should be part of the API, the HandBrake CLI is the executable.
For example:
hbjs.spawn({
input: 'something.avi',
output: 'something.m4v',
cliPath: './something/HandbrakeCLI'
});
This is fixed on master, will post again once it is released..
Can also now set HandbrakeCLI path via an environment variable
To be able to pass our own HandBrake CLI Path as an option.