项目作者: maddygoround

项目描述 :
Convert audio into visualizers and output as videos.
高级语言: JavaScript
项目地址: git://github.com/maddygoround/audioviz.git
创建时间: 2021-04-28T09:44:35Z
项目社区:https://github.com/maddygoround/audioviz

开源协议:MIT License

下载


Audioviz is a tool and framework for converting your audios into visualizer using Node.js and ffmpeg. Audioviz allows you to easily and programmatically create a video from your audio.

Inspired by audiogram. Audioviz aims to be very extensible and feature rich with a it’s options

Features

  • Convert audio into videos with code! 🤓
  • Declarative API with fun defaults
  • Create colorful videos by setting backgrounds

See example

Requirements

Installing

npm i audioviz

JavaScript library

  1. const Audioviz = require("audioviz");
  2. const path = require("path");
  3. var audioviz = new Audioviz({
  4. audio: path.join(__dirname, "audio.mp3"),
  5. output: "video.mp4",
  6. });
  7. (async () => {
  8. const output = await audioviz.render();
  9. console.log(output);
  10. })();

Parameters

Parameter Description Default
audio Audio input path (mp3, wav)
width Width which all media will be converted to 1280
height Height which all media will be converted to 720
output output file name
waveColor Color for audio waves drawn on frames #d84a4a
backgroundColor BackGround color for video #fff
pattern Wave pattern to be drawn bars
waveTop Top alignment 150
waveRight Right alignment 1280
waveLeft Left alignment 0
waveBottom Bottom alignment 420

Patterns

  • bar
  • curve
  • wave
  • roundBars
  • bricks
  • line
  • pixel
  • equalizer

See also


Made with ❤️
Follow me on GitHub