Recording a video with the Azure Kinect DK failed
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 574
- Forks
- 104
- Avg merge
- 19m
- Merged PRs (30d)
- 1
Description
Hello, with psi and the Azure Kinect DK we are recording videos with a Full HD Resolution and a framerate of 30fps.To get the best result for our task we use the depth mode NFOV_2x2Binned. For videos with less than five minutes everything working well. If we are recording videos that are longer than five minutes, the following exception is thrown:
Array dimensions exceeded supported range.

When a video is recorded with 5fps it is possible to record videos over one hour. The Azure Kinect SDK v1.4.1 is used.
In the output window of Visual Studio, we often get the following messages:
[2021-03-19 07:57:44.989] [error] [t=59332] D:\a\1\s\extern\Azure-Kinect-Sensor-SDK\src\capturesync\capturesync.c (142): replace_sample(). capturesync_drop, releasing capture early due to full queue TS: 194917733 type:Depth
D pid(43060) tid(50888) 08:05:18 EdgeSnapFeature::PostExitSizeMove: WM_TWINVIEW_SHOW_GRIDLINES -> off
Our use case is to record videos with about two hours.
Snippet of the source code:
public void Record()
{
pipeline = CreatePipeline();
var audio = new AudioCapture(pipeline,
new AudioCaptureConfiguration
{
OptimizeForSpeech = true,
Format = WaveFormat.CreatePcm(settings.Audio.Frequency,
settings.Audio.Bits,
settings.Audio.ChannelCount),
DeviceName = settings.Audio.MicName,
});
var azureKinect = new AzureKinectSensor(pipeline, new AzureKinectSensorConfiguration()
{
ColorResolution = settings.Frame.GetKinectResolution(),
CameraFPS = settings.Frame.GetKinectFPS(),
BodyTrackerConfiguration = new AzureKinectBodyTrackerConfiguration()
{
TemporalSmoothing = settings.Frame.TemporalSmoothing,
CpuOnlyMode = settings.Frame.CpuOnly
},
DepthMode = DepthMode.NFOV_2x2Binned
});
var ts = new TimeSpan(0, 0, 0, 1, 0);
var store = PsiStore.Create(pipeline, settings.Name, settings.StoreDirectory);
var depth = azureKinect.DepthImage;
var bodies = azureKinect.Bodies;
var calibrationDeviceInfo = azureKinect.DepthDeviceCalibrationInfo;
var skeletons = bodies.GetSkeletons(depth, calibrationDeviceInfo);
azureKinect.ColorImage.Sample(ts).Write("ColorImage", store);
skeletons.Sample(ts).Write("Skeletons", store);
audio.Write("Audio", store);
}
pipeline.RunAsync(TimeInterval.Infinite, false);
}
Our use case is to record videos with about two hours.
Any help would be great.
Best regards
Helmut
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Record() entry point shown in the issue, including AzureKinectSensor, PsiStore.Create, and pipeline.RunAsync. Reproduce the difference between 30fps and 5fps while reviewing the Azure Kinect SDK 1.4.1 capturesync queue messages. Done means an approximately two-hour recording completes without the array-dimensions exception or capture drops.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp
- Domain
- stream-processing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100