From: Angel C. <ac...@te...> - 2008-08-22 04:53:25
|
El jue, 21-08-2008 a las 19:06 -0600, RYAN vAN GINNEKEN escribió: > Ok i have done as suggested and switched the device to /dev/video0 however as you can see from the debug output the directory does not exit. Not sure what to do here is there some kern module i need to load to get the correct /dev/video0. I know i had to add this to pwc_load="YES" /boot/loader.conf to get /dev/ugen0. > > Thank you and please help > > Unknown config option "sql_log_image" > Aug 21 18:01:27 vgetty motion: [0] Unknown config option "sql_log_snapshot" > Aug 21 18:01:27 vgetty motion: [0] Unknown config option "sql_log_mpeg" > Aug 21 18:01:27 vgetty motion: [0] Unknown config option "sql_log_timelapse" > Aug 21 18:01:27 vgetty motion: [0] Unknown config option "sql_query" > Aug 21 18:01:27 vgetty motion: [0] Webcam port 8081 > Aug 21 18:01:27 vgetty motion: [1] Failed to open video device /dev/video0: No such file or directory > Aug 21 18:01:27 vgetty motion: [1] Could not fetch initial image from camera > Aug 21 18:01:27 vgetty motion: [1] Motion continues using width and height from config file(s) > Aug 21 18:01:30 vgetty motion: [1] Retrying until successful connection with camera > Aug 21 18:01:30 vgetty motion: [1] Failed to open video device /dev/video0: No such file or directory > > Before start using motion you *must* have your webcam properly configured with pwcbsd so : 1-. Check if your webcam is compatible http://raaf.atspace.org/ 2-. Read doc http://raaf.atspace.org/pwc4.html 3-. Once you have load the module into kernel , unplug and plug your camera and /dev/video0 will be created. Cheers, > > ----- "Angel Carpintero" <ac...@te...> wrote: > > > El jue, 21-08-2008 a las 18:10 -0600, RYAN vAN GINNEKEN escribió: > > > Hello all i am using PC-BSD which Freebsd 6.3 under the hood I have > > installed motion from the ports which is version motion-3.2.10.1. I > > read through the freebsd install docs here > > http://www.lavrsen.dk/twiki/bin/view/Motion/FreeBSD > > > > > > While doing the install i selected the pwcbsd (driver support for > > the logitech quickcam communicate i think??) and bktr options but left > > the linux threads off. > > > > Optimal config options in port build for motion are : > > > > linuxthread off > > pwcbsd on > > bktr N/A > > > > if pwcbsd is set bktr doesn't matter . > > > > > > > > however i did not install the v41_compat port as suggested here > > > http://www.lavrsen.dk/twiki/bin/view/Motion/HowtoMotionPwcFreeBSD > > > I read somewhere that Freebsd does not need linux thread anymore and > > that is what v41 is about right. Also i did not apply any patches. > > > > Good , patches are only needed for old port versions < 3.2.10 . > > > > > > > > I have loaded the kernel module as per instructions and am using > > this in the below device (which does exist under the devices dir) > > motion.conf file. > > > > > > videodevice /dev/ugen0 > > > > You miss one point : > > > > 4) Setup motion > > Remember to follow webcam information , i.ex pwc uses /dev/video0 as > > video device but not sure others modules. > > > > So you must use a video4linux "emulation" driver that uses a > > /dev/video* > > like PWCBSD does and not a BSD usb ( /dev/ugenX ). > > > > So set : > > > > videodevice /dev/video0 in motion.conf , also run motion in not > > daemon > > mode to get some debug : > > > > motion -n -d 5 > > > > > I am using a logitech quickcam communicate which is under the list > > of supported devices here. > > > > > http://www.lavrsen.dk/twiki/bin/view/Motion/WorkingDevices#Logitech_Communicate > > > > > > ######## Anyway this is the error message i am getting along with a > > black square for video output on the webpage. > > > > > > Aug 21 14:32:00 vgetty motion: [1] ioctl (VIDIOCGCAP): Invalid > > argument > > > Aug 21 14:32:10 vgetty motion: [1] Retrying until successful > > connection with camera > > > > > > > > > > > > ps i also checked out this and several other threads and think this > > camera should work. Just missing some minor detail i am sure. > > > > > > > > http://www.lavrsen.dk/twiki/bin/view/Motion/SupportQuestion2006x01x27x123418 > > > > That is a really old support question , but as i answered , current > > port > > is working. > > > > > > > Computer King & CaN Mail - Sales Service Hosting Backup > > > > > > http://www.computerking.ca http://www.canmail.org > > > > Cheers, > - > Angel Carpintero > ack ( at ) telefonica ( dot ) net > > Key fingerprint = 3FD3 9C90 149E 7824 CECD 6BCF AC2C CA61 6EF1 B90D > > "No basta saber, hay que aplicar lo que se sabe; > no basta querer hacerlas cosas, hay que hacerlas". > > "Knowing is not enough; we must apply. > Willing is not enough; we must do" > > Johann Wolfgang von Goethe |