Motion - Support Question 2012x 10x 29x 182838

No video after trying chmod/palettes/etc.

Question

I have Ubuntu 12.04 with Motion 3.2.12 from packages and camera is /dev/video1

I'd used the camera with GUVCview and Zoneminder without problems, but I like motion more.

Camera is used in Zoneminder with YUYV mode and 320x640.

I keep getting this: [1] Error selecting input 0 VIDIOC_S_INPUT: Device or resource busy [1] ioctl (VIDIOCGCAP): Invalid argument

I've tried different palettes, chmod 0777, sudo, video1 (which exists, video0 does not)
sudo motion
[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3426306 LIBAVFORMAT_BUILD 3424258
[0] Thread 1 is from /etc/motion/motion.conf
[1] Thread 1 started
[0] motion-httpd/3.2.12 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] cap.driver: "uvcvideo"
[1] cap.card: "Acer Crystal Eye webcam"
[1] cap.bus_info: "usb-0000:00:1d.2-1"
[1] cap.capabilities=0x04000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Test palette YUYV (320x240)
[1] Using palette YUYV (320x240) bytesperlines 640 sizeimage 153600 colorspace 00000000
[1] found control 0x00980900, "Brightness", range 0,180 
[1]    "Brightness", default 75, current 60
[1] found control 0x00980901, "Contrast", range 0,127 
[1]    "Contrast", default 64, current 45
[1] found control 0x00980902, "Saturation", range 0,180 
[1]    "Saturation", default 106, current 100
[1] found control 0x00980903, "Hue", range -100,100 
[1]    "Hue", default 0, current 0
[1] found control 0x00980910, "Gamma", range 1,60 
[1]    "Gamma", default 30, current 30
[1] mmap information:
[1] frames=4
[1] 0 length=153600
[1] 1 length=153600
[1] 2 length=153600
[1] 3 length=153600
[1] Error starting stream VIDIOC_STREAMON: Input/output error
[1] ioctl (VIDIOCGCAP): Invalid argument
[1] Could not fetch initial image from camera
[1] Motion continues using width and height from config file(s)
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 8081
[1] Retrying until successful connection with camera
[1] cap.driver: "uvcvideo"
[1] cap.card: "Acer Crystal Eye webcam"
[1] cap.bus_info: "usb-0000:00:1d.2-1"
[1] cap.capabilities=0x04000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Error selecting input 0 VIDIOC_S_INPUT: Device or resource busy
[1] ioctl (VIDIOCGCAP): Invalid argument
[1] Retrying until successful connection with camera
[1] cap.driver: "uvcvideo"
[1] cap.card: "Acer Crystal Eye webcam"
[1] cap.bus_info: "usb-0000:00:1d.2-1"
[1] cap.capabilities=0x04000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Error selecting input 0 VIDIOC_S_INPUT: Device or resource busy
[1] ioctl (VIDIOCGCAP): Invalid argument
^C[0] httpd - Finishing
[0] httpd Closing
[0] httpd thread exit
[1] Thread exiting
[0] Motion terminating

Environment

Motion version: 3.2.12
ffmpeg version: 0.6.6-4:0.6.6-0ubuntu0.11.04.1
Libraries: ffmpeg, mysql
Server OS: Ubuntu 12.04
-- VladHid - 29 Oct 2012

Answer

Topic revision: r1 - 29 Oct 2012, VladHid
Copyright © 1999-2017 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.