Difference between revisions of "Lisa Logitech Camera"

From PaparazziUAV
Jump to navigation Jump to search
 
Line 1: Line 1:
Notes for getting Logitech QuickCam Pro for Notebooks camera streaming over wifi
=Notes for getting Logitech QuickCam Pro for Notebooks camera streaming over wifi=


: Download source
==Gstreamer and uvc_stream==


: Modify makefiles
===Download source===


: Build uvc_streamer
I grabbed svn on --[[User:Paulcox|Paulcox]] 13:41, 27 August 2010 (CEST)


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


: copy to target
===Build===


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


: watch stream
====Modify Makefiles====
 
In mjpg-streamer/Makefile and uvc-streamer/Makefile I put:
 
<pre>
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/
</pre>
 
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 :
 
<pre>
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>
</pre>
 
patch available [http://code.google.com/p/enac-lara/source/browse/trunk/paul/misc/mjpg-stream_overo.patch 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===
 
===watch stream===


Also :  
Also :  
Line 20: Line 72:
setting up x-forwarding over ssh tunnel?
setting up x-forwarding over ssh tunnel?


TODO: opencv
TODO: opencv, libwebcam,

Revision as of 05:41, 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

watch stream

Also : 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,