handbrakecli wrapper script
CoffeeScript Perl
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
README.md
index.coffee
index.js
package.json

README.md

HandBrakeCLI wrapper

How to use

See index.coffee and example

Install

npm install handbrake

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...

HandBrakeCLI -f mp4 -E faac -2 -T -i hoge.mkv -o fuga.mp4

{HandBrake} = require 'handbrake'
hb = new HandBrake

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

hb.execute()

HandBrakeCLI -e x264 -i hoge.mkv -o fuga.mp4 -x level=32:bframe=0:cabac=0

hb.setOpts
  e: 'x264'
  i: 'hoge.mkv'
  o: 'fuga.mp4'

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

hb.execute()