amazon-kinesis-video-streams-parser-library
amazon-kinesis-video-streams-parser-library copied to clipboard
How to merge output from getMediaForFragmentList API into a single MKV file
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.