Task description, either "Encoding" or "Muxing"Īn aggregate of stdout and stderr output from the underlying HandbrakeCLI process.Īll operational exceptions are delivered via this event.įired on successful completion of an encoding task. If you're expecting an encode and this never fired, something went wrong.įired at regular intervals passing a progress object. Nothing has happened yet.įired when encoding begins. Thrown if the installed HandbrakeCLI binary has gone missing.Ĭancel the encode, kill the underlying HandbrakeCLI process then emit a cancelled event.įired as HandbrakeCLI is launched. Thrown when an invalid preset is specified. Thrown when the input file specified does not appear to be a video file. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |