I recorded a .rssdk file using the Raw Streams example and am trying to programmatically read the data using the SDK. I recorded several files at various resolutions, framerates, and formats with the color stream only (depth, ir, left, right, all disabled). The files load fine in Clip Editor and I can export them through the interface to a directory of PNGs.
However, I can't seem to read it using the SDK. I followed the sample here: https://software.intel.com/en-us/blogs/2015/10/15/how-to-record-and-playback-streaming-sequences-in-intel-realsense-sdk
I can confirm that SetFileName succeeds: if I give it an invalid filename, it correctly returns PXC_STATUS_FILE_READ_FAILED. sm->EnableStream also succeeds with PXC_STATUS_NO_ERROR. However, no matter what I do, sm->Init() fails with PXC_STATUS_ITEM_UNAVAILABLE.
I tried various combinations of sm->QueryCaptureManager()->SetRealtime(true / false) and ->SetPause(true / false) without any success.
I can further confirm that sm->QueryCaptureManager()->QueryNumberOfFrames() works correctly - returning the correct number of frames.
Surprisingly, even though sm->Init() fails, sm->QueryCaptureManager()->QueryImageSize(PXCCapture::StreamType::STREAM_TYPE_COLOR) returns the correct image size (correctly varying with which filename I pass in).
What am I doing wrong?