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

How to pipe merged output to process every x seconds

HieronymusLex opened this issue · 1 comments

I've got the KinesisVideoExample working fine and now would like to implement my own use case which involves reading from the stream continuously and uploading the merged output to S3 in ~20 second chunks as I'm reading the stream (effectively flushing the parsed fragments every time it reaches approx. 20 seconds of buffered video). Do you have any advice on how to achieve this in the form of a code sample or pseudo code?

My idea was to have a separate script for uploading to S3, then pipe the 20 second chunk to that (similar to the GStreamer example) however I'm unsure how to do the chunking of fragments into 20 second intervals whilst continuing to read from the stream rather than just closing the output stream when stopping?

I believe this is already covered in this thread (and the ones linked to it) awslabs/amazon-kinesis-video-streams-producer-sdk-java#47 (comment)

Closing as duplicate