Giter Site home page Giter Site logo

slitscanner's Introduction

slitscanner

Slitscan video effect in Processing

Example video

This tool simulates the slitscan effect by delaying pixels in a video by a certain amount of frames depending on the darkness of a reference gradient image.

##Important: This script uses a semaphore object from java.util.concurrent so if you are getting wierd errors executing it you'll probably need to install JDK 7 or later. JDK 8

##Usage:

  1. Specify a video file path.

IMPORTANT : Videos must be located in the project's 'data' folder.

Video must be .mov type (only version tested, maybe other quicktime compatible types are supported)

  1. Set the output path.

  2. Check video details and set the width and height.

  3. (Optional) Set max delay. This can be changed while hte program is running.

##Webcam mode:

  1. Set WEBCAM_MODE to true.
  2. Run the script, it will output a list of the available resolutions for your webcam and then probably crash
  3. Set WEBCAM_NUMBER to the desired camera number in the list
  4. Set VIDEO_WIDTH and VIDEO_HEIGHT to that camera's resolution

##Modes (GRADIENT recommended): GRADIENT : Uses the pixels of a gradient to apply the effect

SLITS : Only in the up direction, might run a bit faster than gradient mode.

##Key controls: ###Gradient controls: g : toggle gradient visibility (controls still work while gradient is not displayed) ####Press 1 : GRADIENT mode w: up gradient

a: left gradient

s: right gradient

d: down gradient

###Press 2 : WORMHOLE mode Click and drag to place the wormhole

###Press 3 : PAINT mode Click and drag to paint the gradient layer

[ : Decrease brush size by 10

] : Increase brush size by 10

###Delay controls: Increased max delay means that the gradient is interpreted with a higher resolution, but also means more time delay between the top and the bottom of the video.

"=" : Increase max_delay by 1

"-" : Decrease max_delay by 1

"SHIFT" + "=" : Increase max_delay by 10

"SHIFT" + "-" : Decrease max_delay by 10

Author:

Etienne Richan

12/07/2015

slitscanner's People

Contributors

nerrull avatar tutorat avatar tsulej avatar

Stargazers

Michael Anthony avatar

Watchers

Michael Anthony avatar  avatar

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.