motioneye-project / motioneye

A web frontend for the motion daemon.
GNU General Public License v3.0
3.95k stars 650 forks source link

old genius webcam not working #712

Closed jose1711 closed 6 years ago

jose1711 commented 6 years ago

i am getting "Error capturing first image" and lots of errors for my secondary genius webcam.

xawtv -hwscan:
/dev/video0: OK                         [ -device /dev/video0 ]
    type : libv4l
    name : CIF Single Chip     
    flags:  capture  

debug log:

   DEBUG: creating mjpg client for camera 7
   ERROR: could not start mjpg client for camera id 7: not enabled or not local
   DEBUG: control brightness of device /dev/v4l/by-id/usb-Pixart_Imaging_Inc._CIF_Single_Chip-video-index0 is 51%
   DEBUG: control contrast not found for device /dev/v4l/by-id/usb-Pixart_Imaging_Inc._CIF_Single_Chip-video-index0
   DEBUG: control saturation not found for device /dev/v4l/by-id/usb-Pixart_Imaging_Inc._CIF_Single_Chip-video-index0
   DEBUG: control hue not found for device /dev/v4l/by-id/usb-Pixart_Imaging_Inc._CIF_Single_Chip-video-index0
   DEBUG: getting disk usage for path /var/lib/motioneye/Camera7...

image quality is really poor compared to today's standards but if i am able to see the image in xawtv, then i believe it should work with motioneye as well.

jose1711 commented 6 years ago

issue solved by adding Environment="LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so" into motioneye.service file: https://github.com/Motion-Project/motion/issues/542