mirror of
https://codeberg.org/v3d/MegaGlitchATron.git
synced 2026-08-20 20:35:23 +00:00
No description
- Shell 100%
| megaglitchatron.sh | ||
| README.md | ||
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)
- install instructions for MacOS and Windows: https://formatc.hr/datamosh101/
- to use on Linux install it via package manager
When everything is installed:
- grab code (clone or just download): https://gitlab.com/hacklab01/MegaGlitchATron/
- put your files (video or image) in the same directory where you put the script and run it.
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