← Back to team overview

sslug-teknik team mailing list archive

webcam server

 

Hejsa,

Jeg har siddet og fedtet med webcam-server 0.50 (på Zenwalk 5.2) hele dagen.

Håber nogen her har mere check på den størrelse, end jeg har, og kan bidrage
med et par hints :)

Min mistanke er rettet mod en sammenblanding af v4l og v4l2 drivere/libs,
eller måske udev ikke kan finde ud af dette webcam (logitech bla. bla. pro).

Det startede med at gå "rimeligt". Compile, install og start gik smertefrit.

webcam_server \
  -g 640x480 \
  -p 81 \
  -d /dev/video0 \
  -c "%d/%m/%Y %H:%M:%S - serving %%v viewers at %%f FPS"

Log siger: 2009-04-23 12:35:48 [/dev/video0] webcam_server started

Hertil er alt godt, lige indtil jeg peger firefox på http://server:81

Log siger: 2009-04-23 12:36:22 [/dev/video0] 10.0.0.47 connected via HTTP

Men på consolen hvor webcam_server kører (i forgrund) får jeg en strøm af:

get_cam_image(): len != img->bufsize, just letting you know
get_cam_image(): len != img->bufsize, just letting you know
get_cam_image(): len != img->bufsize, just letting you know

Samme resultat med medfølgende java applet.

Efter en gennemgribende opgradering af alle pakker/libraries, der kunne tænkes
at have noget med sagen at gøre, er det ikke mere muligt at starte webcam_server.

Output på consollen er:

ioctl (VIDIOCSPICT): Invalid argument
error setting video device parameters, using defaults
ioctl (VIDIOCSPICT): Invalid argument
not a valid video device? quitting.

Hvis jeg hiver usb-stik ud, og sætter det ind igen, får jeg:

syslog:

kernel: uvcvideo: Non-zero status (-84) in status completion handler.

udevmonitor:

UEVENT[1240498605.723797] remove   /class/video4linux/video0 (video4linux)
UEVENT[1240498605.726247] remove   /class/input/input4/event4 (input)
UEVENT[1240498605.737310] remove   /class/input/input4 (input)
UEVENT[1240498605.737890] remove   /devices/pci0000:00/0000:00:04.2/usb1/1-1/1-1:1.0 (usb)
UEVENT[1240498605.738008] remove   /class/usb_endpoint/usbdev1.2_ep87 (usb_endpoint)
UEVENT[1240498605.744381] remove   /devices/pci0000:00/0000:00:04.2/usb1/1-1/1-1:1.1 (usb)
UEVENT[1240498605.756690] remove   /class/sound/pcmC0D0c (sound)
UEVENT[1240498605.756852] remove   /class/sound/controlC0 (sound)
UEVENT[1240498605.775236] remove   /devices/pci0000:00/0000:00:04.2/usb1/1-1/1-1:1.2 (usb)
UEVENT[1240498605.779691] remove   /devices/pci0000:00/0000:00:04.2/usb1/1-1/1-1:1.3 (usb)
UEVENT[1240498605.779853] remove   /class/usb_endpoint/usbdev1.2_ep00 (usb_endpoint)
UEVENT[1240498605.788944] remove   /class/usb_device/usbdev1.2 (usb_device)
UEVENT[1240498605.791680] remove   /devices/pci0000:00/0000:00:04.2/usb1/1-1 (usb)
UEVENT[1240498610.157367] add      /devices/pci0000:00/0000:00:04.2/usb1/1-1 (usb)
UEVENT[1240498610.177362] add      /devices/pci0000:00/0000:00:04.2/usb1/1-1/1-1:1.0 (usb)
UEVENT[1240498610.190870] add      /class/video4linux/video0 (video4linux)
UEVENT[1240498610.191035] add      /class/input/input5 (input)
UEVENT[1240498610.207380] add      /class/input/input5/event4 (input)
UEVENT[1240498610.207968] add      /class/usb_endpoint/usbdev1.3_ep87 (usb_endpoint)
UEVENT[1240498610.257700] add      /devices/pci0000:00/0000:00:04.2/usb1/1-1/1-1:1.1 (usb)
UEVENT[1240498610.258254] add      /devices/pci0000:00/0000:00:04.2/usb1/1-1/1-1:1.2 (usb)
UEVENT[1240498610.258476] add      /class/sound/pcmC0D0c (sound)
UEVENT[1240498610.278906] add      /class/sound/controlC0 (sound)
UEVENT[1240498610.279045] add      /devices/pci0000:00/0000:00:04.2/usb1/1-1/1-1:1.3 (usb)
UEVENT[1240498610.328392] add      /class/usb_device/usbdev1.3 (usb_device)
UEVENT[1240498610.425248] add      /class/usb_endpoint/usbdev1.3_ep00 (usb_endpoint)

-- 
Later

Mogens Melander



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.