There seems to be a myriad people trying to do live databending. Well here i show I did it.
ffmpeg -f video4linux2 -s 320x240 -i /dev/video0 -f rawvideo -pix_fmt rgb32 -s 320x240 - | sox -r 482170 -e u-law -t raw /dev/stdin -t raw /dev/stdout echo 0.8 0.88 60 0.4 | ffmpeg -f rawvideo -s 320x240 -pix_fmt rgb32 -i - -f avi - | mplayer - -cache 150 -fps 60
The first ffmpeg reads from the webcam and reformats it to raw rgb32. The output is piped into sox where an echo effect is applied to bend the raw image data. The output is then reformatted by the next ffmpeg call into an AVI. The result is played by mplayer with a FPS fast enough to keep up with the extra (I guess here) output from the echo effect. If mplayer plays too slowly, the video will slow down over time and eventually freeze.
Disclaimer: I am new to this so am struggling to keep up with what I am doing. Sometimes I hack first and ask questions later.
Last edited by Danimalia (Mar 2, 2013 9:42 pm)