Motion - Bug Report 2013x 08x 02x 222612
You are here: Foswiki>Motion Web>BugReports>BugReport2013x08x02x222612 (02 Aug 2013, LuanCasagrande)Edit Attach

BUG: Error with Threads

Hello

I config the motion for two webcans, but this didn't work good for me. Any suggestions?

Thanks.
[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Processing config file /etc/motion/thread1.conf
[0] Processing config file /etc/motion/thread2.conf
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFORMAT_BUILD 3478785
[0] Thread 1 is from /etc/motion/thread1.conf
[0] Thread 2 is from /etc/motion/thread2.conf
[2] Thread 2 started
[2] cap.driver: "uvcvideo"
[2] cap.card: "Microsoft LifeCam VX-800"
[1] Thread 1 started
[0] motion-httpd/3.2.12 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[2] cap.bus_info: "usb-bcm2708_usb-1.3"
[2] cap.capabilities=0x04000001
[2] - VIDEO_CAPTURE
[2] - STREAMING
[2] Config palette index 8 (YU12) doesn't work.
[2] Supported palettes:
[2] 0: YUYV (YUV 4:2:2 (YUYV))
[2] Selected palette YUYV
[2] Test palette YUYV (320x240)
[2] Using palette YUYV (320x240) bytesperlines 640 sizeimage 153600 colorspace 00000000
[2] found control 0x00980900, "Brightness", range -10,10
[2]     "Brightness", default -8193, current 2
[2] found control 0x00980901, "Contrast", range 0,20
[2]     "Contrast", default 57343, current 10
[2] found control 0x00980902, "Saturation", range 0,10
[2]     "Saturation", default 57343, current 4
[2] found control 0x00980903, "Hue", range -5,5
[2]     "Hue", default -8193, current 0
[2] found control 0x00980910, "Gamma", range 100,200
[2]     "Gamma", default 57343, current 130
[2] found control 0x00980913, "Gain", range 32,48
[2]     "Gain", default 57343, current 34
[2] mmap information:
[2] frames=4
[2] 0 length=153600
[2] 1 length=153600
[2] 2 length=153600
[2] 3 length=153600
[2] Using V4L2
[1] cap.driver: "uvcvideo"
[1] cap.card: "HP Webcam HD-4110"
[1] cap.bus_info: "usb-bcm2708_usb-1.2"
[1] cap.capabilities=0x04000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Config palette index 8 (YU12) doesn't work.
[1] Supported palettes:
[1] 0: MJPG (MJPEG)
[1] 1: YUYV (YUV 4:2:2 (YUYV))
[2] Resizing pre_capture buffer to 1 items
[1] Selected palette YUYV
[1] Test palette YUYV (320x240)
[1] Using palette YUYV (320x240) bytesperlines 640 sizeimage 153600 colorspace 00000008
[1] found control 0x00980900, "Brightness", range 0,255
[1]     "Brightness", default -8193, current 126
[1] found control 0x00980901, "Contrast", range 0,255
[1]     "Contrast", default 57343, current 31
[1] found control 0x00980902, "Saturation", range 0,255
[1]     "Saturation", default 57343, current 32
[1] found control 0x00980903, "Hue", range -180,180
[1]     "Hue", default -8193, current 0
[1] found control 0x00980910, "Gamma", range 90,150
[1]     "Gamma", default 57343, current 115
[1] found control 0x00980913, "Gain", range 0,255
[1]     "Gain", default 57343, current 14
[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:
[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
[2] Started stream webcam server in port 8082
[1] Retrying until successful connection with camera
[1] cap.driver: "uvcvideo"
[1] cap.card: "HP Webcam HD-4110"
[1] cap.bus_info: "usb-bcm2708_usb-1.2"
[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] Thread exiting
[2] Thread exiting
[2] Calling vid_close() from motion_cleanup
[2] Closing video device /dev/video1
[0] httpd - Finishing
[0] httpd Closing
[0] httpd thread exit
[0] Motion terminating

Environment

Motion version: 3.2.12
ffmpeg version:  
Shared libraries: ffmpeg, mysql, postgresql
Server OS:  
-- LuanCasagrande - 02 Aug 2013

Follow up

Fix record

Topic revision: r1 - 02 Aug 2013, LuanCasagrande
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.