Random picture using motion on synology with uvc-drivers (mjpg-streamers works)
Question
I have added the uvc Kernelmodules to my synology diskstation to enable usb-camera support. this works find and I see the correct picture and stream using mjpeg-streamer. But finally I would like to use motion (instead of the built in "Surveillance Station".
But there I have no success. I only get a random picture (see
http://www.synology-forum.de/attachment.html?attachmentid=4421&stc=1&d=1294176686).
Startup of motion:
DiskStation> motion
[0] Processing thread 0 - config file /volume1/homes/roland/download/motion-3.2.12/motion.conf
[0] Unknown config option "sql_log_image"
[0] Unknown config option "sql_log_snapshot"
[0] Unknown config option "sql_log_mpeg"
[0] Unknown config option "sql_log_timelapse"
[0] Unknown config option "sql_query"
[0] Motion 3.2.11.1 Started
[0] ffmpeg LIBAVCODEC_BUILD 3356160 LIBAVFORMAT_BUILD 3411200
[0] Thread 1 is from /volume1/homes/roland/download/motion-3.2.12/motion.conf
[0] motion-httpd/3.2.11.1 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] Thread 1 started
[1] cap.driver: "uvcvideo"
[1] cap.card: "USBDevice"
[1] cap.bus_info: "usb-0000:00:0e.1-1"
[1] cap.capabilities=0x04000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Supported palettes:
[1] 0: MJPG (MJPEG)
[1] 1: YUYV (YUV 4:2:2 (YUYV))
[1] Selected palette YUYV
[1] index_format 6 Test palette YUYV (1280x1024)
[1] Adjusting resolution from 1280x1024 to 1280x960.
[1] Using palette YUYV (1280x960) bytesperlines 2560 sizeimage 2457600 colorspace 00000008
[1] found control 0x00980900, "Brightness", range 0,255
[1] "Brightness", default 127, current 254
[1] found control 0x00980901, "Contrast", range 0,255
[1] "Contrast", default 32, current 32
[1] found control 0x00980902, "Saturation", range 0,255
[1] "Saturation", default 28, current 28
[1] found control 0x00980913, "Gain", range 0,255
[1] "Gain", default 0, current 16
[1] mmap information:
[1] frames=4
[1] 0 length=2457600
[1] 1 length=2457600
[1] 2 length=2457600
[1] 3 length=2457600
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 8081
Environment
Motion version: |
3.2.11.1 and 3.2.12 |
ffmpeg version: |
|
Libraries: |
ffmpeg (only 3.2.11.1) |
Server OS: |
Linux DiskStation 2.6.32.12 #1354 Sat Oct 23 00:47:31 CST 2010 ppc GNU/Linux |
--
RolandEgli - 04 Jan 2011
Answer