aws-samples / aws-samples/amazon-kinesis-video-streams-consumer-library-for-python

Bottleneck and Stream Delay in get_frames_as_ndarray() Method

Open
#10 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
35
Forks
28
PR merge metrics
No merged PRs in 30d

Description

I am experiencing stream delay due to a bottleneck in the get_frames_as_ndarray() method. This method is currently fetching only one frame at a time, which is causing the delay. Below is the line of code identified as the bottleneck:

ndarray_frames = self.kvs_fragment_processor.get_frames_as_ndarray(fragment_bytes, one_in_frames_ratio)

I need assistance in optimizing this method to enhance performance and reduce the delay.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.