amazon-kinesis-video-streams-parser-library icon indicating copy to clipboard operation
amazon-kinesis-video-streams-parser-library copied to clipboard

ERROR com.amazonaws.kinesisvideo.java.client.KinesisVideoJavaClientFactory - [PIC] platform-utils - timerQueueExecutor(): operation returned status code: 0x5200008a

Open PoojaR161 opened this issue 10 months ago • 0 comments

Hello,

I am having trouble in getting the recognized labelled video when I run the KinesisVideoRekognitionLambdaExample.java, from https://github.com/aws/amazon-kinesis-video-streams-parser-library/blob/master/src/main/java/com/amazonaws/kinesisvideo/parser/examples/lambda/KinesisVideoRekognitionLambdaExample.java

I followed the readme instructions and fortunately I got the new video stream in Kinesis Video Streams with bounding box, but there is an error I am getting in cloudwatch as mentioned below. And the bounding box is labelled as 'not recognised' (attached the screenshot). I wonder what is the issue, please help me regarding this.

Cloudwatch error: 19:37:30.565 [Thread-33191] ERROR com.amazonaws.kinesisvideo.java.client.KinesisVideoJavaClientFactory - [PIC] KinesisVideoClient - checkIntermittentProducerCallback(): operation returned status code: 0x5200008a 19:37:30.565 [Thread-33192] ERROR com.amazonaws.kinesisvideo.java.client.KinesisVideoJavaClientFactory - [PIC] platform-utils - timerQueueExecutor(): operation returned status code: 0x5200008a

The screenshot: Screenshot

The README instructions for reference:

KinesisVideoRekognitionLambdaExample

KinesisVideoRekognitionLambdaExample decodes H264 frames, overlaps bounding boxes, encodes to H264 frames again and ingests them into a new Kinesis Video streams using Kinesis Video Producer SDK. To run the sample follow the below steps:

  • Run mvn package from 'amazon-kinesis-video-streams-parser-library' folder. Upload './target/amazon-kinesis-video-streams-parser-library-$VERSION-shaded.jar' file to a S3 bucket.
  • Note the S3 bucket and key name.
  • Find the file LambdaExampleCFnTemplate.yml in the github package.
  • Goto AWS CloudFormation console and create stack using above template, follow the description to the input parameters.
  • Now start the producer to ingest data into Kinesis Video Streams for which the Rekognition stream processor is configured.
  • Lambda will be triggered as soon as the Rekognition stream processor starts emitting records in Kinesis Data Streams. Lambda will also create a new Kinesis Video streams with the input stream name + 'Rekognized' suffix and ingest frames overlapped with bounding boxes which should be viewable in Kinesis Video Streams console.
  • To troubleshoot any issues, use Monitoring tab in lambda and click 'View logs in Cloudwatch'.
  • NOTE: As this lambda executes resource intense decoding and encoding (using Jcodec which is not optimal https://github.com/jcodec/jcodec#performance--quality-considerations), the new Kinesis Video stream might be delayed significantly.

PoojaR161 avatar Sep 04 '23 08:09 PoojaR161