Recording colorstream using codes RRS feed

  • Question

  • Hi, I am trying to record a video in Kinect using the code in the link:
    It runs well when I save the Ir, Depth, Body, and BodyIndex streams in the video, but when I save the uncompressed color stream:

    streamCollection.Add(KStudioEventStreamDataTypeIds.UncompressedColor); (1)

    The colorimage recorded can not be played in Kinect Studio, though it surely has been recorded according to the file size.

    when I save the compressed color stream:

    streamCollection.Add(KStudioEventStreamDataTypeIds.CompressedColor); (2)

     it reports an error when it comes to the statement 

    using(KStudioRecording recording=client.CreateRecording(filePath,streamCollection)): (3)

    Value does not fall within the expected range.

    It explains that it reports the error because streamCollection is not in the right input format, and I am sure that it is statement (2) I have used that causes this error. I do not know why streamCollection is not in the right input format when the CompressedColor Stream is added to it. Could anyone give me a hand? Thanks a lot for your help:)!

    Sunday, October 19, 2014 3:32 PM


All replies