Slitscan video effect in Processing
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.
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
- 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)
-
Set the output path.
-
Check video details and set the width and height.
-
(Optional) Set max delay. This can be changed while hte program is running.
- Set WEBCAM_MODE to true.
- Run the script, it will output a list of the available resolutions for your webcam and then probably crash
- Set WEBCAM_NUMBER to the desired camera number in the list
- Set VIDEO_WIDTH and VIDEO_HEIGHT to that camera's resolution
GRADIENT : Uses the pixels of a gradient to apply the effect
SLITS (DEPRECATED): Only in the up direction, might run a bit faster than gradient mode.
g : toggle gradient visibility (controls still work while gradient is not displayed) ####Press 1 : Stardard GRADIENT mode w: up gradient
a: left gradient
s: right gradient
d: down gradient
Click to move the gradient around ( will produce wierd edges)
q,w,e,a,s,d,z,c : Different directions/polarities for symmetry (switch to the gradient view and you'll see what I mean)
Click/drag to move the point of symmetry around
Click and drag to place the wormhole
9 : Decrease wormhole size
0 : Increase wormhole size
Click and drag to paint the gradient layer
[ : Decrease brush size by 10
] : Increase brush size by 10
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