В консоли запускаем программу:
~$ motion
Видим следующее:
[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.9 Started
[0] ffmpeg LIBAVCODEC_BUILD 3355136 LIBAVFORMAT_BUILD 3409664
[0] Thread 1 is from /etc/motion/thread1.conf
[1] Thread 1 started
[1] cap.driver: "bttv"
[1] cap.card: "BT878 video (ProVideo PV143)"
[1] cap.bus_info: "PCI:0000:02:00.0"
[1] cap.capabilities=0x05000015
[1] - VIDEO_CAPTURE
[1] - VIDEO_OVERLAY
[1] - VBI_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Supported palettes:
[1] 0: GREY (8 bpp, gray)
[1] 1: HI24 (8 bpp, dithered color)
[1] 2: RGBO (15 bpp RGB, le)
[1] 3: RGBQ (15 bpp RGB, be)
[1] 4: RGBP (16 bpp RGB, le)
[1] 5: RGBR (16 bpp RGB, be)
[1] 6: BGR3 (24 bpp RGB, le)
[1] 7: BGR4 (32 bpp RGB, le)
[1] 8: RGB4 (32 bpp RGB, be)
[1] 9: YUYV (4:2:2, packed, YUYV)
[1] 10: YUYV (4:2:2, packed, YUYV)
[1] 11: UYVY (4:2:2, packed, UYVY)
[1] 12: 422P (4:2:2, planar, Y-Cb-Cr)
[1] 13: YU12 (4:2:0, planar, Y-Cb-Cr)
[1] 14: YV12 (4:2:0, planar, Y-Cr-Cb)
[1] 15: 411P (4:1:1, planar, Y-Cb-Cr)
[1] 16: YUV9 (4:1:0, planar, Y-Cb-Cr)
[1] 17: YVU9 (4:1:0, planar, Y-Cr-Cb)
[1] Test palette YU12 (768x576)
[1] Using palette YU12 (768x576) bytesperlines 768 sizeimage 663552 colorspace 00000000
[1] found control 0x00980900, "Brightness", range 0,65535
[1] "Brightness", default 32768, current 32768
[1] found control 0x00980901, "Contrast", range 0,65535
[1] "Contrast", default 32768, current 32768
[1] found control 0x00980902, "Saturation", range 0,65535
[1] "Saturation", default 32768, current 32768
[1] found control 0x00980903, "Hue", range 0,65535
[1] "Hue", default 32768, current 32768
[1] found control 0x00000000, "42", range 0,0 !DISABLED!
[1] "42", default 0, current 0
[1] found control 0x00000000, "42", range 0,0 !DISABLED!
[1] "42", default 0, current 0
[1] found control 0x00000000, "42", range 0,0 !DISABLED!
[1] "42", default 0, current 0
[1] found control 0x00000000, "42", range 0,0 !DISABLED!
[1] "42", default 0, current 0
[1] found control 0x00000000, "42", range 0,0 !DISABLED!
[1] "42", default 0, current 0
[1] found control 0x00000000, "42", range 0,0 !DISABLED!
[1] "42", default 0, current 0
[1] found control 0x08000000, "chroma agc", range 0,1
[1] "chroma agc", default 0, current 0
[1] found control 0x08000001, "combfilter", range 0,1
[1] "combfilter", default 0, current 0
[1] mmap information:
[1] frames=4
[1] 0 length=663552
[1] 1 length=663552
[1] 2 length=663552
[1] 3 length=663552
[1] Using V4L2
[0] Thread 2 is from /etc/motion/thread2.conf
[2] Thread 2 started
[2] cap.driver: "bttv"
[2] cap.card: "BT878 video (ProVideo PV143)"
[2] cap.bus_info: "PCI:0000:02:01.0"
[2] cap.capabilities=0x05000015
[2] - VIDEO_CAPTURE
[2] - VIDEO_OVERLAY
[2] - VBI_CAPTURE
[2] - READWRITE
[2] - STREAMING
[2] Supported palettes:
[2] 0: GREY (8 bpp, gray)
[2] 1: HI24 (8 bpp, dithered color)
[2] 2: RGBO (15 bpp RGB, le)
[2] 3: RGBQ (15 bpp RGB, be)
[2] 4: RGBP (16 bpp RGB, le)
[2] 5: RGBR (16 bpp RGB, be)
[2] 6: BGR3 (24 bpp RGB, le)
[2] 7: BGR4 (32 bpp RGB, le)
[2] 8: RGB4 (32 bpp RGB, be)
[2] 9: YUYV (4:2:2, packed, YUYV)
[2] 10: YUYV (4:2:2, packed, YUYV)
[2] 11: UYVY (4:2:2, packed, UYVY)
[2] 12: 422P (4:2:2, planar, Y-Cb-Cr)
[2] 13: YU12 (4:2:0, planar, Y-Cb-Cr)
[2] 14: YV12 (4:2:0, planar, Y-Cr-Cb)
[2] 15: 411P (4:1:1, planar, Y-Cb-Cr)
[2] 16: YUV9 (4:1:0, planar, Y-Cb-Cr)
[2] 17: YVU9 (4:1:0, planar, Y-Cr-Cb)
[2] Test palette YU12 (768x576)
[2] Using palette YU12 (768x576) bytesperlines 768 sizeimage 663552 colorspace 00000000
[2] found control 0x00980900, "Brightness", range 0,65535
[2] "Brightness", default 32768, current 32768
[2] found control 0x00980901, "Contrast", range 0,65535
[2] "Contrast", default 32768, current 32768
[2] found control 0x00980902, "Saturation", range 0,65535
[2] "Saturation", default 32768, current 32768
[2] found control 0x00980903, "Hue", range 0,65535
[2] "Hue", default 32768, current 32768
[2] found control 0x00000000, "42", range 0,0 !DISABLED!
[2] "42", default 0, current 0
[2] found control 0x00000000, "42", range 0,0 !DISABLED!
[2] "42", default 0, current 0
[2] found control 0x00000000, "42", range 0,0 !DISABLED!
[2] "42", default 0, current 0
[2] found control 0x00000000, "42", range 0,0 !DISABLED!
[2] "42", default 0, current 0
[2] found control 0x00000000, "42", range 0,0 !DISABLED!
[2] "42", default 0, current 0
[2] found control 0x00000000, "42", range 0,0 !DISABLED!
[2] "42", default 0, current 0
[2] found control 0x08000000, "chroma agc", range 0,1
[2] "chroma agc", default 0, current 0
[2] found control 0x08000001, "combfilter", range 0,1
[2] "combfilter", default 0, current 0
[2] mmap information:
[2] frames=4
[2] 0 length=663552
[2] 1 length=663552
[2] 2 length=663552
[2] 3 length=663552
[2] Using V4L2
[0] motion-httpd/3.2.9 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] Opened input of /dev/video2
[1] Started stream webcam server in port 8081
[2] Opened input of /dev/video4
[2] Started stream webcam server in port 8082
Любое движение... и:
[1] File of type 8 saved to: /var/www/motion/camera1/%d-%m-%Y/11:43:58.avi
Запись WAVE 'stdin' : Signed 16 bit Little Endian, Частота 44100 Гц, Стерео
[2] File of type 8 saved to: /var/www/motion/camera2/%d-%m-%Y/11:43:59.avi