raspberrypi/acatcher
2015-02-18 02:32:47 -08:00
..
.gitignore Add audio files to gitignore 2015-02-18 01:25:40 -08:00
acatcher.cxx filenames end in raw, and finish audio convert script 2015-02-18 01:26:10 -08:00
aconvert Add note about play command 2015-02-18 02:32:47 -08:00
mkacatcher Make autogen 2015-02-18 00:58:25 -08:00
mkhosts Add auto hostname setting 2015-02-17 22:41:20 -08:00
patch.dburr_stuff Add my patches to acatcher 2015-02-18 01:28:09 -08:00
README Update to latest upstream version of acatcher 2015-02-18 00:54:07 -08:00
rpi_stream.py Add my own fork of acatcher 2015-02-17 20:50:46 -08:00
set_hostname.sh Add auto hostname setting 2015-02-17 22:41:20 -08:00
stream.sh Remove debug code 2015-02-18 01:13:55 -08:00
upstream Add my own fork of acatcher 2015-02-17 20:50:46 -08:00
v4lcap.c Add my own fork of acatcher 2015-02-17 20:50:46 -08:00

host side:

apt-get install libopencv-dev
clang++ -O2 -lopencv_core -lopencv_highgui -lopencv_imgproc -o acatcher acatcher.cxx

to actually run it:
./acatcher | (aplay -t raw -c 1 -f S16_LE -r 22050 > /dev/null 2> /dev/null)
---

webcam side:

copy v4lcap.c and build it on the rpi

xx = session #

make the following into a script
---

# different res is ok, MUST be mjpg
v4l2-ctl --set-fmt-video=width=640,height=480,pixelformat=MJPG

(while true; do arecord -t raw -c 1 -f S16_LE -r 22050 -D hw:1 | nc 192.168.1.122 40xx; sleep 1; done) &
while true; do v4lcap -o | nc 192.168.1.122 41xx; sleep 1; done