1

I am wondering if there is a way to control the start/stop recording feature in Kinect Studio, such that a video is recorded only when a specific event occurs over a long period of time. One idea I had was to find a way to interface to Kinect Studio from Visual Studio, but I cannot seem to find a way to do this.

Thanks for your help in advance.

Sanders
  • 25
  • 3

1 Answers1

2

What you need is KSUtil, a command line tool that ships with Kinect Studio and by which you can record Kinect data programmatically.

You can you a syntax like this:

KSUtil.exe -record <xef_file_path> <duration> –stream depth ir body

More info about KSUtil are available on MSDN.

Vito Gentile
  • 13,336
  • 9
  • 61
  • 96
  • Thank you so much, I will try to use this tool. – Sanders Feb 26 '16 at 17:38
  • Done! And, it worked I can record using the command line. However, since I will need to record programmatically, I am wondering if you know how I can access the command line from Visual Studio (if possible) or if you know a resource that could explain how to do this? Thanks again. – Sanders Feb 26 '16 at 18:36
  • 2
    [`Process.Start`](https://msdn.microsoft.com/en-us/library/system.diagnostics.process.start%28v=vs.110%29.aspx) Method may help you http://stackoverflow.com/questions/13738168/run-command-line-code-programatically – Rafaf Tahsin Feb 26 '16 at 18:51
  • 1
    @RafafTahsin Thanks that helps! – Sanders Mar 09 '16 at 21:29