aws / amazon-kinesis-video-streams-parser-library

Amazon Kinesis Video Streams parser library is for developers to include in their applications that makes it easy to work with the output of video streams such as retrieving frame-level objects, metadata for fragments, and more.
Apache License 2.0
103 stars 52 forks source link

[Question] Parsing frame along with producer timestamp #116

Closed gai6948 closed 3 years ago

gai6948 commented 3 years ago

I am new to the library and I want to extract frames in the fragment from GetMedia API, along with the producer timestamp associated with the frame, is there a minimal example for that? Or which classes I should look for?

What I want to do with the library is to capture the frame and producer timestamp, and pass them as bytes into another Kinesis Stream which will be processed by a Lambda. I have an implementation in Python but I cannot capture the producer timestamp from the raw MKV, so I am looking at this library.

Thanks in advance.

disa6302 commented 3 years ago

@gai6948 ,

This might be helpful:

https://github.com/aws-samples/amazon-kinesis-video-streams-demos/blob/master/canary/consumer-java/src/main/java/com/amazon/kinesis/video/canary/consumer/CanaryFrameProcessor.java

gai6948 commented 3 years ago

Thanks very much