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

How to merge output from getMediaForFragmentList API into a single MKV file

Open prugit1 opened this issue 11 months ago • 0 comments

I want to retrieve media from KVS for a given time range using getMediaForFragmentList API call. I have gone through this code (https://github.com/aws-samples/amazon-kinesis-video-streams-demos/blob/master/parser-java/kvs-archived-media-retrieval-sample/src/main/java/com/amazonaws/kinesisvideo/KinesisVideoRendererArchivedExample.java) which retrieve data from KVS using getMediaForFragmentList and the result will be displayed locally via JFrame.

Is it possible to merge media output from the above getMediaForFragmentList API call into a single MKV file using OutputSegmentMerger and CompositeMkvElementVisitor. Is there any reference for the same ?

Note: Data from KVS might have different tracks and ebml data.

prugit1 avatar Jul 10 '23 04:07 prugit1