title: OpenNI file format (ONI)
body: <p>I need to generate my own ONI files, science depth images in my project are not generated using regular devices such as Kinect. </p>
  
  <p>I checked their github and found out that there are two libraries <a href="https://github.com/OpenNI/OpenNI2" rel="nofollow noreferrer">https://github.com/OpenNI/OpenNI2</a>
  and 
  <a href="https://github.com/OpenNI/OpenNI" rel="nofollow noreferrer">https://github.com/OpenNI/OpenNI</a>. </p>
  
  <p>1- Should I assume that OpenNI2 is the newer version and recommended to be used?</p>
  
  <p>2- As mentioned here "<a href="https://stackoverflow.com/questions/13242885/convert-movie-to-openni-oni-video">Convert Movie to OpenNI *.oni video</a>", in openNI, it is possible to write ONI files, however it seems that this functionality has been removed from the newer version. Is it true?</p>
  
  <p>3- Can VideoWriter (openCV) write ONI files? help please.</p>
  
  <p>Thanks</p>