No description
Find a file
2022-12-02 17:42:20 +00:00
megaglitchatron.sh Update megaglitchatron.sh 2022-12-02 17:42:20 +00:00
README.md Update README.md 2022-12-02 17:41:58 +00:00

MegaGlitchaTron - A command line glitch art script

Syntax: megaglitchatron.sh [-i|m|o]
options:
i - Set input file name.
m - Set mode: hex, son or gif.
f - chose effect for sonification (chrusher, phaser, chorus, eeser)
o - Set output file name.

modes:
hex: uses sed to search and replace a string. Supported input / output: video or image file.
son: uses ffmpeg to do sonification (treats video / images as audio) Supported input/output: video or image file. (needs -f for effect)
gif: creates a glitched gif our of a static image. Supported input: image file, output: GIF.
PBM format - black and white output
PGM format - greyscale output
PAM format - color output

Software needed:

Git Bash for Windows https://git-scm.com/downloads (includes the bash shell and software such as sed a stream editor)

  • MacOS ships with everything installed
  • Linux should use bash shell and install sed (included in most distros)

FFmpeg (used for preparing input material, stabilizing output, video / image edits)

When everything is installed:

Example: 

Take a file called input.mp4, apply sonification effect to it and save output to a file called output.mp4 (actual output file will be called output.mp4-sonified.mp4)

bash megaglitchatron.sh -i input.mp4 -m son -o output.mp4