Save float32 or float64 type frames (jit.freenect.grab) for later playback

marleynoe's icon

Hello,

For an installation project I would like to record a bit of the video data outputted by jit.freenect.grab in order to simulate the situation while being off-site.

I was wondering how I might be able to store the frames outputted by jit.freenect.grab to disc for later playback. Is it possible to use exportmovie to jit.matrix and then later play it back (but how? aren't videos always char data)? Can jit.qt.movie read and play back such a file properly? Are there any infos or tutorials how to do this, for example?

Thanks,
M

Andrew Benson's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I'm assuming you are talking about a 1-plane float32 matrix (the depth channel). There's a really great trick for this using jit.coerce to force the 1 plane float32 data into a 4-plane char container, which can then be saved as an uncompressed QT movie.

marleynoe's icon

Whoa - for some reason I hadn't noticed this reply. Yes, Andrew, this was exactly what I was talking about. Amazing, thanks a lot - made my day!!