Git Product home page Git Product logo

avs-file-decoder's Introduction

webvsc

npm npm CI

Description

Library to to batch-convert Winamp AVS presets into native Webvs JSON format. Take a look at the supported components.

Installation

Use your preferred Node package manager to install the package:

npm install @visbot/webvsc@next

Usage

convertPreset(arrayBuffer, fileName, fileDate, [options])

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

License

All code is licensed under The MIT License

avs-file-decoder's People

Contributors

chezinut avatar dependabot[bot] avatar grandchild avatar idleberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

avs-file-decoder's Issues

"VFX Avi player"

i use in my presets "VFX Avi player" from http://goebish.free.fr/vfx

Decoder find it as
{
"type": "AVIPlayer",
"filePath": "video_file.avi",
"enabled": false
}
actually element was enabled and there was much more settings :)

Cannot decode old 0.2 AVS

I just tried to decode bunch of AVS files I found in my attic. All decoded fine except for one. (By "fine" I mean I got sensible JSON, although I did not have opportunity to test them).

All were made by Winamp, although I don't remember version (possibly they could have been started by 2.x and retouched by 3.x or 5.x). Also I don't remember if there was anything special about this particular file.

So either the file is corrupted, or maybe there's a bug somewhere? Since they unzipped just fine, and none of them looks garbled, I guess the latter. So if you want to check it out, I have uploaded them all to Github; the failing one is avs/propan-butan_3_-_heavy_flies.avs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.