slit_scanner_darkly
Slit scanning. From frames to weird final product.
This is a repository that allows for creating several types of slitscans (examples available further down the page).
Setup:
- Install ffmpeg and Python 3
- clone this repo
cd slit_scanner_darkly
mkdir venv
python3 -m venv venv/
source venv/bin/activate
pip install -r requirements.txt
Single Slitscans: Single slitscans come in two flavors: horizontal and vertical. This style of slitscan is inspired by Adam Magyar's Urban Flow project.
Moving Slitscans:
Like the single slitscans (horizontal and vertical), but compiled over all the images in a sequence. Each new frame
is a single slitscan from a different x or y coordinate.
Usage:
Required Args:
Flags | Help |
---|---|
-i, --input_dir | input directory (set of video frames) |
-o, --output_dir | output directory (script will create subfolder) |
Optional:
Flags | Help |
---|---|
-t, --slitscan_type | Type of slitscan to be performed. [0]=single-vertical, [1]=single-horizontal [2]=Moving-Horizontal, [3]=Moving-Vertical, [4]=Moving-Both (Vertical AND Horizontal) |
-slit, --slit_size | Slit Size (default=5) |
-l, --frame_limit | Limit number of frames to specified int (default = -1) |
-format, --output_format | Output image format (default="JPEG") |
Examples:
Github doesn't let me embed YouTube vids... lame. I put a few gifs in, but for full examples see the videos.
Original Footage:
Train Station:
https://www.youtube.com/watch?v=t-guLsCS_pg
Bridge:
https://www.youtube.com/watch?v=-JRnao5nn_U
Single Slitscan (height)
cli.py -i <input_dir - set of video frames> -o <output_dir> -slit 5 -t 0
Train Station:
Bridge:
Single Slitscan (width)
cli.py -i <input_dir - set of video frames> -o <output_dir> -slit 5 -t 1
Train Station:
Bridge:
Moving Slitscan (height)
cli.py -i <input_dir - set of video frames> -o <output_dir> -slit 5 -t 2
Train Station:
https://www.youtube.com/watch?v=Mm9q6qhgt7Y
Bridge:
https://www.youtube.com/watch?v=e5PUNPEcwTI
Moving Slitscan (width)
cli.py -i <input_dir - set of video frames> -o <output_dir> -slit 5 -t 3