Motion - Support Question 2009x 07x 23x 193504

Images are Grey with "Unable to open Video Device" printed top left - Genius Eye 312

Question

I'm trying to get a Genius Eye 312 webcam running - so far without success. I've got the webcam loading up - I think - and appearing as /dev/video0. When I run "motion" however, it generates a load of images (45 frames or so), the first two are random green snow/noise, and then the rest are a standard mid-grey (#ccc?) with text in the top left that reads:
UNABLE TO OPEN VIDEO DEVICE
SINCE 2009-07-23 20:16:40
(obviously with the time changing each time).

details of what I'm running with are as follows:
# lsusb
Bus 002 Device 008: ID 093a:2622 Pixart Imaging, Inc.

# lsmod |grep gspc
gspca_pac7311          21760  0 
gspca_main             31104  1 gspca_pac7311
videodev               44832  1 gspca_main

# uname -a
Linux <my server name> 2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 19:49:51 UTC 2009 i686 GNU/Linux

# sudo less /etc/motion/motion.conf
process_id_file /var/run/motion/motion.pid
target_dir /tmp/motion
# sudo motion
[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Motion 3.2.11 Started
[0] ffmpeg LIBAVCODEC_BUILD 3410688 LIBAVFORMAT_BUILD 3414017
[0] Thread 1 is from /etc/motion/motion.conf
[1] Thread 1 started
[1] cap.driver: "pac7311"
[1] cap.card: "USB Camera (093a:2622)"
[1] cap.bus_info: "usb-0000:00:1d.0-1.4"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Supported palettes:
[1] 0: PJPG (PJPG)
[1] Unable to find a compatible palette format.
[1] Using VIDEO_PALETTE_YUV420P palette
[1] Using V4L1
[1] Resizing pre_capture buffer to 1 items
[1] sync error in proc 23427: Invalid argument
[1] mcapture error in proc 23427: Invalid argument
[1] Video device fatal error - Closing video device
[1] Closing video device /dev/video0
[1] Retrying until successful connection with camera
[1] cap.driver: "pac7311"
[1] cap.card: "USB Camera (093a:2622)"
[1] cap.bus_info: "usb-0000:00:1d.0-1.4"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Supported palettes:
[1] 0: PJPG (PJPG)
[1] Unable to find a compatible palette format.
[1] Using VIDEO_PALETTE_YUV420P palette
[1] Using V4L1
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-00.jpg
[1] sync error in proc 23427: Invalid argument
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-01.jpg
[1] mcapture error in proc 23427: Invalid argument
[1] Video device fatal error - Closing video device
[1] Closing video device /dev/video0
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-02.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-03.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-04.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-05.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-06.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-07.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-08.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-09.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-10.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-11.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-12.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-13.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-14.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-15.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-16.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-17.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-18.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-19.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-20.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-21.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204331-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204331-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204331-02.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204331-03.jpg
^C
[1] Thread exiting
[0] Motion terminating
# tail /var/log/messages
Jul 23 20:43:30 <my server name> motion: [1] cap.driver: "pac7311"
Jul 23 20:43:30 <my server name> motion: [1] cap.card: "USB Camera (093a:2622)"
Jul 23 20:43:30 <my server name> motion: [1] cap.bus_info: "usb-0000:00:1d.0-1.4"
Jul 23 20:43:30 <my server name> motion: [1] cap.capabilities=0x05000001
Jul 23 20:43:30 <my server name> motion: [1] - VIDEO_CAPTURE
Jul 23 20:43:30 <my server name> motion: [1] - READWRITE
Jul 23 20:43:30 <my server name> motion: [1] - STREAMING
Jul 23 20:43:30 <my server name> motion: [1] Supported palettes:
Jul 23 20:43:30 <my server name> motion: [1] 0: PJPG (PJPG)
Jul 23 20:43:30 <my server name> motion: [1] Closing video device /dev/video0
Jul 23 20:43:34 <my server name> motion: [0] Motion terminating
# ffmpeg --help
FFmpeg version 0.5-svn17737+3:0.svn20090303-1ubuntu6, Copyright (c) 2000-2009 Fabrice Bellard, et al.
I'm not using the MySQL or PostGreSQL libraries yet.

Any help VERY gratefully received...

Environment

Motion version: 3.2.11
ffmpeg version: 0.5-svn17737+3:0.svn20090303-1ubuntu6
Libraries: ffmpeg, mysql
Server OS: Ubuntu 9.04

-- PhilTanner - 05 Aug 2009

Answer

Images are Grey with "Unable to open Video Device" printed top left - Genius Eye 312

Question

I'm trying to get a Genius Eye 312 webcam running - so far without success. I've got the webcam loading up - I think - and appearing as /dev/video0. When I run "motion" however, it generates a load of images (45 frames or so), the first two are random green snow/noise, and then the rest are a standard mid-grey (#ccc?) with text in the top left that reads:
UNABLE TO OPEN VIDEO DEVICE
SINCE 2009-07-23 20:16:40
(obviously with the time changing each time).

details of what I'm running with are as follows:
# lsusb
Bus 002 Device 008: ID 093a:2622 Pixart Imaging, Inc.

# lsmod |grep gspc
gspca_pac7311          21760  0 
gspca_main             31104  1 gspca_pac7311
videodev               44832  1 gspca_main

# uname -a
Linux <my server name> 2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 19:49:51 UTC 2009 i686 GNU/Linux

# sudo less /etc/motion/motion.conf
process_id_file /var/run/motion/motion.pid
target_dir /tmp/motion
# sudo motion
[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Motion 3.2.11 Started
[0] ffmpeg LIBAVCODEC_BUILD 3410688 LIBAVFORMAT_BUILD 3414017
[0] Thread 1 is from /etc/motion/motion.conf
[1] Thread 1 started
[1] cap.driver: "pac7311"
[1] cap.card: "USB Camera (093a:2622)"
[1] cap.bus_info: "usb-0000:00:1d.0-1.4"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Supported palettes:
[1] 0: PJPG (PJPG)
[1] Unable to find a compatible palette format.
[1] Using VIDEO_PALETTE_YUV420P palette
[1] Using V4L1
[1] Resizing pre_capture buffer to 1 items
[1] sync error in proc 23427: Invalid argument
[1] mcapture error in proc 23427: Invalid argument
[1] Video device fatal error - Closing video device
[1] Closing video device /dev/video0
[1] Retrying until successful connection with camera
[1] cap.driver: "pac7311"
[1] cap.card: "USB Camera (093a:2622)"
[1] cap.bus_info: "usb-0000:00:1d.0-1.4"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Supported palettes:
[1] 0: PJPG (PJPG)
[1] Unable to find a compatible palette format.
[1] Using VIDEO_PALETTE_YUV420P palette
[1] Using V4L1
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-00.jpg
[1] sync error in proc 23427: Invalid argument
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-01.jpg
[1] mcapture error in proc 23427: Invalid argument
[1] Video device fatal error - Closing video device
[1] Closing video device /dev/video0
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-02.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-03.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-04.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-05.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-06.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-07.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-08.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-09.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-10.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-11.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-12.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-13.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-14.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-15.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-16.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-17.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-18.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-19.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-20.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204330-21.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204331-00.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204331-01.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204331-02.jpg
[1] File of type 1 saved to: /tmp/motion/01-20090723204331-03.jpg
^C
[1] Thread exiting
[0] Motion terminating
# tail /var/log/messages
Jul 23 20:43:30 <my server name> motion: [1] cap.driver: "pac7311"
Jul 23 20:43:30 <my server name> motion: [1] cap.card: "USB Camera (093a:2622)"
Jul 23 20:43:30 <my server name> motion: [1] cap.bus_info: "usb-0000:00:1d.0-1.4"
Jul 23 20:43:30 <my server name> motion: [1] cap.capabilities=0x05000001
Jul 23 20:43:30 <my server name> motion: [1] - VIDEO_CAPTURE
Jul 23 20:43:30 <my server name> motion: [1] - READWRITE
Jul 23 20:43:30 <my server name> motion: [1] - STREAMING
Jul 23 20:43:30 <my server name> motion: [1] Supported palettes:
Jul 23 20:43:30 <my server name> motion: [1] 0: PJPG (PJPG)
Jul 23 20:43:30 <my server name> motion: [1] Closing video device /dev/video0
Jul 23 20:43:34 <my server name> motion: [0] Motion terminating
# ffmpeg --help
FFmpeg version 0.5-svn17737+3:0.svn20090303-1ubuntu6, Copyright (c) 2000-2009 Fabrice Bellard, et al.
I'm not using the MySQL or PostGreSQL libraries yet.

Any help VERY gratefully received...

Environment

Motion version: 3.2.11
ffmpeg version: 0.5-svn17737+3:0.svn20090303-1ubuntu6
Libraries: ffmpeg, mysql
Server OS: Ubuntu 9.04

-- PhilTanner - 05 Aug 2009

Answer

Not supported in motion yet , you have to use libv4l as it's explained here :

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

-- AngelCarpintero - 06 Aug 2009

SupportForm edit

TopicTitle Images are Grey with "Unable to open Video Device" printed top left - Genius Eye 312
SupportStatus AnsweredQuestions
AssignedQuestionTo
SubmittedBy PhilTanner
Topic revision: r2 - 06 Aug 2009, 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.