Among the fragments I streamed into KVS via its gstreamer plugin, I see that hundreds of fragments - over 55% - have 0 in the field "FragmentLengthInMilliseconds" (fetched via the LIST_FRAGMENTS api). They all have the same timestamp. Another thing I observed is that in these cases, the value of "FragmentSizeInBytes" is almost always 12265.
I wonder why these fragments even exist? Am I missing something in my gstreamer plugin configuration - to get rid of them (if they are useless)? Here is how I configured it in C++:
g_object_set(kvs_sink,
"stream-name", stream_name.c_str(),
"storage-size", 1024,
"retention-period", 168, // in hours
"aws-region", AWS_REGION, NULL);
This is the plugin I'm using https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp