Edgar Thier
2014-01-13 13:46:10 UTC
Hi,
I am having trouble with some The Imaging Source cameras.
When trying to access them via guvcview I get a black screen and guvcview
only displays 0.5 FPS.
The camera I am currently testing is a DFK23UV024 usb 3.0 camera.
My workstation is a debian testing.
GNU/Linux
uvc trace is enabled during the whole output.
Here is the guvcview output
file guvcview_video.mkv has extension type 1
file guvcview_image.jpg has extension type 0
file guvcview_image.jpg has extension type 0
Video file suffix detected: 0
Image file suffix detected: 0
video_device: /dev/video0
vid_sleep: 0
cap_meth: 1
resolution: 640 x 480
windowsize: 1006 x 694
spin behavior: 0
default action: 0
mode: grey fps: 1/20
Display Fps: 1
bpp: 32
hwaccel: 1
avi_format: 8
sound: 1
sound Device: 0
sound samp rate: 0
sound Channels: 0
Sound delay: 0 nanosec
Sound Format: 80
Pan Step: 2 degrees
Tilt Step: 2 degrees
Video Filter Flags: 0
image inc: 1
profile(default):/home/edt/default.gpfl
starting portaudio...
ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only
playback stream
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
language catalog=> dir:/usr/share/locale type:UTF-8 lang:en_US
cat:guvcview.mo
Screen resolution is (3200 x 1200)
grey: setting format to 1497715271
capture method = 1
video device: /dev/video0
Device Node Path: /dev/video0
VID/PID: 199e 8414
The Imaging Source
DFK 23UV024
serial: 411A8700
Init. DFK 23UV024 (location: usb-0000:00:14.0-6)
{ pixelformat = ' { not supported - request format(0) support at
http://guvcview.sourceforge.net }
{ pixelformat = 'GREY', description = 'Greyscale 8-bit (Y800)' }
{ discrete: width = 752, height = 480 }
Time interval between frame: 1/100, 1/80, 1/60, 1/40, 1/30, 1/20,
{ discrete: width = 640, height = 480 }
Time interval between frame: 1/115, 1/100, 1/80, 1/60, 1/40, 1/30,
1/20,
{ pixelformat = 'Y16 ', description = 'Greyscale 16-bit (Y16 )' }
{ discrete: width = 752, height = 480 }
Time interval between frame: 1/100, 1/80, 1/60, 1/40, 1/30, 1/20,
{ discrete: width = 640, height = 480 }
Time interval between frame: 1/115, 1/100, 1/80, 1/60, 1/40, 1/30,
1/20,
{ pixelformat = 'RGB3', description = 'RGB3' }
{ discrete: width = 752, height = 480 }
Time interval between frame:
{ discrete: width = 640, height = 480 }
Time interval between frame:
{ pixelformat = 'BGR3', description = 'BGR3' }
{ discrete: width = 752, height = 480 }
Time interval between frame:
{ discrete: width = 640, height = 480 }
Time interval between frame:
{ pixelformat = 'YU12', description = 'YU12' }
{ discrete: width = 752, height = 480 }
Time interval between frame:
{ discrete: width = 640, height = 480 }
Time interval between frame:
{ pixelformat = 'YV12', description = 'YV12' }
{ discrete: width = 752, height = 480 }
Time interval between frame:
{ discrete: width = 640, height = 480 }
Time interval between frame:
vid:199e
pid:8414
driver:uvcvideo
checking format: 1497715271
fps is set to 1/20
drawing controls
control[0]: 0x980913 Gain, 16:240:1, default 16 , current 16
control[0]: 0x9a0902 Exposure (Absolute), 1:2500:1, default 333 , current
33
resolutions of format(1) = 2
frame rates of 2ยบ resolution=7
Def. Res: 1 numb. fps:7
--------------------------------------- device #0
Name = HDA Intel MID: HDMI 0 (hw:0,3)
Host API = ALSA
Max inputs = 0, Max outputs = 8
Def. low input latency = -1.000
Def. low output latency = 0.012
Def. high input latency = -1.000
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #1
Name = HDA Intel MID: HDMI 1 (hw:0,7)
Host API = ALSA
Max inputs = 0, Max outputs = 8
Def. low input latency = -1.000
Def. low output latency = 0.012
Def. high input latency = -1.000
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #2
Name = HDA Intel PCH: ALC887-VD Analog (hw:1,0)
Host API = ALSA
Max inputs = 2, Max outputs = 8
Def. low input latency = 0.012
Def. low output latency = 0.012
Def. high input latency = 0.046
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #3
Name = HDA Intel PCH: ALC887-VD Digital (hw:1,1)
Host API = ALSA
Max inputs = 0, Max outputs = 2
Def. low input latency = -1.000
Def. low output latency = 0.012
Def. high input latency = -1.000
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #4
Name = HDA Intel PCH: ALC887-VD Alt Analog (hw:1,2)
Host API = ALSA
Max inputs = 2, Max outputs = 0
Def. low input latency = 0.012
Def. low output latency = -1.000
Def. high input latency = 0.046
Def. high output latency = -1.000
Def. sample rate = 44100.00
--------------------------------------- device #5
Name = HDA NVidia: HDMI 0 (hw:2,3)
Host API = ALSA
Max inputs = 0, Max outputs = 8
Def. low input latency = -1.000
Def. low output latency = 0.012
Def. high input latency = -1.000
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #6
Name = HDA NVidia: HDMI 0 (hw:2,7)
Host API = ALSA
Max inputs = 0, Max outputs = 8
Def. low input latency = -1.000
Def. low output latency = 0.012
Def. high input latency = -1.000
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #7
Name = HDA NVidia: HDMI 0 (hw:2,8)
Host API = ALSA
Max inputs = 0, Max outputs = 8
Def. low input latency = -1.000
Def. low output latency = 0.012
Def. high input latency = -1.000
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #8
Name = HDA NVidia: HDMI 0 (hw:2,9)
Host API = ALSA
Max inputs = 0, Max outputs = 8
Def. low input latency = -1.000
Def. low output latency = 0.012
Def. high input latency = -1.000
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #9
Name = hdmi
Host API = ALSA
Max inputs = 0, Max outputs = 8
Def. low input latency = -1.000
Def. low output latency = 0.012
Def. high input latency = -1.000
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #10
Name = pulse
Host API = ALSA
Max inputs = 32, Max outputs = 32
Def. low input latency = 0.012
Def. low output latency = 0.012
Def. high input latency = 0.046
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #11
[ Default Input, Default Output ]
Name = default
Host API = ALSA
Max inputs = 32, Max outputs = 32
Def. low input latency = 0.012
Def. low output latency = 0.012
Def. high input latency = 0.046
Def. high output latency = 0.046
Def. sample rate = 44100.00
----------------------------------------------
SampleRate:0 Channels:0
Video driver: x11
A window manager is available
(Desktop resolution = 3200x1200)
Checking video mode ***@32bpp : OK
Could not grab image (select timeout): Resource temporarily unavailable
Could not grab image (select timeout): Resource temporarily unavailable
Could not grab image (select timeout): Resource temporarily unavailable
Could not grab image (select timeout): Resource temporarily unavailable
Shuting Down Thread
Could not grab image (select timeout): Resource temporarily unavailable
Could not grab image (select timeout): Resource temporarily unavailable
Thread terminated...
cleaning Thread allocations: 100%
Video thread completed
Video Thread finished write /home/edt/.config/guvcview/video0 OK
free audio mutex closed
v4l2 strutures
free controls
free controls - vidState
cleaned allocations - 100%
Closing portaudio ...OK
Closing GTK... OK
--------------------------------------------------------
A
--------------------------------------------------------
Bus 002 Device 013: ID 199e:8414 The Imaging Source Europe GmbH
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2 ?
bDeviceProtocol 1 Interface Association
bMaxPacketSize0 9
idVendor 0x199e The Imaging Source Europe GmbH
idProduct 0x8414
bcdDevice 0.00
iManufacturer 1 The Imaging Source
iProduct 2 DFK 23UV024
iSerial 3 411A8700
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 542
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Association:
bLength 8
bDescriptorType 11
bFirstInterface 0
bInterfaceCount 2
bFunctionClass 14 Video
bFunctionSubClass 3 Video Interface Collection
bFunctionProtocol 0
iFunction 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 14 Video
bInterfaceSubClass 1 Video Control
bInterfaceProtocol 0
iInterface 0
VideoControl Interface Descriptor:
bLength 13
bDescriptorType 36
bDescriptorSubtype 1 (HEADER)
bcdUVC 1.10
wTotalLength 82
dwClockFrequency 48.000000MHz
bInCollection 1
baInterfaceNr( 0) 1
VideoControl Interface Descriptor:
bLength 18
bDescriptorType 36
bDescriptorSubtype 2 (INPUT_TERMINAL)
bTerminalID 1
wTerminalType 0x0201 Camera Sensor
bAssocTerminal 0
iTerminal 0
wObjectiveFocalLengthMin 0
wObjectiveFocalLengthMax 0
wOcularFocalLength 0
bControlSize 3
bmControls 0x00000008
Exposure Time (Absolute)
VideoControl Interface Descriptor:
bLength 13
bDescriptorType 36
bDescriptorSubtype 5 (PROCESSING_UNIT)
bUnitID 2
bSourceID 1
wMaxMultiplier 16384
bControlSize 3
bmControls 0x00000200
Gain
iProcessing 0
bmVideoStandards 0x 0
VideoControl Interface Descriptor:
bLength 29
bDescriptorType 36
bDescriptorSubtype 6 (EXTENSION_UNIT)
bUnitID 3
guidExtensionCode {0aba49de-5c0b-49d5-8f71-0be40f94a67a}
bNumControl 2
bNrPins 1
baSourceID( 0) 2
bControlSize 4
bmControls( 0) 0xb0
bmControls( 1) 0xc0
bmControls( 2) 0xff
bmControls( 3) 0x07
iExtension 0
VideoControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 4
wTerminalType 0x0101 USB Streaming
bAssocTerminal 0
bSourceID 3
iTerminal 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
bInterfaceProtocol 0
iInterface 0
VideoStreaming Interface Descriptor:
bLength 16
bDescriptorType 36
bDescriptorSubtype 1 (INPUT_HEADER)
bNumFormats 3
wTotalLength 412
bEndPointAddress 129
bmInfo 0
bTerminalLink 4
bStillCaptureMethod 0
bTriggerSupport 0
bTriggerUsage 0
bControlSize 1
bmaControls( 0) 28
bmaControls( 1) 28
bmaControls( 2) 28
VideoStreaming Interface Descriptor:
bLength 28
bDescriptorType 36
bDescriptorSubtype 16 (FORMAT_FRAME_BASED)
bFormatIndex 1
bNumFrameDescriptors 2
guidFormat
{47425247-0000-1000-8000-00aa00389b71}
bBitsPerPixel 8
bDefaultFrameIndex 1
bAspectRatioX 1
bAspectRatioY 1
bmInterlaceFlags 0x00
Interlaced stream or variable: No
Fields per frame: 2 fields
Field 1 first: No
Field pattern: Field 1 only
bCopyProtect 0
bVariableSize 0
VideoStreaming Interface Descriptor:
bLength 50
bDescriptorType 36
bDescriptorSubtype 17 (FRAME_FRAME_BASED)
bFrameIndex 1
bmCapabilities 0x00
Still image unsupported
wWidth 752
wHeight 480
dwMinBitRate 72000
dwMaxBitRate 72000
dwDefaultFrameInterval 100000
bFrameIntervalType 6
dwBytesPerLine 752
dwFrameInterval( 0) 100000
dwFrameInterval( 1) 125000
dwFrameInterval( 2) 166666
dwFrameInterval( 3) 250000
dwFrameInterval( 4) 333333
dwFrameInterval( 5) 500000
VideoStreaming Interface Descriptor:
bLength 54
bDescriptorType 36
bDescriptorSubtype 17 (FRAME_FRAME_BASED)
bFrameIndex 2
bmCapabilities 0x00
Still image unsupported
wWidth 640
wHeight 480
dwMinBitRate 72000
dwMaxBitRate 72000
dwDefaultFrameInterval 86956
bFrameIntervalType 7
dwBytesPerLine 640
dwFrameInterval( 0) 86956
dwFrameInterval( 1) 100000
dwFrameInterval( 2) 125000
dwFrameInterval( 3) 166666
dwFrameInterval( 4) 250000
dwFrameInterval( 5) 333333
dwFrameInterval( 6) 500000
VideoStreaming Interface Descriptor:
bLength 28
bDescriptorType 36
bDescriptorSubtype 16 (FORMAT_FRAME_BASED)
bFormatIndex 2
bNumFrameDescriptors 2
guidFormat
{59383030-0000-1000-8000-00aa00389b71}
bBitsPerPixel 8
bDefaultFrameIndex 1
bAspectRatioX 1
bAspectRatioY 1
bmInterlaceFlags 0x00
Interlaced stream or variable: No
Fields per frame: 2 fields
Field 1 first: No
Field pattern: Field 1 only
bCopyProtect 0
bVariableSize 0
VideoStreaming Interface Descriptor:
bLength 50
bDescriptorType 36
bDescriptorSubtype 17 (FRAME_FRAME_BASED)
bFrameIndex 1
bmCapabilities 0x00
Still image unsupported
wWidth 752
wHeight 480
dwMinBitRate 72000
dwMaxBitRate 72000
dwDefaultFrameInterval 100000
bFrameIntervalType 6
dwBytesPerLine 752
dwFrameInterval( 0) 100000
dwFrameInterval( 1) 125000
dwFrameInterval( 2) 166666
dwFrameInterval( 3) 250000
dwFrameInterval( 4) 333333
dwFrameInterval( 5) 500000
VideoStreaming Interface Descriptor:
bLength 54
bDescriptorType 36
bDescriptorSubtype 17 (FRAME_FRAME_BASED)
bFrameIndex 2
bmCapabilities 0x00
Still image unsupported
wWidth 640
wHeight 480
dwMinBitRate 72000
dwMaxBitRate 72000
dwDefaultFrameInterval 86956
bFrameIntervalType 7
dwBytesPerLine 640
dwFrameInterval( 0) 86956
dwFrameInterval( 1) 100000
dwFrameInterval( 2) 125000
dwFrameInterval( 3) 166666
dwFrameInterval( 4) 250000
dwFrameInterval( 5) 333333
dwFrameInterval( 6) 500000
VideoStreaming Interface Descriptor:
bLength 28
bDescriptorType 36
bDescriptorSubtype 16 (FORMAT_FRAME_BASED)
bFormatIndex 3
bNumFrameDescriptors 2
guidFormat
{59313620-0000-1000-8000-00aa00389b71}
bBitsPerPixel 16
bDefaultFrameIndex 1
bAspectRatioX 1
bAspectRatioY 1
bmInterlaceFlags 0x00
Interlaced stream or variable: No
Fields per frame: 2 fields
Field 1 first: No
Field pattern: Field 1 only
bCopyProtect 0
bVariableSize 0
VideoStreaming Interface Descriptor:
bLength 50
bDescriptorType 36
bDescriptorSubtype 17 (FRAME_FRAME_BASED)
bFrameIndex 1
bmCapabilities 0x00
Still image unsupported
wWidth 752
wHeight 480
dwMinBitRate 72000
dwMaxBitRate 72000
dwDefaultFrameInterval 100000
bFrameIntervalType 6
dwBytesPerLine 1504
dwFrameInterval( 0) 100000
dwFrameInterval( 1) 125000
dwFrameInterval( 2) 166666
dwFrameInterval( 3) 250000
dwFrameInterval( 4) 333333
dwFrameInterval( 5) 500000
VideoStreaming Interface Descriptor:
bLength 54
bDescriptorType 36
bDescriptorSubtype 17 (FRAME_FRAME_BASED)
bFrameIndex 2
bmCapabilities 0x00
Still image unsupported
wWidth 640
wHeight 480
dwMinBitRate 72000
dwMaxBitRate 72000
dwDefaultFrameInterval 86956
bFrameIntervalType 7
dwBytesPerLine 1280
dwFrameInterval( 0) 86956
dwFrameInterval( 1) 100000
dwFrameInterval( 2) 125000
dwFrameInterval( 3) 166666
dwFrameInterval( 4) 250000
dwFrameInterval( 5) 333333
dwFrameInterval( 6) 500000
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 15
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 22
bNumDeviceCaps 2
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x00000002
Link Power Management (LPM) Supported
SuperSpeed USB Device Capability:
bLength 10
bDescriptorType 16
bDevCapabilityType 3
bmAttributes 0x00
wSpeedsSupported 0x000c
Device can operate at High Speed (480Mbps)
Device can operate at SuperSpeed (5Gbps)
bFunctionalitySupport 2
Lowest fully-functional device speed is High Speed (480Mbps)
bU1DevExitLat 0 micro seconds
bU2DevExitLat 0 micro seconds
Device Status: 0x0000
(Bus Powered)
--------------------------------------------------------
Where it gets interesting:
If I play around with the video settings (such as framerate and video
format) I am sometimes able to get the camera in a working state where the
camera works as expected without any problems.
guvcview stops complaining about "Resource temporarily unavailable" and
dmesg prints for each frame
[20528.284260] uvcvideo: frame 1761 stats: 0/0/21 packets, 0/0/0 pts
(!early !initial), 0/0 scr, last pts/stc/sof 0/0/0
[20528.327886] uvcvideo: Frame complete (EOF found).
[20528.327895] uvcvideo: uvc_v4l2_poll
[20528.327898] uvcvideo: uvc_v4l2_ioctl(VIDIOC_DQBUF)
[20528.327900] uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)
[20528.328219] uvcvideo: uvc_v4l2_poll
If anyone has an idea as to why I get this behavior and how I could fix it
it would be really appreviated!
Cheers,
Edgar
I am having trouble with some The Imaging Source cameras.
When trying to access them via guvcview I get a black screen and guvcview
only displays 0.5 FPS.
The camera I am currently testing is a DFK23UV024 usb 3.0 camera.
My workstation is a debian testing.
uname -a
Linux workstation01 3.12-1-amd64 #1 SMP Debian 3.12.6-2 (2013-12-29) x86_64GNU/Linux
uvc trace is enabled during the whole output.
Here is the guvcview output
guvcview --verbose
guvcview 1.7.1file guvcview_video.mkv has extension type 1
file guvcview_image.jpg has extension type 0
file guvcview_image.jpg has extension type 0
Video file suffix detected: 0
Image file suffix detected: 0
video_device: /dev/video0
vid_sleep: 0
cap_meth: 1
resolution: 640 x 480
windowsize: 1006 x 694
spin behavior: 0
default action: 0
mode: grey fps: 1/20
Display Fps: 1
bpp: 32
hwaccel: 1
avi_format: 8
sound: 1
sound Device: 0
sound samp rate: 0
sound Channels: 0
Sound delay: 0 nanosec
Sound Format: 80
Pan Step: 2 degrees
Tilt Step: 2 degrees
Video Filter Flags: 0
image inc: 1
profile(default):/home/edt/default.gpfl
starting portaudio...
ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only
playback stream
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
language catalog=> dir:/usr/share/locale type:UTF-8 lang:en_US
cat:guvcview.mo
Screen resolution is (3200 x 1200)
grey: setting format to 1497715271
capture method = 1
video device: /dev/video0
Device Node Path: /dev/video0
VID/PID: 199e 8414
The Imaging Source
DFK 23UV024
serial: 411A8700
Init. DFK 23UV024 (location: usb-0000:00:14.0-6)
{ pixelformat = ' { not supported - request format(0) support at
http://guvcview.sourceforge.net }
{ pixelformat = 'GREY', description = 'Greyscale 8-bit (Y800)' }
{ discrete: width = 752, height = 480 }
Time interval between frame: 1/100, 1/80, 1/60, 1/40, 1/30, 1/20,
{ discrete: width = 640, height = 480 }
Time interval between frame: 1/115, 1/100, 1/80, 1/60, 1/40, 1/30,
1/20,
{ pixelformat = 'Y16 ', description = 'Greyscale 16-bit (Y16 )' }
{ discrete: width = 752, height = 480 }
Time interval between frame: 1/100, 1/80, 1/60, 1/40, 1/30, 1/20,
{ discrete: width = 640, height = 480 }
Time interval between frame: 1/115, 1/100, 1/80, 1/60, 1/40, 1/30,
1/20,
{ pixelformat = 'RGB3', description = 'RGB3' }
{ discrete: width = 752, height = 480 }
Time interval between frame:
{ discrete: width = 640, height = 480 }
Time interval between frame:
{ pixelformat = 'BGR3', description = 'BGR3' }
{ discrete: width = 752, height = 480 }
Time interval between frame:
{ discrete: width = 640, height = 480 }
Time interval between frame:
{ pixelformat = 'YU12', description = 'YU12' }
{ discrete: width = 752, height = 480 }
Time interval between frame:
{ discrete: width = 640, height = 480 }
Time interval between frame:
{ pixelformat = 'YV12', description = 'YV12' }
{ discrete: width = 752, height = 480 }
Time interval between frame:
{ discrete: width = 640, height = 480 }
Time interval between frame:
vid:199e
pid:8414
driver:uvcvideo
checking format: 1497715271
fps is set to 1/20
drawing controls
control[0]: 0x980913 Gain, 16:240:1, default 16 , current 16
control[0]: 0x9a0902 Exposure (Absolute), 1:2500:1, default 333 , current
33
resolutions of format(1) = 2
frame rates of 2ยบ resolution=7
Def. Res: 1 numb. fps:7
--------------------------------------- device #0
Name = HDA Intel MID: HDMI 0 (hw:0,3)
Host API = ALSA
Max inputs = 0, Max outputs = 8
Def. low input latency = -1.000
Def. low output latency = 0.012
Def. high input latency = -1.000
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #1
Name = HDA Intel MID: HDMI 1 (hw:0,7)
Host API = ALSA
Max inputs = 0, Max outputs = 8
Def. low input latency = -1.000
Def. low output latency = 0.012
Def. high input latency = -1.000
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #2
Name = HDA Intel PCH: ALC887-VD Analog (hw:1,0)
Host API = ALSA
Max inputs = 2, Max outputs = 8
Def. low input latency = 0.012
Def. low output latency = 0.012
Def. high input latency = 0.046
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #3
Name = HDA Intel PCH: ALC887-VD Digital (hw:1,1)
Host API = ALSA
Max inputs = 0, Max outputs = 2
Def. low input latency = -1.000
Def. low output latency = 0.012
Def. high input latency = -1.000
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #4
Name = HDA Intel PCH: ALC887-VD Alt Analog (hw:1,2)
Host API = ALSA
Max inputs = 2, Max outputs = 0
Def. low input latency = 0.012
Def. low output latency = -1.000
Def. high input latency = 0.046
Def. high output latency = -1.000
Def. sample rate = 44100.00
--------------------------------------- device #5
Name = HDA NVidia: HDMI 0 (hw:2,3)
Host API = ALSA
Max inputs = 0, Max outputs = 8
Def. low input latency = -1.000
Def. low output latency = 0.012
Def. high input latency = -1.000
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #6
Name = HDA NVidia: HDMI 0 (hw:2,7)
Host API = ALSA
Max inputs = 0, Max outputs = 8
Def. low input latency = -1.000
Def. low output latency = 0.012
Def. high input latency = -1.000
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #7
Name = HDA NVidia: HDMI 0 (hw:2,8)
Host API = ALSA
Max inputs = 0, Max outputs = 8
Def. low input latency = -1.000
Def. low output latency = 0.012
Def. high input latency = -1.000
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #8
Name = HDA NVidia: HDMI 0 (hw:2,9)
Host API = ALSA
Max inputs = 0, Max outputs = 8
Def. low input latency = -1.000
Def. low output latency = 0.012
Def. high input latency = -1.000
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #9
Name = hdmi
Host API = ALSA
Max inputs = 0, Max outputs = 8
Def. low input latency = -1.000
Def. low output latency = 0.012
Def. high input latency = -1.000
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #10
Name = pulse
Host API = ALSA
Max inputs = 32, Max outputs = 32
Def. low input latency = 0.012
Def. low output latency = 0.012
Def. high input latency = 0.046
Def. high output latency = 0.046
Def. sample rate = 44100.00
--------------------------------------- device #11
[ Default Input, Default Output ]
Name = default
Host API = ALSA
Max inputs = 32, Max outputs = 32
Def. low input latency = 0.012
Def. low output latency = 0.012
Def. high input latency = 0.046
Def. high output latency = 0.046
Def. sample rate = 44100.00
----------------------------------------------
SampleRate:0 Channels:0
Video driver: x11
A window manager is available
(Desktop resolution = 3200x1200)
Checking video mode ***@32bpp : OK
Could not grab image (select timeout): Resource temporarily unavailable
Could not grab image (select timeout): Resource temporarily unavailable
Could not grab image (select timeout): Resource temporarily unavailable
Could not grab image (select timeout): Resource temporarily unavailable
Shuting Down Thread
Could not grab image (select timeout): Resource temporarily unavailable
Could not grab image (select timeout): Resource temporarily unavailable
Thread terminated...
cleaning Thread allocations: 100%
Video thread completed
Video Thread finished write /home/edt/.config/guvcview/video0 OK
free audio mutex closed
v4l2 strutures
free controls
free controls - vidState
cleaned allocations - 100%
Closing portaudio ...OK
Closing GTK... OK
--------------------------------------------------------
A
sudo lsusb -v -d199e:8414
gives the following:--------------------------------------------------------
Bus 002 Device 013: ID 199e:8414 The Imaging Source Europe GmbH
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2 ?
bDeviceProtocol 1 Interface Association
bMaxPacketSize0 9
idVendor 0x199e The Imaging Source Europe GmbH
idProduct 0x8414
bcdDevice 0.00
iManufacturer 1 The Imaging Source
iProduct 2 DFK 23UV024
iSerial 3 411A8700
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 542
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Association:
bLength 8
bDescriptorType 11
bFirstInterface 0
bInterfaceCount 2
bFunctionClass 14 Video
bFunctionSubClass 3 Video Interface Collection
bFunctionProtocol 0
iFunction 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 14 Video
bInterfaceSubClass 1 Video Control
bInterfaceProtocol 0
iInterface 0
VideoControl Interface Descriptor:
bLength 13
bDescriptorType 36
bDescriptorSubtype 1 (HEADER)
bcdUVC 1.10
wTotalLength 82
dwClockFrequency 48.000000MHz
bInCollection 1
baInterfaceNr( 0) 1
VideoControl Interface Descriptor:
bLength 18
bDescriptorType 36
bDescriptorSubtype 2 (INPUT_TERMINAL)
bTerminalID 1
wTerminalType 0x0201 Camera Sensor
bAssocTerminal 0
iTerminal 0
wObjectiveFocalLengthMin 0
wObjectiveFocalLengthMax 0
wOcularFocalLength 0
bControlSize 3
bmControls 0x00000008
Exposure Time (Absolute)
VideoControl Interface Descriptor:
bLength 13
bDescriptorType 36
bDescriptorSubtype 5 (PROCESSING_UNIT)
bUnitID 2
bSourceID 1
wMaxMultiplier 16384
bControlSize 3
bmControls 0x00000200
Gain
iProcessing 0
bmVideoStandards 0x 0
VideoControl Interface Descriptor:
bLength 29
bDescriptorType 36
bDescriptorSubtype 6 (EXTENSION_UNIT)
bUnitID 3
guidExtensionCode {0aba49de-5c0b-49d5-8f71-0be40f94a67a}
bNumControl 2
bNrPins 1
baSourceID( 0) 2
bControlSize 4
bmControls( 0) 0xb0
bmControls( 1) 0xc0
bmControls( 2) 0xff
bmControls( 3) 0x07
iExtension 0
VideoControl Interface Descriptor:
bLength 9
bDescriptorType 36
bDescriptorSubtype 3 (OUTPUT_TERMINAL)
bTerminalID 4
wTerminalType 0x0101 USB Streaming
bAssocTerminal 0
bSourceID 3
iTerminal 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
bInterfaceProtocol 0
iInterface 0
VideoStreaming Interface Descriptor:
bLength 16
bDescriptorType 36
bDescriptorSubtype 1 (INPUT_HEADER)
bNumFormats 3
wTotalLength 412
bEndPointAddress 129
bmInfo 0
bTerminalLink 4
bStillCaptureMethod 0
bTriggerSupport 0
bTriggerUsage 0
bControlSize 1
bmaControls( 0) 28
bmaControls( 1) 28
bmaControls( 2) 28
VideoStreaming Interface Descriptor:
bLength 28
bDescriptorType 36
bDescriptorSubtype 16 (FORMAT_FRAME_BASED)
bFormatIndex 1
bNumFrameDescriptors 2
guidFormat
{47425247-0000-1000-8000-00aa00389b71}
bBitsPerPixel 8
bDefaultFrameIndex 1
bAspectRatioX 1
bAspectRatioY 1
bmInterlaceFlags 0x00
Interlaced stream or variable: No
Fields per frame: 2 fields
Field 1 first: No
Field pattern: Field 1 only
bCopyProtect 0
bVariableSize 0
VideoStreaming Interface Descriptor:
bLength 50
bDescriptorType 36
bDescriptorSubtype 17 (FRAME_FRAME_BASED)
bFrameIndex 1
bmCapabilities 0x00
Still image unsupported
wWidth 752
wHeight 480
dwMinBitRate 72000
dwMaxBitRate 72000
dwDefaultFrameInterval 100000
bFrameIntervalType 6
dwBytesPerLine 752
dwFrameInterval( 0) 100000
dwFrameInterval( 1) 125000
dwFrameInterval( 2) 166666
dwFrameInterval( 3) 250000
dwFrameInterval( 4) 333333
dwFrameInterval( 5) 500000
VideoStreaming Interface Descriptor:
bLength 54
bDescriptorType 36
bDescriptorSubtype 17 (FRAME_FRAME_BASED)
bFrameIndex 2
bmCapabilities 0x00
Still image unsupported
wWidth 640
wHeight 480
dwMinBitRate 72000
dwMaxBitRate 72000
dwDefaultFrameInterval 86956
bFrameIntervalType 7
dwBytesPerLine 640
dwFrameInterval( 0) 86956
dwFrameInterval( 1) 100000
dwFrameInterval( 2) 125000
dwFrameInterval( 3) 166666
dwFrameInterval( 4) 250000
dwFrameInterval( 5) 333333
dwFrameInterval( 6) 500000
VideoStreaming Interface Descriptor:
bLength 28
bDescriptorType 36
bDescriptorSubtype 16 (FORMAT_FRAME_BASED)
bFormatIndex 2
bNumFrameDescriptors 2
guidFormat
{59383030-0000-1000-8000-00aa00389b71}
bBitsPerPixel 8
bDefaultFrameIndex 1
bAspectRatioX 1
bAspectRatioY 1
bmInterlaceFlags 0x00
Interlaced stream or variable: No
Fields per frame: 2 fields
Field 1 first: No
Field pattern: Field 1 only
bCopyProtect 0
bVariableSize 0
VideoStreaming Interface Descriptor:
bLength 50
bDescriptorType 36
bDescriptorSubtype 17 (FRAME_FRAME_BASED)
bFrameIndex 1
bmCapabilities 0x00
Still image unsupported
wWidth 752
wHeight 480
dwMinBitRate 72000
dwMaxBitRate 72000
dwDefaultFrameInterval 100000
bFrameIntervalType 6
dwBytesPerLine 752
dwFrameInterval( 0) 100000
dwFrameInterval( 1) 125000
dwFrameInterval( 2) 166666
dwFrameInterval( 3) 250000
dwFrameInterval( 4) 333333
dwFrameInterval( 5) 500000
VideoStreaming Interface Descriptor:
bLength 54
bDescriptorType 36
bDescriptorSubtype 17 (FRAME_FRAME_BASED)
bFrameIndex 2
bmCapabilities 0x00
Still image unsupported
wWidth 640
wHeight 480
dwMinBitRate 72000
dwMaxBitRate 72000
dwDefaultFrameInterval 86956
bFrameIntervalType 7
dwBytesPerLine 640
dwFrameInterval( 0) 86956
dwFrameInterval( 1) 100000
dwFrameInterval( 2) 125000
dwFrameInterval( 3) 166666
dwFrameInterval( 4) 250000
dwFrameInterval( 5) 333333
dwFrameInterval( 6) 500000
VideoStreaming Interface Descriptor:
bLength 28
bDescriptorType 36
bDescriptorSubtype 16 (FORMAT_FRAME_BASED)
bFormatIndex 3
bNumFrameDescriptors 2
guidFormat
{59313620-0000-1000-8000-00aa00389b71}
bBitsPerPixel 16
bDefaultFrameIndex 1
bAspectRatioX 1
bAspectRatioY 1
bmInterlaceFlags 0x00
Interlaced stream or variable: No
Fields per frame: 2 fields
Field 1 first: No
Field pattern: Field 1 only
bCopyProtect 0
bVariableSize 0
VideoStreaming Interface Descriptor:
bLength 50
bDescriptorType 36
bDescriptorSubtype 17 (FRAME_FRAME_BASED)
bFrameIndex 1
bmCapabilities 0x00
Still image unsupported
wWidth 752
wHeight 480
dwMinBitRate 72000
dwMaxBitRate 72000
dwDefaultFrameInterval 100000
bFrameIntervalType 6
dwBytesPerLine 1504
dwFrameInterval( 0) 100000
dwFrameInterval( 1) 125000
dwFrameInterval( 2) 166666
dwFrameInterval( 3) 250000
dwFrameInterval( 4) 333333
dwFrameInterval( 5) 500000
VideoStreaming Interface Descriptor:
bLength 54
bDescriptorType 36
bDescriptorSubtype 17 (FRAME_FRAME_BASED)
bFrameIndex 2
bmCapabilities 0x00
Still image unsupported
wWidth 640
wHeight 480
dwMinBitRate 72000
dwMaxBitRate 72000
dwDefaultFrameInterval 86956
bFrameIntervalType 7
dwBytesPerLine 1280
dwFrameInterval( 0) 86956
dwFrameInterval( 1) 100000
dwFrameInterval( 2) 125000
dwFrameInterval( 3) 166666
dwFrameInterval( 4) 250000
dwFrameInterval( 5) 333333
dwFrameInterval( 6) 500000
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 15
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 22
bNumDeviceCaps 2
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x00000002
Link Power Management (LPM) Supported
SuperSpeed USB Device Capability:
bLength 10
bDescriptorType 16
bDevCapabilityType 3
bmAttributes 0x00
wSpeedsSupported 0x000c
Device can operate at High Speed (480Mbps)
Device can operate at SuperSpeed (5Gbps)
bFunctionalitySupport 2
Lowest fully-functional device speed is High Speed (480Mbps)
bU1DevExitLat 0 micro seconds
bU2DevExitLat 0 micro seconds
Device Status: 0x0000
(Bus Powered)
--------------------------------------------------------
Where it gets interesting:
If I play around with the video settings (such as framerate and video
format) I am sometimes able to get the camera in a working state where the
camera works as expected without any problems.
guvcview stops complaining about "Resource temporarily unavailable" and
dmesg prints for each frame
[20528.284260] uvcvideo: frame 1761 stats: 0/0/21 packets, 0/0/0 pts
(!early !initial), 0/0 scr, last pts/stc/sof 0/0/0
[20528.327886] uvcvideo: Frame complete (EOF found).
[20528.327895] uvcvideo: uvc_v4l2_poll
[20528.327898] uvcvideo: uvc_v4l2_ioctl(VIDIOC_DQBUF)
[20528.327900] uvcvideo: uvc_v4l2_ioctl(VIDIOC_QBUF)
[20528.328219] uvcvideo: uvc_v4l2_poll
If anyone has an idea as to why I get this behavior and how I could fix it
it would be really appreviated!
Cheers,
Edgar