Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Batch encode a folder of videos using node & handbrake

Notifications You must be signed in to change notification settings

SoManyScientists/node-handebrake

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-handbrake

A node wrapper for handbrake to encode all video files in a particular folder.

Usage

First, set up a video profile in handbrake, or use one of the defaults.

Usage: encode_folder [options] folder

Options:

  -h, --help                       output usage information
  -v, --version                    output the version number
  -R, --recursive                  Recursively scan directory
  -d, --delete                     Delete the original video on successful encoding
  -f, --force                      Force over-write of existing files
  -k, --keep                       Keep partially encoded files from encoding failures
  -w, --watch                      Watch the folder indefinitely for new video files
  -Z, --preset       <name>        Handbrake video preset (default: Normal)
  -H, --handbrake    <path>        Path to handbrake-cli (default: /Applications/HandBrakeCLI)
  -c, --cpu          <count>       Set CPU count (default: autodetected)
  -x, --extensions   <extensions>  Comma-separated list of file extensions to process (default: [long list])
  -X, --outputext    <ext>         Extension for generated files (default: m4v)
  -O, --outputfolder <folder>      Folder in which to place completed videos (default: same-as-original)

Sample Execution:

Found File: /Users/markkah/Desktop/08:23:2011/Entertainment_i5.mov
Found File: /Users/markkah/Desktop/08:23:2011/Entertainment_i3.mov
Found File: /Users/markkah/Desktop/08:23:2011/Entertainment_i7.mov
Encoding: Entertainment_i5.mov  ✓ Success!
Encoding: Entertainment_i3.mov  ✓ Success!
Encoding: Entertainment_i7.mov   [###########         ] 57.93%  ETA: 1s

About

Batch encode a folder of videos using node & handbrake

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%