https://github.com/grandchild/avs-file-decoder
Convert Winamp AVS .avs preset files to WebVS JSON
https://github.com/grandchild/avs-file-decoder
advanced advanced-visualization-studio avs json studio transcode visualization vj webvsc winamp
Last synced: 6 months ago
JSON representation
Convert Winamp AVS .avs preset files to WebVS JSON
- Host: GitHub
- URL: https://github.com/grandchild/avs-file-decoder
- Owner: grandchild
- License: mit
- Created: 2013-09-30T14:10:18.000Z (over 12 years ago)
- Default Branch: main
- Last Pushed: 2023-12-25T10:58:30.000Z (over 2 years ago)
- Last Synced: 2025-04-18T18:07:22.101Z (about 1 year ago)
- Topics: advanced, advanced-visualization-studio, avs, json, studio, transcode, visualization, vj, webvsc, winamp
- Language: TypeScript
- Homepage:
- Size: 1.53 MB
- Stars: 17
- Watchers: 6
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webvsc
[](https://www.npmjs.org/package/@visbot/webvsc)
[](https://www.npmjs.org/package/@visbot/webvsc)
[](https://github.com/grandchild/AVS-File-Decoder/actions)
## Description
Library to to batch-convert [Winamp AVS presets](https://www.wikiwand.com/en/Advanced_Visualization_Studio) into native [Webvs](https://github.com/azeem/webvs) JSON format. Take a look at the [supported components](doc/components.md).
## Installation
Use your preferred [Node](https://nodejs.org) package manager to install the package:
```sh
npm install @visbot/webvsc@next
```
## Usage
`convertPreset(arrayBuffer, fileName, fileDate, [options])`
```js
import { convertPreset } from '@visbot/webvsc';
import fs from 'node:fs':
const avsBuffer = await fs.promises.readFile(file);
const presetName = 'My Awesome Preset'; // no file-extension!
const modifiedDate = (await fs.stat(file)).mtime || new Date();
const webvs = convertPreset(avsBuffer, presetName, modifiedDate.toISOString());
```
## Options
### hidden
Type: `boolean`
Default: `false`
Don't extract hidden strings from fixed-size strings
### quiet
Type: `boolean`
Default: `false`
Prints errors only
### verbose
Type: `number`
Default: `0`
Control the amount of output displayed:
* `0` Display name of operation (read/write)
* `1` List detected components
* `2` List component details
## Authors
* [grandchild](https://github.com/grandchild)
* [idleberg](https://github.com/idleberg)
## License
All code is licensed under [The MIT License](http://opensource.org/licenses/MIT)