Logitech Orbit MP and Microsoft VX-6000 black frames :?

Hi,

i’ve been using Logitech Orbit MP (046d:08cc) and Microsoft VX-6000 (045e:00f4) The first is recognized and i am able to capture video with ucview. The VX-6000 uses a microdia driver and cheese can capture video from it. So both are working fine.

The problem is that i just cant get video from within OF (yes, i have the patches to ofxUCUtils.h and cpp).

For the VX-6000 i get:

  
enumerate: 8000000  
Total count method 1: 10  
Total count method 2: 0  
Unicap : Using device /dev/video0   
Unicap : Using module v4l2  
choosing device 0: Microdia USB Video Camera (usb-0000:00:13.5-6)  
Unicap : Available formats for this device:  
Unicap : 0: YU12 ( YU12 ), min size: 160x120, max size:640x480, default size: 640x480  
Unicap : 1: BGR3 ( BGR3 ), min size: 160x120, max size:640x480, default size: 640x480  
Unicap : Selected format: BGR3 ( BGR3 ), with size 640x480  
Converting to RGB24  
0.000000   
0.000000   
0.000000   
1.132076   
1.132076   
1.132076   
2.640490   
2.640490   
3.847028   
3.847028   
4.954864   
4.954864   
4.954864   
5.741428   
5.741428   
5.741428   
5.741428   
5.741428   
8.870990   
8.870990   
8.870990   
8.870990   
11.462152   
11.462152   
11.462152   
11.462152   
13.416710   
13.416710   
<--- growing number --->  
  

And for the Logitech Orbit MP i get:

  
  
enumerate: 8000000  
enumerate: 8000001  
found  
enumerate: 8000002  
found  
enumerate: 8000003  
found  
enumerate: 8000004  
found  
enumerate: 8000005  
found  
enumerate: 8000006  
found  
enumerate: 8000007  
found  
enumerate: 8000008  
found  
enumerate: 8000009  
found  
enumerate: 800000a  
found  
enumerate: 800000b  
found  
enumerate: 800000c  
found  
enumerate: 800000d  
found  
enumerate: 800000e  
found  
Total count method 1: 18  
v4l2ctrl.name: Brightness  
v4l2ctrl.name: Contrast  
v4l2ctrl.name: Saturation  
v4l2ctrl.name: Gain  
v4l2ctrl.name: Backlight Compensation  
v4l2ctrl.name: Power Line Frequency  
v4l2ctrl.name: Sharpness  
v4l2ctrl.name: Exposure, Auto  
v4l2ctrl.name: Exposure (Absolute)  
v4l2ctrl.name: White Balance Temperature, Auto  
v4l2ctrl.name: White Balance Temperature  
v4l2ctrl.name: Exposure, Auto Priority  
Total count method 2: 12  
Unicap : Using device /dev/video1   
Unicap : Using module v4l2  
choosing device 0: UVC Camera (046d:08cc) (0000:00:13.5)  
Unicap : Available formats for this device:  
Unicap : 0: MJPEG ( MJPG ), min size: 160x120, max size:960x720, default size: 640x480  
Unicap : 1: YUV 4:2:2 (YUYV) ( YUYV ), min size: 160x120, max size:1280x960, default size: 640x480  
Unicap : Selected format: YUV 4:2:2 (YUYV) ( YUYV ), with size 640x480  
Converting to RGB24  
0.000000   
0.000000   
0.000000   
1.276596   
1.276596   
2.000000   
2.000000   
2.000000   
2.000000   
2.000000   
5.616793   
5.616793   
6.617613   
6.617613   
6.881778   
6.881778   
6.881778   
7.515186   
7.515186   
7.698246   
7.698246   
7.698246   
7.698246   
7.698246   
16.019320   
15.909922   
15.909922   
15.909922   
15.909922   
21.591679   

In both cases i get only pure black frames. :frowning:

I post the problem for both cameras because i’m thinking the problems are related to colorspace translation. BTW What are those floats? FPS??

Difficult to find, but when you find them just apply http://forum.openframeworks.cc/t/core-and-addons—latest-fixes/638/1 and all those issues were gone.

Maybe release a 0.05.1 with all the patches, put sticky or something, 'cause in linux this is a hard way to go.

Now both cameras work fine but i cannot get more than 15fps, even though on windows i get 60fps.

glad its working for you… are you sure it was the patches and not a clean recompile that did the trick? I’m not sure there is anything in there that would help video grabbing on linux work (but could be wrong).

anyway, 0.06 is just around the corner…

thanks !
zach

Hi

Sorry for late reply…

The original version in 0.05 should work at least with your logitech camera as it seems it’s using uvc drivers. The patches that you link in your last post doesn’t affect videograbber under linux, so indeed you’re going back to the original version.

The patch posted here solves the problem with slow framerates but doesn’t work with some devices, mostly v4l2 ones.

I’m working in a threaded version that should work with every device working with ucview and also solve the slow fps problem. Will post soon.

Also it will be useful if you can test the last patched version:

http://65.111.166.199/openframeworks/ofUCUtils.h
http://65.111.166.199/openframeworks/ofUCUtils.cpp

copy them to libs/openframeworks/video/

and the last unicap version:

http://65.111.166.199/openframeworks/unicap-0.2.24.tar.bz2

substitute the content of libs/unicap with the content of the compressed file.

There has been some fixes for v4l2 devices and specially for uvc ones in the last unicap versions, so perhaps this soles the problem with slow fps and works for your devices.

No, it was not a recompile, i was doing “make clean” to completely clear everything. Then i noticed that another OF tree was working, when looking closely discovered that the tree had the OF and Addons patches.

I also have the ofUCUtils.c and the ofUCUtils.h.

I will use the new unicap and test.

Finally found the REAL reason. I had installed unicap 0.9.1 on my system and OF was linking to that instead of the bundled one. So i got only black frames.

I tryed to get 0.2.24 but it seems it has disappeared from the SF mirrors? :shock:
found a mirror-here.