Kinect v2, read out data from .xef files

Coderzelf picture Coderzelf · Dec 3, 2014 · Viewed 11k times · Source

I have collected a bunch of videos using Kinect for windows 2 using the kinect studio with file extension .xef.

Now I want to write a program to load data from them and just playback or save as another format, but I have found little resource to doing so, is there any useful resource to do that?

Answer

0epsilon picture 0epsilon · Feb 25, 2015

Actually, you can use the Kinect Studio API to read and play .xef files since the last SDK release (KinectSDK-v2.0_1409). It is just not properly documented yet, but can be integrated into your code. Here is a short description to use it (tried in a VS 2013 C# Solution):

  1. Go to the installation Folder of the KinectStudio (e.g. C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\Tools\KinectStudio­).
  2. Reference "Microsoft.Kinect.Tools.dll" in your project.
  3. Copy "KStudioService.dll" to your Debug or Release folder.
  4. Change BuildProperties to x64 (otherwise you get a BadImageFormatException).

The API is described here.

And here is some sample code from Carmine from the Microsoft Kinect team.