Difference between revisions of "Lisa Logitech Camera"

From PaparazziUAV
Jump to navigation Jump to search
Line 35: Line 35:
I also had to do this in all the Makefiles in the plugins folder
I also had to do this in all the Makefiles in the plugins folder


===Remove header===
====Remove header====


apparently libv4l2.h which is included in a few files is no longer included. Thankfully it doesn't appear to be needed so commenting the references works ok :  
apparently libv4l2.h which is included in a few files is no longer included. Thankfully it doesn't appear to be needed so commenting the references works ok :  
Line 49: Line 49:
patch available [http://code.google.com/p/enac-lara/source/browse/trunk/paul/misc/mjpg-stream_overo.patch here]
patch available [http://code.google.com/p/enac-lara/source/browse/trunk/paul/misc/mjpg-stream_overo.patch here]


===Build uvc_streamer===
====Build uvc_streamer====


  paul@paul-laptop:/media/PackBell_Linux/overo-oe/mjpg-streamer/uvc-streamer$ make
  paul@paul-laptop:/media/PackBell_Linux/overo-oe/mjpg-streamer/uvc-streamer$ make




===Build mjpg-streamer===
====Build mjpg-streamer====


  paul@paul-laptop:/media/PackBell_Linux/overo-oe/mjpg-streamer/mjpg-streamer$ make
  paul@paul-laptop:/media/PackBell_Linux/overo-oe/mjpg-streamer/mjpg-streamer$ make
Line 64: Line 64:


===start streaming===
===start streaming===
Log in
: ssh auto3
Look around :
: root@overo:/home/paul# ls
: capture.elf  ffserver.conf  mjpg-streamer  overo_twist.elf  uvc_stream
Go for it:
<pre>
root@overo:/home/paul# ./uvc_stream
Using V4L2 device.....: /dev/video0
Resolution............: 640 x 480
frames per second.....: 5
TCP port..............: 8080
motor control TCP port: 8081
root@overo:/home/paul# cd mjpg-streamer/
root@overo:/home/paul/mjpg-streamer# ./start.sh
MJPG Streamer Version.: 2.0
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 5
i: Format............: MJPEG
o: www-folder-path...: ./www/
o: HTTP TCP port.....: 8080
o: username:password.: disabled
o: commands..........: enabled
</pre>


===watch stream===
===watch stream===


Also :  
In chrome or vlc open http://auto3:8080
 
uvc_stream
[[Image:uvc_stream.png|none|thumbil]]
 
mjpg_streamer
[[Image:mjpg_streamer.png|none|thumb]]
 
 
===Coming soon===
 
ffmpeg, mplayer, mencoder, vlc, gstreamer. what was library needed libav?
ffmpeg, mplayer, mencoder, vlc, gstreamer. what was library needed libav?
installing with opkg "opkg install <name>", proxy setup in /etc/opkg/opkg.conf  
installing with opkg "opkg install <name>", proxy setup in /etc/opkg/opkg.conf  
setting up x-forwarding over ssh tunnel?
setting up x-forwarding over ssh tunnel?


TODO: opencv, libwebcam,
TODO: opencv, libwebcam, mjpeg-client

Revision as of 05:57, 27 August 2010

Notes for getting Logitech QuickCam Pro for Notebooks camera streaming over wifi

Gstreamer and uvc_stream

Download source

I grabbed svn on --Paulcox 13:41, 27 August 2010 (CEST)

svn co https://mjpg-streamer.svn.sourceforge.net/svnroot/mjpg-streamer mjpg-streamer

Build

Small changes required in Makefiles due to cross compilation for ARM architecture of overo (don't worry, painless)

Modify Makefiles

In mjpg-streamer/Makefile and uvc-streamer/Makefile I put:

DESTDIR = /home/paul

# set the compiler to use
#CC = gcc
OVERO_OE=/home/paul/overo-oe

CC = $(OVERO_OE)/tmp/cross/armv7a/bin/arm-angstrom-linux-gnueabi-gcc
CROSS_COMPILE=$(OVERO_OE)/tmp/cross/armv7a/bin/arm-angstrom-linux-gnueabi-

ARCH=arm

GLIB_INC = $(OVERO_OE)/tmp/work/armv7a-angstrom-linux-gnueabi/glib-2.0-2.22.4-r1/staging-pkg/staging/armv7a-angstrom-linux-gnueabi/usr/include/glib-2.0
GLIB_LIB = $(OVERO_OE)/tmp/work/armv7a-angstrom-linux-gnueabi/glib-2.0-2.22.4-r1/staging-pkg/staging/armv7a-angstrom-linux-gnueabi/usr/lib/

I also had to do this in all the Makefiles in the plugins folder

Remove header

apparently libv4l2.h which is included in a few files is no longer included. Thankfully it doesn't appear to be needed so commenting the references works ok :

paul@paul-laptop:/media/PackBell_Linux/overo-oe/mjpg-streamer/mjpg-streamer$ find . | xargs grep -n "libv4l2.h"
./plugins/output_http/httpd.c:40://#include <libv4l2.h>
./plugins/output_http/.svn/text-base/httpd.c.svn-base:40:#include <libv4l2.h>
./plugins/input_uvc/v4l2uvc.h:35://#include <libv4l2.h>
./plugins/input_uvc/.svn/text-base/v4l2uvc.h.svn-base:35:#include <libv4l2.h>

patch available here

Build uvc_streamer

paul@paul-laptop:/media/PackBell_Linux/overo-oe/mjpg-streamer/uvc-streamer$ make


Build mjpg-streamer

paul@paul-laptop:/media/PackBell_Linux/overo-oe/mjpg-streamer/mjpg-streamer$ make

copy to target

scp uvc_stream  @auto3:
scp *.so start.sh mjpg_streamer @auto3:mjpg-streamer
scp -r www @auto3:mjpg-streamer

start streaming

Log in

ssh auto3

Look around :

root@overo:/home/paul# ls
capture.elf ffserver.conf mjpg-streamer overo_twist.elf uvc_stream

Go for it:

root@overo:/home/paul# ./uvc_stream 
Using V4L2 device.....: /dev/video0
Resolution............: 640 x 480
frames per second.....: 5
TCP port..............: 8080
motor control TCP port: 8081

root@overo:/home/paul# cd mjpg-streamer/

root@overo:/home/paul/mjpg-streamer# ./start.sh 
MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 5
 i: Format............: MJPEG
 o: www-folder-path...: ./www/
 o: HTTP TCP port.....: 8080
 o: username:password.: disabled
 o: commands..........: enabled

watch stream

In chrome or vlc open http://auto3:8080

uvc_stream

thumbil

mjpg_streamer

Mjpg streamer.png


Coming soon

ffmpeg, mplayer, mencoder, vlc, gstreamer. what was library needed libav? installing with opkg "opkg install <name>", proxy setup in /etc/opkg/opkg.conf setting up x-forwarding over ssh tunnel?

TODO: opencv, libwebcam, mjpeg-client