
Thrown if you accidentally set identical input and output paths (which would clobber the input file), forget to specifiy an output path and other validation errors. An instance of this class is returned by spawn.Įmits: start, begin, progress, output, error, end, complete, cancelledĪ string containing all handbrakeCLI outputĪll operational errors are emitted via the error event. Emits events you can monitor to track progress. error )Ī handle on the HandbrakeCLI process. Move into your project directory then run:Ĭonst hbjs = require ( 'handbrake-js' ) async function start ( ) start ( ). However on Linux, you must install HandbrakeCLI manually with these commands: sudo add-apt-repository -yes ppa:stebbins/handbrake-releases

On Mac and Windows, every else is installed automatically. Ubuntu 14.04 notice: Transcoding to MP4 fails on Ubuntu since 14.04 for this reason. Tested on Mac OSX, Ubuntu 14, Windows XP, Windows 7 and Windows 8.1.

It can process most common multimedia files and any DVD or BluRay sources that do not contain any copy protection. HandBrake is a tool for converting video from nearly any format to a selection of modern, widely supported codecs. It aspires to provide a lean and stable foundation for building video transcoding software in node.js. Handbrake-js is Handbrake ( v1.6.1) for node.js. Upgraders, please read the release notes.
