From: Evil P. <do...@di...> - 2005-12-16 06:26:02
|
I saw this message in the archives from a few months ago before I joined the email list but I did not see any reply. >From: Tobias Gunkel > 2005-09-16 02:05 > >Hello, > >I successfully compiled and installed motion under FreeBSD 5.2.1. >My USB Webcam is a Creative WebCam NX Ultra which is adressed under >/dev/ugen0 (not bktr). > >I can take pictures over the SPCA5xx driver (spca5shot) in the *.ppm format. > >In my motion.conf I use "videodevice /dev/ugen0". > >When I start motion it looks fine, at first sight. I am running motion-3.2.4_snap4 under FreeBSD 5.3 to answer your question under FreeBSD the SPCA5xx "driver" is not really system "driver" but I port of the Linux driver to work as a user process using the generic USB device interface. thus the motion application will not be able to access a "video device" since there really is not one. But your in luck.... Since I have a USB cam that used the SPCA5xx driver port I did some hacking to get motion to use it. I did this by having motion to exec and run sub process as a "netcam" video source, then I modified spca5shot that was to output a HTTP style MJPEG. I got the basics working but there are problems with the driver and white balance as well always returning a 640x480 image. thus this is not ready for prime time.. but is does sorta work if you have spca5shot version 20050206 download my patches from http://www.lavrsen.dk/twiki/bin/view/Motion/ExecProxyPatch apply the spca5shot diff or just replace spca5shot.c with the included version. copy spca5shot to /usr/local/bin and link it to /usr/local/sbin/spca5stream ( the app will now automaticly stream MJPEG if named spca5stream ) apply my proxy_exec patch to motion and recompile and install in your motion config file place: netcam_proxy exec://localhost/usr/local/sbin/spca5stream netcam_url http://127.0.0.1:80/dev/null where the netcam_proxy property is exec://<IGNORED_HOSTNAME>/path/to/spca5steam netcam_url required although ignored (in this case) since most people run Linux and this is a FreeBSD hack/issue question email me directly off list and I see what I can do for you. I will summerize to this list or on the website when things are more stable. -Pete |