Takie błędy się sypią po odpaleniu motion -n
[1] Retrying until successful connection with camera
[1] cap.driver: "pac207"
[1] cap.card: "CIF Single Chip "
[1] cap.bus_info: "usb-0000:00:11.2-1"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Config palette index 8 (YU12) doesn't work.
[1] Supported palettes:
[1] 0: P207 (P207)
[1] Unable to find a compatible palette format.
[1] Using VIDEO_PALETTE_YUV420P palette
[1] Using V4L1
[1] File of type 8 saved to: /srv/http/webcam/cam1/01-20100701071720.avi
[1] File of type 1 saved to: /srv/http/webcam/cam1/01-20100701071720-00.jpg
[1] sync error in proc 8456: Invalid argument
[1] mcapture error in proc 8456: Invalid argument
[1] Video device fatal error - Closing video device
[1] Closing video device /dev/video0
^C[0] httpd - Finishing
[0] httpd Closing
[0] httpd thread exit
[1] Thread exiting
[0] Motion terminating
Natomiast po odpaleniu polecenia
LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so motion -n
wynik:
[0] Processing thread 0 - config file /usr/local/etc/motion.conf
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3412992 LIBAVFORMAT_BUILD 3415808
[0] Thread 1 is from /usr/local/etc/motion.conf
[0] motion-httpd/3.2.12 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] Thread 1 started
[1] cap.driver: "pac207"
[1] cap.card: "CIF Single Chip "
[1] cap.bus_info: "usb-0000:00:11.2-1"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Test palette YU12 (320x240)
[1] Using palette YU12 (320x240) bytesperlines 320 sizeimage 115200 colorspace 00000008
[1] found control 0x00980900, "Brightness", range 0,255
[1] "Brightness", default 46, current 46
[1] found control 0x00980910, "Gamma (software)", range 500,3000
[1] "Gamma (software)", default 1500, current 1500
[1] found control 0x00980911, "exposure", range 3,26
[1] "exposure", default 5, current 3
[1] found control 0x00980912, "Auto Gain", range 0,1
[1] "Auto Gain", default 1, current 1
[1] found control 0x00980913, "gain", range 0,31
[1] "gain", default 9, current 0
[1] mmap information:
[1] frames=4
[1] 0 length=16777216
[1] 1 length=16777216
[1] 2 length=16777216
[1] 3 length=16777216
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 8081
obraz powstaje taki:
EDIT: Poprawiłem linka. Saturas
EDIT: W końcu wiem dlaczego tak wyświetla obraz jako białą plamę. Powodem jest niemożność ustawienia mniejszej jasności zdjęcia. Dowiedziałem się o tym dopiero w momencie, gdy chciałem sprawdzić obraz z kamerki, gdy nie świeciło słońce. Prawdopodobnie matryca kamerki nie radzi sobie z rozpiętością tonalną sceny i z tego powodu na obrazie nic nie widać. Pozostało tylko zainwestować w lepszą kamerkę - tylko jaką?
Ostatnio używam też programu
webcam server