<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<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 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";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle21
        {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:"Courier New";color:#1F497D'>Not much else going on with the system.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'>top - 22:04:03 up 47 min,  1 user,  load average: 0.46, 0.18, 0.10<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'>Tasks:  84 total,   1 running,  83 sleeping,   0 stopped,   0 zombie<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'>%Cpu(s): 63.2 us, 18.7 sy,  0.0 ni, 17.1 id,  0.3 wa,  0.3 hi,  0.3 si,  0.0 st<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'>KiB Mem:    448776 total,   150456 used,   298320 free,    15036 buffers<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'>KiB Swap:   102396 total,        0 used,   102396 free,    70788 cached<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'>  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND                                                                            <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'> 2011 root      20   0 34172  15m 6120 S  29.2  3.6   0:19.55 Xorg                                                                               <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'> 2526 pi        20   0 93488  10m 7936 S  24.0  2.5   0:04.94 lxterminal                                                                         <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'> 2014 pi        20   0 17936 7584 4500 S  21.4  1.7   0:19.22 x11vnc                                                                             <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'> 2085 motion    20   0 52104 9088 1724 S   2.6  2.0   1:17.17 motion                                                                             <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'> 2539 pi        20   0  5116 1336  972 R   1.6  0.3   0:01.07 top                                                                                <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'> 2291 pi        20   0 81988 9000 6628 S   0.6  2.0   0:09.12 lxpanel                                                                            <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'>   11 root      20   0     0    0    0 S   0.3  0.0   0:01.02 kworker/0:1                                                                        <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'> 2247 pi        20   0 12792 1504 1264 S   0.3  0.3   0:00.25 lxsession                                                                          <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'> 2289 pi        20   0 15260 6216 4520 S   0.3  1.4   0:01.16 openbox                                                                            <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'>    1 root      20   0  2144  728  620 S   0.0  0.2   0:01.79 init <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'>...              <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'>Exiting my VNC session does not impact the BW I see.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'>With Chrome trying to connect, the results look similar.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'>Oh well.  I could try a clean install, I guess.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";color:#1F497D'>---> Paul<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Courier New";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 11:08 PM<br><b>To:</b> 'Triangle Embedded Computing Interest Group'<br><b>Subject:</b> Re: [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 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 [<a href="mailto:triembed-bounces@triembed.org">mailto:triembed-bounces@triembed.org</a>] <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>