Motion - Support Question 2008x 04x 16x 222438

Motion on Freebsd with PWC Patch

Question

I'm compiling without linux threads and dont need support for BKTR because i'm using a philips webcam "Vesta Pro". i just can't seem to get Motion to run without errors. I have the device /dev/video0 running and can use pwcview which gives me images. so the camera is working...

I've followed the instructions on HowtoMotionPwcFreeBSD and install the patch over the port. the first time around running make install i get errors that the videodev.h file does'nt exist (1). which indeed doesn't exist. If i just copy a videodev.h file in place and compile it, it runs but eventually i still get a capture vid_start error (2).

Just now configured motion without BKTR or linuxthreads... applied the patch and did not get the file not found error.. when i ran motion only got error (2)...

When i do compile with BKTR i get error (3).

What am i doing wrong and why do i still get the Capture error calling vid_start?

Motion Debug output (Not much debug output with -d 9):
[0] Processing thread 0 - config file /usr/local/etc/motion.conf 
[0] Motion 3.2.9_pwc Started 
[0] ffmpeg LIBAVCODEC_BUILD 3353600 LIBAVFORMAT_BUILD 3345920 
[0] Thread 1 is from /usr/local/etc/motion.conf 
[1] Thread 1 started 
[1] Capture error calling vid_start
[1] Thread finishing...
ERROR 1:
linux\videodev.h: file not found

ERROR 2:
[1] Capture error calling vid_start
ERROR 3:
[1] BT848SFMT, Couldn't set the input format , try again with default: Inappropriate ioctl for device
[1] BT848SFMT, Couldn't set the input format either default: Inappropriate ioctl for device
[1] set input format [0]: Inappropriate ioctl for device 
dmesg:
pwc0: vendor 0x0471 product 0x0308, rev 1.10/0.05, addr 2 pwc0: Philips PCVC680K (Vesta Pro) USB webcam 
 

Environment

Motion version: 3.2.9
ffmpeg version: SVN-r10657
Libraries: ffmpeg, mysql
Server OS: FreeBSD 6.3-RELEASE-p1

-- KristenSchat - 16 Apr 2008

Answer

Second option you did was the correct one :

* Build motion without BKTR and linuxthreads ( this one is optional but preferable for FreeBSD > 5.x ).

> By this you mean: without BKTR and with linuxthreads?

> added debug info aswell

> permissions are currently 666 for video0 (Should i not be using pwc0, which does not exist under /dev/?)

Try to run motion in debug mode to get an error decription , maybe you need to change /dev/videoX permissions.

-- AngelCarpintero - 17 Apr 2008


Try SVN method described in this topic :

http://www.lavrsen.dk/twiki/bin/view/Motion/HowtoMotionPwcFreeBSD

-- AngelCarpintero - 20 Apr 2008


Fixed in trunk and also in 3.2.10 . Explained in above topic.

-- AngelCarpintero - 07 May 2008
Topic revision: r6 - 07 May 2008, AngelCarpintero
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.