CLI tool to batch-convert Winamp AVS presets into native Webvs JSON format.
Use your preferred NodeJS package manager to install the CLI globally
$ npm install --global @visbot/webvsc-cliTo use the tool without installation, you can use the npx command:
$ npx @visbot/webvsc-cliOnce setup, you can run webvsc --help to list available options:
Usage: webvsc [options] [command]
Options:
-h, --help display help for command
Commands:
convert [options] <file...> convert presets to JSON format, supports glob patterns
info [options] <file...> show info about AVS presets, supports glob patterns
diff [options] <preset1> <preset2> approximates similarity between two AVS presets
help [command] display help for commandRefer to the help for each sub-command to list its options.
Converts presets to Webvs JSON format
Example:
$ webvsc convert ./Plugins/avs/**/*.avsShow list of effects and assets used by a preset
Example:
$ webvsc info example.avs
$ webvsc info ./Plugins/avs/**/*.avs --summaryApproximates the difference between two presets
Example:
$ webvsc diff -mld preset1.avs preset2.avswebvsc diff --help for details.
When trying to convert a large number of files, you might run into an EMFILE error. This is a well-documented issue that occurs whenever the number of maximum open files exceeds its limit. In such a case, you can use the following as workaround.
Linux/macOS
$ for dir in avs/*; do echo $dir; webvsc convert "$dir/**/*.avs" --quiet; doneWindows
$ Get-ChildItem -Path .\avs\ -Recurse | ForEach-Object { webvsc convert $_.FullName --quiet }All code is licensed under The MIT License