Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 15 days 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 (about 11 years ago)
- Default Branch: main
- Last Pushed: 2023-12-25T10:58:30.000Z (11 months ago)
- Last Synced: 2024-09-19T16:36:28.477Z (about 2 months ago)
- Topics: advanced, advanced-visualization-studio, avs, json, studio, transcode, visualization, vj, webvsc, winamp
- Language: TypeScript
- Homepage:
- Size: 1.53 MB
- Stars: 16
- Watchers: 7
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webvsc
[![npm](https://flat.badgen.net/npm/license/@visbot/webvsc)](https://www.npmjs.org/package/@visbot/webvsc)
[![npm](https://flat.badgen.net/npm/v/@visbot/webvsc)](https://www.npmjs.org/package/@visbot/webvsc)
[![CI](https://img.shields.io/github/actions/workflow/status/grandchild/AVS-File-Decoder/tests.yml?style=flat-square)](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)