Closed reillydonovan closed 8 years ago
Pngs should be black since they store unmodified data from oni depth channel. When I create a avi file, I apply a histogram and color mappings to have a contrast picture instead of the black one. But sometimes it is desirable to have original depth data and I save them to png. The strange thing is you cannot open avi file. You could try to use different codes --codec=MPEG-4 or --codec=FLV1. Unfortunately, I don't work with Unity and I don't understand what do you mean to have oni in Unity. Do you mean to make a 3D reconstruction of out of oni and then using this geometry to build the 3D scene? To build a geometry out of depth data there is a pointcloud library.
Having the same issue. Both the -img.avi
and -depth.avi
are unplayable. Both files seem to be empty except for minimal information (file header?). Both files are exactly 414 bytes in size. Also, the files are created when the tool is still running, they don't seem to be written in the end, when conversion has finished.
I have tried MPEG-1, MPEG-4 and FLV1 with no difference.
System is Mac OS El Capitan, Open CV 2.4.12 OpenNI 1.5.7.10
Long story short (if you are using homebrew):
brew update && brew upgrade && brew install --with-ffmpeg --without-python --without-openexr --without-numpy --without-eigen homebrew/science/opencv
After that, it should work.
Why: there is an issue with OpenCV. As far as I understood the solution is to use FFMPEG. In case of homebrew of version older than June 4
brew install --with-ffmpeg ...
leads to a error.
It is due to an issue with homebrew. But they fixed it.
Please, let me know whether it worked for you.
Wow, really good catch. I'll try this once I get home tonight.
On Thu, Jun 16, 2016, 19:36 Kirill Lykov notifications@github.com wrote:
Long story short (if you are using homebrew): brew update brew upgrade brew install --with-ffmpeg --without-python --without-openexr --without-numpy --without-eigen homebrew/science/opencv Thank it should work. Why: there is an issue https://github.com/ContinuumIO/anaconda-issues/issues/121 with OpenCV. As far as I understood the solution is to use FFMPEG. In case of homebrew of version older than June 4 brew install --with-ffmpeg ... leads to a error. It is due to an issue https://github.com/Homebrew/homebrew-science/issues/2862 with homebrew. But they fixed it.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/KirillLykov/oni2avi/issues/5#issuecomment-226557566, or mute the thread https://github.com/notifications/unsubscribe/ABEKcJVc_kLuLClca0wfreIKTG_Wq-inks5qMYmCgaJpZM4C_ovt .
Yes, it worked. Thank you so much!
Thanks for this package! I've gotten it to work, kinda, at least it outputs .avi files and .png sequences from a .oni, but the pngs are all blank (black) and the .avis won't open. My .oni file is not corrupt, it plays back thru a player I made in processing and is recognized by other OpenNI samples without corrupt error returns, any suggestions? Mac OS Yosemite OpenNI v.1.5.7.10 Also, by some off chance would you know how to bring a .oni into the Unity game engine and have it render the playback as a point cloud?
Thanks!