OpenNI / OpenNI2

OpenNI2
Apache License 2.0
431 stars 895 forks source link

Recording/playing in RGB 888 does not work with Primesense/Xtion Pro #78

Open nh2 opened 10 years ago

nh2 commented 10 years ago

I have an Xtion Pro and also a Primesense camera.

If in NiViewer, I set Device -> Streams -> Depth -> Video Mode -> 640 x 480 and Device -> Streams -> Color -> Video Mode -> 640 x 480 @ 30 (RGB 888), and press s to start recording and after a while x to stop recording, the produced Captured.oni cannot be played back with ./NiViewer Captured.oni.

It hangs at the first frame of the playback, displaying the first depth frame and a completely black color frame.

It works if I switch to YUV and Grayscale, but RGB 888 never works.

Is this supposed to work or do my cameras only support YUV?

nh2 commented 10 years ago

It might also be worth mentioning that all of this works in the OpenNI 1 NiViewer, which doen't let you choose the color format.

KHeresy commented 10 years ago

Confirm this issue in OpenNI 2.3 (develop branch). Have the sample problem with Kinect Sensor.