Programmatically build ffmpeg command line options
npm install hoolihanHoolihan is a JavaScript module to help build Ffmpeg command-line options, and run Ffmpeg with those options as a NodeJS child process. You, must "bring your own" build of ffmpeg and ffprobe, and Hoolihan does some work to read the capabilities of your particular build.
Hoolihan includes mocha, chai, and eslint as devDependencies. Use the optional --production flag when installing to omit them.
``shell`
npm install hoolihan [--production]
See Configuration for how to point Hoolihan at your builds of Ffmpeg and Ffprobe.
`shell`
git clone https://github.com/bradcordeiro/hoolihan.git
cd hoolihan/
npm install
Hoolihan uses SemVer for versioning.
Hoolihan uses dotenv to know where your Ffmpeg and Ffprobe binaries are, as well as the default font file to be used for Ffmpeg's drawtext filter. Create a file named .env in your project root with the following variables, set to your desired values. Spaces are allowed in binary locations, for instance if using a dockerized Ffmpeg binary:
`shell`.env
FFMPEG_BIN=docker run --rm myimages/ffmpeg
FFPROBE_BIN=/usr/local/bin/ffprobe
DRAWTEXTFONT=/Users/administrator/Library/Fonts/AverageMono.ttf
Numerous tests are included, most of them written before this module got any real-world use. Pull requests with new tests are welcome. To run, install mocha and chai, then:
`shell`
npm test
Uses the Airbnb JavaScript Style Guide. Eslint is listed as a devDependency, and a .eslintrc.json` is checked into source control.
Please see the wiki.
Released under a Creative Commons Attribution-NonCommercial 4.0 International Public License.