<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><title>Issues with streaming a webcam from my RPi</title><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Lucida Console";
        panose-1:2 11 6 9 4 5 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I isolated my network to just the RPi and my Computer and still only get 2.8K/s.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> TriEmbed [mailto:triembed-bounces@triembed.org] <b>On Behalf Of </b>The MacDougals<br><b>Sent:</b> Friday, September 20, 2013 10:42 PM<br><b>To:</b> 'Triangle Embedded Computing Interest Group'<br><b>Subject:</b> [TriEmbed] Issues with streaming a webcam from my RPi<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>I had this working fine</span> <span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>in June, but not so much today.</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>The setup is mostly like what is outlined here:</span> <a href="http://iiternal.blogspot.com/2013/01/a-cheap-surveillance-camera-using.html"><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>http://iiternal.blogspot.com/2013/01/a-cheap-surveillance-camera-using.html</span></a><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Things look fine on the RPi side (the date is wrong):</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [0] Processing thread 0 - config file /etc/motion/motion.conf</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [0] Motion 3.2.12 Started</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [0] Created process id file /var/run/motion/motion.pid. Process ID is 2088</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [0] Motion running as daemon process</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [0] ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFORMAT_BUILD 3478785</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [0] Thread 1 is from /etc/motion/motion.conf</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] Thread 1 started</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] cap.driver: "uvcvideo"</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] cap.card: "Microsoft® LifeCam VX-2000"</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] cap.bus_info: "usb-bcm2708_usb-1.3.4"</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] cap.capabilities=0x04000001</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] - VIDEO_CAPTURE</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] - STREAMING</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] Config palette index 8 (YU12) doesn't work.</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] Supported palettes:</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] 0: YUYV (YUV 4:2:2 (YUYV))</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] 1: MJPG (MJPEG)</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] Selected palette YUYV</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [0] motion-httpd/3.2.12 running, accepting connections</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [0] motion-httpd: waiting for data on port TCP 8080</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] Test palette YUYV (320x240)</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] Using palette YUYV (320x240) bytesperlines 640 sizeimage 153600 colorspace 00000000</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] found control 0x00980900, "Brightness", range -16,16</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] #011"Brightness", default -8193, current 0</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] found control 0x00980901, "Contrast", range 1,32</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] #011"Contrast", default 57343, current 16</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] found control 0x00980902, "Saturation", range 0,60</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] #011"Saturation", default 57343, current 18</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] found control 0x00980903, "Hue", range -45,45</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] #011"Hue", default -8193, current 0</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] found control 0x00980910, "Gamma", range 100,200</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] #011"Gamma", default 61432, current 150</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] mmap information:</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] frames=4</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] 0 length=153600</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] 1 length=153600</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] 2 length=153600</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] 3 length=153600</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] Resizing pre_capture buffer to 1 items</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Jan 26 21:15:51 raspberrypi motion: [1] Started stream webcam server in port 8081</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>I can use wget on my desktop computer (win7-64) and see the connection and a trickle of data:</span><o:p></o:p></p><p><span style='font-size:10.0pt;font-family:"Lucida Console"'>$ wget 192.168.0.3:8081</span><o:p></o:p></p><p><span style='font-size:10.0pt;font-family:"Lucida Console"'>--2013-09-20 22:35:19--  <a href="http://192.168.0.3:8081/">http://192.168.0.3:8081/</a></span><o:p></o:p></p><p><span style='font-size:10.0pt;font-family:"Lucida Console"'>Connecting to 192.168.0.3:8081... connected.</span><o:p></o:p></p><p><span style='font-size:10.0pt;font-family:"Lucida Console"'>HTTP request sent, awaiting response... 200 OK</span><o:p></o:p></p><p><span style='font-size:10.0pt;font-family:"Lucida Console"'>Length: unspecified [multipart/x-mixed-replace]</span><o:p></o:p></p><p><span style='font-size:10.0pt;font-family:"Lucida Console"'>Saving to: `index.html'</span><o:p></o:p></p><p><span style='font-size:10.0pt;font-family:"Lucida Console"'>    [                    <=>                ] 130,974     2.95K/s</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Nothing shows up when I try to connect with Chrome.</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>I am thinking the issue is with the 2.9K/s data transfer rate.</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>pi@raspberrypi /var/log $ ifconfig</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>eth0      Link encap:Ethernet  HWaddr b8:27:eb:3a:de:a1  </span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>          inet addr:192.168.0.3  Bcast:192.168.0.255  Mask:255.255.255.0</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>          RX packets:8888 errors:0 dropped:0 overruns:0 frame:0</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>          TX packets:9888 errors:0 dropped:0 overruns:0 carrier:0</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>          collisions:0 txqueuelen:1000 </span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>          RX bytes:504663 (492.8 KiB)  TX bytes:7587363 (7.2 MiB)</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>Any suggestions?</span><o:p></o:p></p><p><span style='font-size:13.5pt;font-family:"Calibri","sans-serif"'>---> Paul</span><o:p></o:p></p></div></body></html>