https://github.com/milewski/handbrake-bin
HandBrake wrapper that makes it seamlessly available as a local dependency
https://github.com/milewski/handbrake-bin
encoder handbrake mkv transcoder video wrapper x264 x265
Last synced: 2 months ago
JSON representation
HandBrake wrapper that makes it seamlessly available as a local dependency
- Host: GitHub
- URL: https://github.com/milewski/handbrake-bin
- Owner: milewski
- License: mit
- Created: 2017-04-04T15:47:40.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-29T12:01:29.000Z (almost 2 years ago)
- Last Synced: 2025-04-11T04:36:52.369Z (2 months ago)
- Topics: encoder, handbrake, mkv, transcoder, video, wrapper, x264, x265
- Language: JavaScript
- Size: 73.2 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# handbrake-bin
[](https://badge.fury.io/js/handbrake-bin)
[](https://www.npmjs.com/package/handbrake-bin)
[](https://github.com/prettier/prettier)
[](https://github.com/semantic-release/semantic-release)
[](http://commitizen.github.io/cz-cli/)> HandBrake is a tool for converting video from nearly any format to a selection of modern, widely supported codecs. More at [https://handbrake.fr/](https://handbrake.fr/)
# What is this?
This is a wrapper to install [HandBrake](https://handbrake.fr) as a local dependency through **npm**.
## Install
```bash
$ npm install handbrake-bin --save
```
_Linux users may need to run with sudo_## Usage
```js
const execFile = require('child_process').execFile;
const handBrake = require('handbrake-bin');execFile(handBrake, ['--input', 'input.mkv', '--output', 'output.mp4'], err => {
console.log('Done');
});
```
Or you could pull [```object-to-spawn-args```](https://www.npmjs.com/package/object-to-spawn-args) and use like this:
```js
import { HandbrakeCLIPath } from 'handbrake-bin';
import toSpawnArgs from 'object-to-spawn-args';const options = {
input: 'input.mkv',
output: 'output.mp4'
}execFile(handBrake, toSpawnArgs(options), err => {
console.log('Done');
});
```# CLI
```bash
$ npm install --global handbrake-bin
```
```bash
$ handbrake --help
```## Credits
All the credits goes to [https://github.com/HandBrake/HandBrake](https://github.com/HandBrake/HandBrake) and its contributors for their hard work on building [HandBrake](https://handbrake.fr).
## License
[MIT](LICENSE) © [Rafael Milewski](https://github.com/milewski)