2013-08-29 50 views
4

隨着話題,當我運行:捕捉畫面(uvccapture捕獲黑畫面)

sudo uvccapture -S40 -C30 -G80 -B20 -x1280 -y720 -v 

我得到一個大黑畫面(相同的結果與-m標誌)

但是,當我運行時:

sudo uvccapture -S40 -C30 -G80 -B20 -x1280 -y720 -v -t5 

這意味着它會每5秒拍一張照片。
它工作良好(圖片是好的)。
但我不能使用該命令,因爲它不會停止拍照。

你知道什麼是錯的嗎?

結果:

Using videodevice: /dev/video0 
Saving images to: snap.jpg 
Image size: 1280x720 
Taking snapshot every 0 seconds 
Taking images using mmap 
Resetting camera settings 
ioctl querycontrol error 22 
Setting camera brightness to 20 
Setting camera contrast to 30 
Setting camera saturation to 40 
Setting camera gain to 80 
ioctl querycontrol error 22 
Saving image to: snap.jpg 

的lsusb:

Bus 001 Device 004: ID 041e:4088 Creative Technology, Ltd 

的dmesg:

[3.192732] usb 1-1.3: new high-speed USB device number 4 using dwc_otg 
[3.321292] usb 1-1.3: New USB device found, idVendor=041e, idProduct=4088 
[3.334037] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 
[3.343098] usb 1-1.3: Product: VF0700 Live! Cam Chat HD 
[3.350192] usb 1-1.3: Manufacturer: Creative Technology Ltd. 
[3.357531] usb 1-1.3: SerialNumber: 2G130236 
[3.949616] udevd[154]: starting version 175 
[5.197753] Registered led device: led0 
[5.294970] Linux media interface: v0.10 
[5.499646] Linux video capture interface: v2.00 
[6.009958] uvcvideo: Found UVC 1.00 device VF0700 Live! Cam Chat HD (041e:4088) 
[6.210327] input: VF0700 Live! Cam Chat HD as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/input/input0 
[6.369436] usbcore: registered new interface driver uvcvideo 
[6.502467] USB Video Class driver (1.1.1) 

回答

0

個有點古怪的建議,但你有沒有嘗試使用

sudo uvccapture -S40 -C30 -G80 -B20 -x1280 -y720 -v -t0

這應該只需要一個鏡頭。試試這個,看看它回來了。我發現有時uvccapture需要額外的參數。但並非總是如此。

乾杯。

ARc