The Kinect Studio Clip Conversion tool (ksconvert.exe) is a command-line tool that converts raw data into processed data; it is also used to upgrade raw data from an older format to the current format.
Clips that contain raw data captured directly from the sensor array are not usable by titles, whereas clips that contain processed data are usable by titles. Raw data is stored in an Xbox Raw File (XRF); processed data is stored in an Xbox Event File (XEF).
Here is the syntax for running the tool:
| ksconvert [/?] [/nologo] [/x:address] source-file destination-file |
| Option | Description |
|---|---|
| /? | Displays usage information. |
| /nologo | Suppresses copyright messages. |
| /x:address | Specifies the IP address of the targeted console. Setting this value does not change the default console for the system. |
| /c | Continues conversion in a batch even if an error is encountered while converting a file. |
| /s | Searches the specified directory and all subdirectories for source files for conversion. |
| /compress | Loss-less encoding of the Raw IR data stream. Shrinks size by ~40%. |
| /decompress | Returns a compressed file to its original size and format. |
| /stripColor | When used with conversion or compression, the color stream will not be included in the result file. Removing color can significantly decrease the result file’s size. |
| /pii | Copies metadata marked as ‘personally identifiable information’ to the result file. All other metadata will be copied by default. |
| /LongExposureIR | When converting a raw file, records the long exposure IR stream in the new processed file. If this flag is omitted, then the long exposure IR stream is not recorded in the resultant file. |
| source-file | Specifies a file to convert, either a raw capture (XRF) or a previously processed recording (XEF). This file may be located on the development computer or on the console. To specify a file on the console, prefix the path with "x". For example, "xd:\clips\raw.xrf" specifies a file on the d: drive on the current console. |
| destination-file | Specifies a name for the converted file. This file may be located on the development computer or on the console. To specify a file on the console, prefix the path with "x". For example, "xd:\clips\processed.xef" specifies a file on the d: drive on the current console. |
ksconvert raw.xrf processed.xef
ksconvert /v raw.xrf processed.xef
ksconvert /compress xd:\clips\rawIR.xrf \\myshare\compressedIR.xrf
ksconvert /decompress /stripColor \\myshare\compressedIRColor.xrf \\myshare\RawIRNoColor.xrf
ksconvert xd:\clips\raw.xrf xd:\clips\processed.xef
ksconvert existing.xef processed.xef
ksconvert c:\temp\raw.xrf xd:\clips\processed.xef
ksconvert \\myshare\raw.xrf xd:\clips\processed.xef
KSConvert.exe does two things:
The KSConvert.exe tool is updated periodically to work with the latest version of the NUI pipeline. Therefore, use the tool to convert input data (either raw or processed) to data that matches the latest version of the NUI pipeline. This allows you to preserve your investment in capture gestures. Simply follow this sequence:
Processed data files are significantly smaller than raw data files but they are limited in the amount of NUI data that can be regenerated. Be sure to save your raw data as you can use this tool to update them to the latest data format.
If long-term storage capacity is limited, be sure to compress the raw files before committing them to storage.