avisynth
Avisynth bindings for NodeJS with a strong focus on ease-of-use.
A node module that you can use to process videos, images and sound with Avisynth, in a self-contained package.
- No dependencies
- Top code quality
- 100% code coverage for all files down to branches and statements
It currently only works in Windows (like Avisynth itself), but it may be possible, in theory, to add Linux support via Wine.
install
npm install -g avisynth
usage
It can be used both by scripts as well as from command line (also not requiring Avisynth to be installed, and possibly helpful for shell scripts in other languages).
Node usage:
var avisynth = ;var script = ; // Omitting "new" is also okscriptcode = 'Version()'; // Can also be passed to the constructorscript; // Direct plugin and built-in callsscript;script; // Runs the script (with no output).script; // Validates the Avisynth code.// Still planning on adding more API, specifically video encoding.
Command-line usage:
avisynth-js info path/to/script.avs # Returns video info as JSON avisynth-js lint path/to/script.avs # Validates a script, also JSON
Sample output for info
:
docs
At the moment I'm working on a Wiki so soon there'll be docs there.