|
По одной работают, вместе нет. Разные проги и одинаковые, разницы нет. При запущеной второй камере запускаю первую ругается так: user@ubuntu:~$ luvcview -d /dev/video0 luvcview 0.2.6 SDL information: Video driver: x11 A window manager is available Device information: Device path: /dev/video0 Stream settings: Frame format: YUYV (MJPG is not supported by device) Frame size: 640x480 Frame rate: 30 fps Quit signal received. Cleanup done. Exiting ... user@ubuntu:~$ luvcview -d /dev/video0 luvcview 0.2.6 SDL information: Video driver: x11 A window manager is available Device information: Device path: /dev/video0 Stream settings: Frame format: YUYV (MJPG is not supported by device) Frame size: 640x480 Frame rate: 30 fps Unable to start capture: No space left on device Error grabbing Cleanup done. Exiting ... user@ubuntu:~$ Так нормально, когда в одиночку
user@ubuntu:~$ luvcview -d /dev/video1 luvcview 0.2.6 SDL information: Video driver: x11 A window manager is available Device information: Device path: /dev/video1 Stream settings: Frame format: YUYV (MJPG is not supported by device) Frame size: 640x480 Frame rate: 30 fps Unable to start capture: No space left on device Error grabbing Cleanup done. Exiting ... user@ubuntu:~$ luvcview -d /dev/video1 luvcview 0.2.6 SDL information: Video driver: x11 A window manager is available Device information: Device path: /dev/video1 Stream settings: Frame format: YUYV (MJPG is not supported by device) Frame size: 640x480 Frame rate: 30 fps Quit signal received. Cleanup done. Exiting ... user@ubuntu:~$
Так другая прога ругается при запущенной другой камере
user@ubuntu:~$ motion -n -c ~/motion1.conf [0] Processing thread 0 - config file /home/user/motion1.conf [0] Motion 3.2.11 Started [0] ffmpeg LIBAVCODEC_BUILD 3412993 LIBAVFORMAT_BUILD 3415808 [0] Thread 1 is from /home/user/motion1.conf [1] Thread 1 started [0] motion-httpd/3.2.11 running, accepting connections [1] cap.driver: "uvcvideo" [1] cap.card: "USB2.0_Camera" [1] cap.bus_info: "usb-0000:00:1d.7-3" [1] cap.capabilities=0x04000001 [1] - VIDEO_CAPTURE [1] - STREAMING [1] Supported palettes: [1] 0: YUYV (YUV 4:2:2 (YUYV)) [0] motion-httpd: waiting for data on port TCP 8080 [1] index_format 6 Test palette YUYV (640x480) [1] Using palette YUYV (640x480) bytesperlines 1280 sizeimage 614400 colorspace 00000008 [1] found control 0x00980900, "Brightness", range 0,255 [1] "Brightness", default 130, current 130 [1] found control 0x00980901, "Contrast", range 0,100 [1] "Contrast", default 45, current 45 [1] found control 0x00980902, "Saturation", range 0,200 [1] "Saturation", default 95, current 95 [1] found control 0x00980903, "Hue", range -180,180 [1] "Hue", default 0, current 0 [1] found control 0x00980910, "Gamma", range 40,100 [1] "Gamma", default 52, current 52 [1] mmap information: [1] frames=4 [1] 0 length=614400 [1] 1 length=614400 [1] 2 length=614400 [1] 3 length=614400 [1] Error starting stream VIDIOC_STREAMON: [1] ioctl(VIDIOCGMBUF) - Error device does not support memory map [1] V4L capturing using read is deprecated! [1] Motion only supports mmap. [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] Retrying until successful connection with camera [1] cap.driver: "uvcvideo" [1] cap.card: "USB2.0_Camera" [1] cap.bus_info: "usb-0000:00:1d.7-3" [1] cap.capabilities=0x04000001 [1] - VIDEO_CAPTURE [1] - STREAMING [1] Error selecting input 0 VIDIOC_S_INPUT: [1] ioctl(VIDIOCGMBUF) - Error device does not support memory map [1] V4L capturing using read is deprecated! [1] Motion only supports mmap. [1] Retrying until successful connection with camera [1] cap.driver: "uvcvideo" [1] cap.card: "USB2.0_Camera" [1] cap.bus_info: "usb-0000:00:1d.7-3" [1] cap.capabilities=0x04000001 [1] - VIDEO_CAPTURE [1] - STREAMING [1] Error selecting input 0 VIDIOC_S_INPUT: [1] ioctl(VIDIOCGMBUF) - Error device does not support memory map [1] V4L capturing using read is deprecated! [1] Motion only supports mmap. ^C[0] httpd - Finishing [0] httpd Closing [0] httpd thread exit [1] Thread exiting [0] Motion terminating user@ubuntu:~$
Так нормально, когда в одиночку
user@ubuntu:~$ motion -n -c ~/motion1.conf [0] Processing thread 0 - config file /home/user/motion1.conf [0] Motion 3.2.11 Started [0] ffmpeg LIBAVCODEC_BUILD 3412993 LIBAVFORMAT_BUILD 3415808 [0] Thread 1 is from /home/user/motion1.conf [1] Thread 1 started [0] motion-httpd/3.2.11 running, accepting connections [1] cap.driver: "uvcvideo" [1] cap.card: "USB2.0_Camera" [1] cap.bus_info: "usb-0000:00:1d.7-3" [1] cap.capabilities=0x04000001 [1] - VIDEO_CAPTURE [1] - STREAMING [1] Supported palettes: [1] 0: YUYV (YUV 4:2:2 (YUYV)) [0] motion-httpd: waiting for data on port TCP 8080 [1] index_format 6 Test palette YUYV (640x480) [1] Using palette YUYV (640x480) bytesperlines 1280 sizeimage 614400 colorspace 00000008 [1] found control 0x00980900, "Brightness", range 0,255 [1] "Brightness", default 130, current 130 [1] found control 0x00980901, "Contrast", range 0,100 [1] "Contrast", default 45, current 45 [1] found control 0x00980902, "Saturation", range 0,200 [1] "Saturation", default 95, current 95 [1] found control 0x00980903, "Hue", range -180,180 [1] "Hue", default 0, current 0 [1] found control 0x00980910, "Gamma", range 40,100 [1] "Gamma", default 52, current 52 [1] mmap information: [1] frames=4 [1] 0 length=614400 [1] 1 length=614400 [1] 2 length=614400 [1] 3 length=614400 [1] Using V4L2 [1] Resizing pre_capture buffer to 1 items [1] File of type 8 saved to: /home/user/motion1/20-11-07.avi [1] File of type 1 saved to: /home/user/motion1/20-11-07-00.jpg [1] File of type 1 saved to: /home/user/motion1/20-11-08-00.jpg [1] File of type 1 saved to: /home/user/motion1/20-11-09-00.jpg [1] File of type 1 saved to: /home/user/motion1/20-11-10-00.jpg ^C[1] File of type 1 saved to: /home/user/motion1/20-11-11-00.jpg [0] httpd - Finishing [0] httpd Closing [0] httpd thread exit [1] Thread exiting [1] Calling vid_close() from motion_cleanup [1] Closing video device /dev/video1 [0] Motion terminating user@ubuntu:~$
Как запустить две одновременно? |
|