nagyistoce / simple-openni

Automatically exported from code.google.com/p/simple-openni
0 stars 0 forks source link

Problem with the Recorder #57

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Try to use the recorder according to the example sketch RecorderPlay:

 // store data
kinect.enableRecorder(SimpleOpenNI.RECORD_MEDIUM_FILE, "test.oni");

    // select the recording channels
    kinect.addNodeToRecording(SimpleOpenNI.NODE_DEPTH, 
    SimpleOpenNI.CODEC_16Z_EMB_TABLES);

//reload data
if (kinect.openFileRecording("test.oni") == false){
       println("Cannot open recording");
 }

I cannot reload the file. The openFileRecording returns false everytime?
I tried the example sketch, same error, but not everytime. Sometimes I can open 
the .oni file, but i cannot determine a reason for this?

SimpleOpenNI V.0.27
Windows 8 x64
Processing 1.5.1

Original issue reported on code.google.com by saschabl...@gmail.com on 9 Jan 2013 at 11:08

GoogleCodeExporter commented 9 years ago
Sorry I deleted the predefinded questions:

What steps will reproduce the problem?

Try to use the recorder according to the example sketch RecorderPlay:

 // store data
 kinect.enableRecorder(SimpleOpenNI.RECORD_MEDIUM_FILE, "test.oni");

    // select the recording channels
    kinect.addNodeToRecording(SimpleOpenNI.NODE_DEPTH, 
    SimpleOpenNI.CODEC_16Z_EMB_TABLES);

 //reload data
 if (kinect.openFileRecording("test.oni") == false){
       println("Cannot open recording");
 }

I cannot reload the file. The openFileRecording returns false everytime?
I tried the example sketch, same error, but not everytime. Sometimes I can open 
the .oni file, but i cannot determine a reason for this?

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Windows 8 x64, Processing 1.5.1, SimpleOpenNI 0.27

Please provide any additional information below.

Original comment by saschabl...@gmail.com on 9 Jan 2013 at 4:20

GoogleCodeExporter commented 9 years ago
I also am having this problem.  I am using Windows 7 64 bit, Processing 1.5.1, 
SimpleOpenNI 0.27.  When I use this code:
 http://simple-openni.googlecode.com/svn-history/r211/trunk/SimpleOpenNI/dist/all/SimpleOpenNI/examples/SimpleOpenNI_RecorderPlay/SimpleOpenNI_RecorderPlay.pde 
but substitute an absolute path to the test.oni file when opening the file 
rather than just a relative path.  The program has no problem recording data 
but doesn't play them consistently.  
     Sometimes it will play the test.oni file after recording and sometimes it won't. If I record with two different programs, then swap the test.oni recording files, Sometimes one will play and the other won't or sometimes none will play or sometimes both will play. 
     I am not changing the program besides commenting and uncommenting the record and play sections.  I have no idea why it doesn't consistently work. 

Original comment by wez...@gmail.com on 10 May 2013 at 6:02