Skip to content

Take a video file and output it to the e131(sAcn) protocol for a lighting grid using node

Notifications You must be signed in to change notification settings

sudsy/animatedgif2e131

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Animated Gif to E1.31

This module lets you control lights by sending video output in the form of an animated gif. It was designed primarily for a grid of led strips.

##Features

  • Use your favourite video editing software to create a video, convert it to an animated gif and then output to sAcn (E1.31)
  • Supports common snaked cabling by default - supply a function to map in whatever way you like
  • Includes a comprehensive test suite

##Usage

Command Line

Usage: animatedgif2e131 [options] <file>

 Options:

   -h, --help             output usage information
   -V, --version          output the version number
   -h, --host <value>     hostname or ip address
   -p, --port <n>         port
   -f, --fps <n>           frames per second
   -m, --mapping <value>  mapping function - snake, rows, gryCols
   -i, --interactive      interactive mode. Allows pausing and restarting of display from prompt

The tool can also be accessed through it's api. For Example:

var AnimatedGif2E131 = require("animatedgif2e131");

var fs = require("fs");

var options = {
  "port" : 5568,
  "host" : "127.0.0.1"
};

var buf = fs.readFileSync("myfile.gif");

var mappingFunction = AnimatedGif2E131.mapping.cols;

var theGif = new AnimatedGif2E131(buf, options, mappingFunction);

var fps = 25;

theGif.startAnimation(fps);

About

Take a video file and output it to the e131(sAcn) protocol for a lighting grid using node

Resources

Stars

Watchers

Forks

Packages

No packages published