You are not logged in.
Pages: 1
Hi,
I have a USB camera here and I only get a black screen.
lsusb gives me:
Bus 003 Device 002: ID 093a:2620 Pixart Imaging, Inc.
lsmod gives me(only the parts I think are relevant):
gspca_pac7302 20480 0
gspca_main 36864 1 gspca_pac7302
videodev 135168 5 uvcvideo,gspca_main,gspca_pac7302,v4l2_common,videobuf2_core
usbcore 200704 10 btusb,snd_usb_audio,uvcvideo,snd_usbmidi_lib,ehci_hcd,ehci_pci,gspca_main,gspca_pac7302,xhci_hcd,xhci_pci
v4l2-ctl -d /dev/video0 --all gives me:
Driver Info (not using libv4l2):
Driver name : gspca_pac7302
Card type : USB Camera (093a:2620)
Bus info : usb-0000:00:14.0-6
Driver version: 4.0.7
Capabilities : 0x85200001
Video Capture
Read/Write
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x05200001
Video Capture
Read/Write
Streaming
Extended Pix Format
Priority: 2
Video input : 0 (gspca_pac7302: ok)
Format Video Capture:
Width/Height : 640/480
Pixel Format : 'PJPG'
Field : None
Bytes per Line: 640
Size Image : 115790
Colorspace : JPEG (JFIF/ITU601)
Flags :
Streaming Parameters Video Capture:
Frames per second: invalid (0/0)
Read buffers : 2
User Controls
brightness (int) : min=0 max=32 step=1 default=16 value=16 flags=slider
contrast (int) : min=0 max=255 step=1 default=127 value=127 flags=slider
saturation (int) : min=0 max=255 step=1 default=127 value=127 flags=slider
red_balance (int) : min=0 max=200 step=1 default=100 value=100 flags=slider
blue_balance (int) : min=0 max=200 step=1 default=100 value=100 flags=slider
exposure (int) : min=0 max=1023 step=1 default=66 value=66 flags=inactive
gain_automatic (bool) : default=1 value=1 flags=update
gain (int) : min=0 max=62 step=1 default=15 value=15 flags=inactive
horizontal_flip (bool) : default=0 value=0
vertical_flip (bool) : default=0 value=0
white_balance_temperature (int) : min=0 max=255 step=1 default=55 value=55
sharpness (int) : min=0 max=15 step=1 default=8 value=8 flags=slider
brightness (int) : min=0 max=32 step=1 default=16 value=16 flags=slider
contrast (int) : min=0 max=255 step=1 default=127 value=127 flags=slider
saturation (int) : min=0 max=255 step=1 default=127 value=127 flags=slider
red_balance (int) : min=0 max=200 step=1 default=100 value=100 flags=slider
blue_balance (int) : min=0 max=200 step=1 default=100 value=100 flags=slider
exposure (int) : min=0 max=1023 step=1 default=66 value=66 flags=inactive
gain_automatic (bool) : default=1 value=1 flags=update
gain (int) : min=0 max=62 step=1 default=15 value=15 flags=inactive
horizontal_flip (bool) : default=0 value=0
vertical_flip (bool) : default=0 value=0
white_balance_temperature (int) : min=0 max=255 step=1 default=55 value=55
sharpness (int) : min=0 max=15 step=1 default=8 value=8 flags=slider
If I try to view it with vlc I get:
[00007faf340010d8] v4l2 demux error: cannot start streaming: Protocol error
[00007faf340010d8] v4l2 demux error: not a radio tuner device
libv4l2: error turning on stream: Protocol error
[00007faf340010d8] v4l2 access error: cannot start streaming: Protocol error
[00007faf2c0009b8] core input error: open of `v4l2:///dev/video0' failed
If I try to open it with cheese:
libv4l2: error turning on stream: Protocol error
libv4l2: error turning on stream: Protocol error
With dmesg I get the following error repeatingly every 10ms or so while I try to view the camera:
[ 1200.915429] gspca_pac7302 3-6:1.0: URB error -71, resubmitting
I already tried:
LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so cheese -d /dev/video0
and
LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so cheese -d /dev/video0
But they didn't change anything.
Is there anything else I could try?
Greetings
Fenris
Offline
Did it ever work? Did you try another USB port?
Is it an edoscope micro cam? If not you have a device ID problem. If you google for "093a:2620 linux", you will find, that others have that problem too and that it was introduced to the kernel somewhere between 2.6.32 and 3.5.
https://bbs.archlinux.de/viewtopic.php?id=27506
Search for gspca drivers and try LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so vlc. I remeber having the same problem with a microscope.
Offline
It worked under Windows XP, but under my dual boot Windows 8 there are no drivers available. I tried all available USB-Ports on my notebook and tried another notebook.
Yes it is an endoscope microcam. Yes, I already searched for those terms and found all the forum entries you posted.
As I said earlier I tried
LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so
With:
LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so vlc v4l2:// :v4l2-dev=/dev/video0
I get:
libv4l2: error turning on stream: Protocol error
[00007f5eb4000e68] v4l2 demux error: cannot start streaming: Protocol error
[00007f5eb4000e68] v4l2 demux error: cannot open device '/dev/radio0': No such file or directory
libv4l2: error turning on stream: Protocol error
[00007f5eb4000e68] v4l2 access error: cannot start streaming: Protocol error
[00007f5ecc000ba8] core input error: open of `v4l2://' failed
Offline
I try to find the patch I used when I had this problem. Bump the tread or mail me, if I have not answered again until monday evening.
Offline
Sorry for necro, but it seems it has 2 problems at least in 2016:
1. Camera itself works only with older USB ports (not USB 3), on USB-3 this sample check hangs forever:
auto busy_wait = [this](__u32 code, v4l2_buffer& cam_buf) ->int
{
int co = 0;
while (interruptor)
{
co = ioctl(code, &cam_buf);
if (co == -1)
co = errno;
if (co == EAGAIN)
std::this_thread::sleep_for(std::chrono::duration<int, std::milli>(10));
else
break;
}
return co;
};
called as:
int code = busy_wait(VIDIOC_DQBUF, cam_buf);
i.e. driver do not read at all.
2. On USB-2 v4l2convert gives error, that pixart jpeg stream does not end by EOF (should be kinda black-screen on most players).
Last edited by alexzk (2016-07-05 02:59:55)
Offline
Pages: 1