Ubuntu Suomen keskustelualueet
Ubuntun käyttö => Laitealue => Aiheen aloitti: Risto H. Kurppa - 28.09.10 - klo:14.40
-
Tavoite on kaapata kuva webcamilta ja tallentaa se Apachen välitettäväksi pyynnöstä eteenpäin.
Kamera: Bus 001 Device 005: ID 093a:2626 Pixart Imaging, Inc.
Käyttis: Kubuntu 10.04.01, päivitettynä, kahdessa koneessa.
[106400.421535] usb 3-2.3: new full speed USB device using uhci_hcd and address 13
[106400.633703] usb 3-2.3: configuration #1 chosen from 1 choice
[106400.951253] Linux video capture interface: v2.00
[106400.981296] gspca: main v2.7.0 registered
[106400.982539] gspca: probing 093a:2626
[106400.991676] gspca: probe ok
[106400.991698] gspca: probing 093a:2626
[106400.991713] gspca: probing 093a:2626
[106400.991740] usbcore: registered new interface driver pac7311
[106400.991948] pac7311: registered
[106401.273001] usbcore: registered new interface driver snd-usb-audio
lsmod|grep gpscpa näyttää tämän
gspca_pac7311 8986 0
gspca_main 21199 1 gspca_pac7311
videodev 34361 1 gspca_main
sudo fswebcam -i 0
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
Unable to find a compatible palette format.
Koitin myös fswebcam -v:llä ja antaa ulos mm.
src_v4l2_set_pix_format,535: Device offers the following V4L2 pixel formats:
src_v4l2_set_pix_format,547: 0: PJPG (PJPG)
Eli pitäisi keksiä kuka ymmärtää PJPG:tä..
camE -c .camErc
ioctl VIDIOCMCAPTURE: Invalid argument
no image captured
Kamosolla toimii, käyttää v4l2:sta.
Myös Kopetella toimii.
sudo vgrabbj -d /dev/video0
Unable to set supported video-palette
Fatal Error (non-daemon), exiting...
There was no map allocated to be freed...
Ideoita?
r
-
sudo LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so fswebcam
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
Adjusting resolution from 384x288 to 640x480.
--- Capturing frame...
Captured frame in 0.00 seconds.
--- Processing captured image...
There are unsaved changes to the image.
:)
(eli noi gui-softat osaa käyttää suoraan tota libv4l-converttia joka osaa muunnella noita paletteja. Tolla komennolla sen voi laittaa toimimaan myös komentorivisoftille :)
r