drop screen size to 320x240, otheriwse they won't all fit

This commit is contained in:
Donald Burr 2015-02-19 10:20:42 -08:00
parent 4b0ef4a8ee
commit 627ce44fa0
2 changed files with 2 additions and 2 deletions

View file

@ -160,7 +160,7 @@ struct image_sockin : public sockin {
void showImage(int begin, int end, int listener) { void showImage(int begin, int end, int listener) {
if (f_showall || (listener == id)) { 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); Mat imgMat = cv::imdecode(imgbuf, CV_LOAD_IMAGE_COLOR);
if (!imgMat.data) cerr << "reading failed\r\n"; if (!imgMat.data) cerr << "reading failed\r\n";

View file

@ -12,7 +12,7 @@ VSESSION=$((4100+NUM))
echo "i am $HOSTNAME machine $NUM asession $ASESSION vsession $VSESSION server at $SERVERIP" echo "i am $HOSTNAME machine $NUM asession $ASESSION vsession $VSESSION server at $SERVERIP"
# different res is ok, MUST be mjpg # 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 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) & (while true; do arecord -t raw -c 1 -f S16_LE -r 22050 -D hw:1 | nc $SERVERIP $ASESSION; sleep 1; done) &