From 627ce44fa0f2381dee75c4adad6da8e75f2efd6f Mon Sep 17 00:00:00 2001 From: Donald Burr Date: Thu, 19 Feb 2015 10:20:42 -0800 Subject: [PATCH] drop screen size to 320x240, otheriwse they won't all fit --- acatcher/acatcher.cxx.template | 2 +- acatcher/stream.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/acatcher/acatcher.cxx.template b/acatcher/acatcher.cxx.template index 78d28a0..1ef312f 100644 --- a/acatcher/acatcher.cxx.template +++ b/acatcher/acatcher.cxx.template @@ -160,7 +160,7 @@ struct image_sockin : public sockin { void showImage(int begin, int end, int listener) { if (f_showall || (listener == id)) { - Mat imgbuf = cv::Mat(480, 640, CV_8U, &buf[begin]); + Mat imgbuf = cv::Mat(240, 320, CV_8U, &buf[begin]); Mat imgMat = cv::imdecode(imgbuf, CV_LOAD_IMAGE_COLOR); if (!imgMat.data) cerr << "reading failed\r\n"; diff --git a/acatcher/stream.sh b/acatcher/stream.sh index d16c72c..d331651 100755 --- a/acatcher/stream.sh +++ b/acatcher/stream.sh @@ -12,7 +12,7 @@ VSESSION=$((4100+NUM)) echo "i am $HOSTNAME machine $NUM asession $ASESSION vsession $VSESSION server at $SERVERIP" # different res is ok, MUST be mjpg -v4l2-ctl --set-fmt-video=width=640,height=480,pixelformat=MJPG +v4l2-ctl --set-fmt-video=width=320,height=240,pixelformat=MJPG amixer -c 1 sset Mic,0 80%,80% unmute cap (while true; do arecord -t raw -c 1 -f S16_LE -r 22050 -D hw:1 | nc $SERVERIP $ASESSION; sleep 1; done) &