# handbrake

> HandBrakeCLI wrapper script

Latest version **0.0.1** (published 2012-11-30) · BSD license · 0 weekly downloads

## Install

```sh
npm install handbrake
pnpm add handbrake
yarn add handbrake
bun add handbrake
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2012-11-30 |
| First published | 2012-11-30 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | geta6 |
| Maintainers | geta6 |
| Keywords | handbrake |

## Links

- npm: https://www.npmjs.com/package/handbrake
- Repository: https://github.com/geta6/node-handbrake
- npm.io page: https://npm.io/package/handbrake

## Dependencies (1)

- [consolable](https://npm.io/package/consolable.md) *

## Recent versions

- 0.0.1 (latest) — 2012-11-30

## README

# HandBrakeCLI wrapper

## How to use

See `index.coffee` and `example`

## Methods

* `setPath(string path)`: set handbrake path
* `setOpts(object opts)`: set handbrake arguments
* `setFlag(string key)`: set handbrake non-value arguments
* `setLong(string key, string val)`: set handbrake long-type options
* `setX264(object opts)`: set x264 options
* `execute`: execute HandBrakeCLI

## Example

### want to do...

```sh
HandBrakeCLI -f mp4 -E faac -2 -T -i hoge.mkv -o fuga.mp4
```
↓
```coffee
{HandBrake} = require 'handbrake'
hb = new HandBrake

hb.setOpts
  f: 'mp4'
  E: 'faac'
  2: ''
  T: ''
  i: 'hoge.mkv'
  o: 'fuga.mp4'

hb.execute()
```
---
```sh
HandBrakeCLI -e x264 -i hoge.mkv -o fuga.mp4 -x level=32:bframe=0:cabac=0
```
↓
```coffee
hb.setOpts
  e: 'x264'
  i: 'hoge.mkv'
  o: 'fuga.mp4'

hb.setX264
  level: 32
  bframe: 0
  cabac: 0

hb.execute()
```

---
_Source: https://npm.io/package/handbrake · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
