OpenKinect / libfreenect

Drivers and libraries for the Xbox Kinect device on Windows, Linux, and OS X
http://openkinect.org
3.59k stars 1.15k forks source link

[Stream 70] Expected max 1748 data bytes, but got 1908. Dropping... #430

Open dfamil opened 9 years ago

dfamil commented 9 years ago

i ma getting this error with the sample SimpleViewer. I have not be able to get it to work with openFrameworks yet.

[Stream 70] Expected max 1748 data bytes, but got 1908. Dropping... [Stream 70] Expected max 1748 data bytes, but got 1908. Dropping...

no image appears.

when i get this error with processing onenNI1 and libfreenect 1 it does it fro a few lines and then works. is this libfreenect or openni2 problem? is there a way to get it to keep trying?

piedar commented 9 years ago

Looks similar to #84. Can you give the full output of freenect-glview? And maybe try with a more powerful computer.

dfamil commented 9 years ago

hi freenect-glview works fine it is the SimpleView is in the openni2 sample folder. I am using a 2010 mac pro so speed sold not be a issue.

d

piedar commented 9 years ago

On Linux, SimpleView gives that message only very rarely, and everything works despite it. I will test again on OSX when I get a chance.

dfamil commented 9 years ago

hi there is another issue that i discovered starting with 10.9 the headers are no longer part of glut or opengl frameworks. They are in the sdks in the application: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/GLUT.framework

when do you think you will have the ir stream working with the kinect?

piedar commented 9 years ago

Do the moved headers cause a build error? I recently updated the examples to make CMake handle finding OpenGL and GLUT rather than just adding "-framework OpenGL - framework GLUT" to the linker flags. Hopefully the CMake devs are keeping up with all these recent changes in OSX.

piedar commented 9 years ago

IR works for me. Press 'f' twice in freenect-glview to see it. And in code you would do

freenect_set_video_mode(f_dev, freenect_find_video_mode(FREENECT_RESOLUTION_MEDIUM, FREENECT_VIDEO_IR_8BIT));
dfamil commented 9 years ago

hi

yes i did get a error i had to enter the correct path after the error showed up in the buiild file(forgot what it was called)

i meant the OpenNI2-FreenectDriver. I am using Openframeworks so from that theo states you can;t both have the ofxKinect installed and OpenNI. I am not sure if this applies to OpenNI2 which uses a different FreenectDriver than the base ofkKinect.

d

dfamil commented 9 years ago

hi ben

i guess i am confused i thought that glview uses the ibfreenect.dylib.

while openni2 uses ibfreenectDriver.dylib

this is what is wirtten in the ofcNI2 addon

// if (ir.setup(*device)) // only for xtion device (OpenNI2-FreenectDriver issue) // { // ir.setSize(320, 240); // ir.setFps(30); // ir.start(); // }

piedar commented 9 years ago

Ah yes, libfreenect itself supports IR, but OpenNI2-FreenectDriver does not have a way to hook it up. I think I should add it in one of these days.