Skip to content

Latest commit

 

History

History
41 lines (22 loc) · 1.56 KB

README.md

File metadata and controls

41 lines (22 loc) · 1.56 KB

Sonify raw video data using Midi CCs and multichannel processing with Ecasound & FFmpeg :^)

Usage

Syntax: ./glitchcam WIDTHxHEIGTH colorspace audiosamplerate ffaudioformat ecaaudioformat fx1=0 fx2=0

e.g. ./glitchcam 640x360 xyz12le 44100 mulaw 16 fx1=17 fx2=36

Requirments

Ubuntu lol

v4l-utils - sudo apt-get install v4l-utils

FFmpeg - sudo apt-get install ffmpeg

Rosegarden - sudo apt-get install rosegarden<-- Set Rosegarden MIDI out to 14:0 and use the Midi Mixer

ladspa-sdk - sudo apt-get install ladspa-sdk <-- ladspa header file thing needed for ecasound to be ladspa compatible

Alsa Lib shared library - sudo apt-get install libasound2<-- I needed this to make eca work with my Alsa Sequencer.

Ecasound <-- configure source with ./configure --enable-shared --enable-alsa -enable-ladspa

Audacity - sudo apt-get install audacity

Tap-Plugins - sudo apt-get install tap-plugins

A webcam - Walmart

Also chmod +x glitchcam to make the file executable.

You may need to move some ladspa plugins from /usr/lib/ladspa to /usr/local/lib/ladspa or vice versa. Then in a terminal enter echo "ladspa-register" | ecasound -c to make sure ecasound picks up your plugins.

If you don't have a webcam well its pretty ez to edit the source for an input file :>

Tips & Tricks

Due to some weird bash bug FFmeg likes to hang sometimes. Have killall -s SIGKILL ffmpeg ready lol.

Some colorspaces require specific sample rates and audio formats like 16bit or 32bit to not be slow asf (e.g ffmpeg -i blah -f u16le)