econsysqtcam / qtcam

QtCAM is a free, Open Source Linux Webcamera Software with more than 10 image control settings, extension settings and Color space switching.
http://www.e-consystems.com/opensource-linux-webcam-software-application.asp
GNU General Public License v3.0
185 stars 95 forks source link

Unable to capture image in E-CAM80_MI8825_MOD E88E0025 camera #28

Open Darshanbc opened 6 years ago

Darshanbc commented 6 years ago

logs through dmesg

[ 7166.025385] usb 3-2: new high-speed USB device number 6 using xhci_hcd [ 7166.166708] usb 3-2: New USB device found, idVendor=2560, idProduct=c080 [ 7166.166714] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 7166.166717] usb 3-2: Product: e-con's 8MP Camera [ 7166.166720] usb 3-2: Manufacturer: e-consystems [ 7166.167408] uvcvideo: Found UVC 1.00 device e-con's 8MP Camera (2560:c080) [ 7166.174644] uvcvideo 3-2:1.0: Entity type for entity Extension 3 was not initialized! [ 7166.174650] uvcvideo 3-2:1.0: Entity type for entity Processing 2 was not initialized! [ 7166.174653] uvcvideo 3-2:1.0: Entity type for entity Camera 1 was not initialized! [ 7166.174920] input: e-con's 8MP Camera as /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/input/input21 [ 7166.177529] hid-generic 0003:2560:C080.0009: hiddev0,hidraw0: USB HID v1.11 Device [e-consystems e-con's 8MP Camera] on usb-0000:00:14.0-2/input2


sudo qtcam read: Resource temporarily unavailable read: Resource temporarily unavailable read: Resource temporarily unavailable read: Resource temporarily unavailable read: Resource temporarily unavailable read: Resource temporarily unavailable read: Resource temporarily unavailable read: Resource temporarily unavailable

I have v4l drivers installed, when I try capturing qtcam gets hanged.


I have also tried with command line utility fswebcam which uses v4l driver directly this the error received

fswebcam -d /dev/video1 img.raw --- Opening /dev/video1... Trying source module v4l2... /dev/video1 opened. No input was specified, using the first. Adjusting resolution from 384x288 to 640x480. --- Capturing frame... Timed out waiting for frame! No frames captured.

econsysqtcam commented 6 years ago

Hi, We are able to capture the image using "qtcam" and "fswebcam". We are using ubuntu 16.04. Can you please send the below details.

  1. Are you working in desktop or any embedded board?
  2. Which Ubuntu version are you using?
  3. Which firmware version are you using in the camera?
Darshanbc commented 6 years ago

I am using laptop ubuntu 16.04.5 Firmware version I have no idea

I tried debugging more, I used uvccapture to capture I got the error "ioctl querycontroll error 22" further debugging I got to know there is some invalid argument is being passsed

econsysqtcam commented 6 years ago

Please try to use the latest firmware for this camera from developer website with Qtcam.

Regarding uvccapture, There will be shortcoming. Please refer the link http://christian.kuelker.info/doc/uvccapture/uvccapture.html.

I am able to capture the image using the command $sudo uvccapture -S40 -C30 -G80 -B20 -m -x1920 -y1080 -v -t1

This command will take a shot 1 second once and generate a file "snap.jpg". Please stop the application after 3 or 4 seconds and check "snap.jpg" file. If we use single shot mode, we observe that the frame will not be saved properly.

I hope this will help you.