/Seriously.js

A real-time, node-based video effects compositor for the web built with HTML5, Javascript and WebGL

Primary LanguageJavaScriptMIT LicenseMIT

Seriously.js

Seriously.js is a real-time, node-based video compositor for the web. Inspired by professional software such as After Effects and Nuke, Seriously.js renders high-quality video effects, but allows them to be dynamic and interactive.

Getting Started

Full documentation is in progress at the wiki. Start with the Tutorial and FAQ.

Features

  • Optimized rendering path and GPU accelerated up to 60 frames per second
  • Accept image input from varied sources: videos, images, canvases and arrays
  • Output to multiple canvases
  • Effect parameters accept multiple formats and can monitor HTML form inputs
  • Basic 2D transforms (translate, rotate, scale, skew) on effect nodes
  • Plugin architecture for adding new effects
  • Read pixel array from any node
  • Load with AMD/RequireJS

Included Effects

  • Ascii Text
  • Bleach Bypass
  • Blend
  • Channel Mapping
  • Chroma Key
  • Color generator
  • Color Cube
  • Edge Detect
  • Emboss
  • Exposure Adjust
  • Fader
  • Hex Tiles
  • Hue/Saturation Adjust
  • Invert
  • Luma Key
  • Night Vision
  • Ripple
  • Scanlines
  • Sepia tone
  • Sketch
  • Split
  • Tone Adjust
  • TV Glitch
  • Vignette

Requirements

WebGL

Seriously.js requires a browser that supports WebGL. Development is targeted to and tested in Firefox (4.0+) and Google Chrome (9+). Safari and Opera are expected to support WebGL in the near future. There are no public plans for Internet Explorer to support WebGL, though it may be available using the Chrome Frame plugin.

Even though a browser may support WebGL, the ability to run it depends on the system's graphics card. Serioulsy.js is heavily optimized, so most modern desktops and notebooks should be sufficient. Older systems may run slower, especially when using high-resolution videos.

Mobile browser support for WebGL is limited. Mobile Firefox has some support, but the Android Browser and Mobile Safari do not.

Seriously.js provides a method to detect browser support and offer descriptive error messages wherever possible.

Cross-Origin Videos and Images

Due to security limitations of WebGL, Seriously.js can only process video or images that are served from the same domain, unless they are served with CORS headers. Firefox 12 and up support CORS for video but other browsers do not, and videos served with CORS are rare. So for now, it is best to host your own video files.

Roadmap:

  • API documentation and plugin developer guidelines
  • More examples and tutorials
  • 3D transforms (perspective) on any node
  • Accept input from WebGL Textures
  • Benchmarking utility to determine client capabilities
  • Automatic resolution tuning to maintain minimum frame rate
  • Handle lost WebGL context
  • Debug mode
  • Graphical interface
  • Effects:
    • Perlin Noise
    • Clouds
    • Gaussian Blur
    • Curves

License

Seriously.js is made available under the MIT License.

Individual plugins may be licensed differently. Check source code comments.

Credits

Seriously.js is created and maintained by Brian Chirls with support from:

Mozilla