Amazon Kinesis Video Streams | Publishing data to streams Flashcards

1
Q

How do I think about latency in Amazon Kinesis Video Streams?

Publishing data to streams

Amazon Kinesis Video Streams | Media Services

A

There are four key contributors to latency in an end-to-end media data flow.

Time spent in the device’s hardware media pipeline: This pipeline can comprise of the image sensor and any hardware encoders as appropriate. In theory, this is can be as little as a single frame duration. In practice it rarely is. All encoders in order to work effectively for media encoding (compression) will accumulate several frames to construct a fragment. This process and any corresponding motion compensation algorithms will add anywhere from one second to several seconds of latency on the device before the data is packaged for transmission.

Latency incurred on actual data transmission on the internet: The quality of the network throughput and latency can vary significantly based on where the producing device is located.

Latency added by the Kinesis Video Streams as it receives data from the producer device: The incoming data is made available immediately on the GetMedia API operation for any consuming application. If you choose to retain data, then Kinesis Video Streams will ensure that the data is encrypted using AWS Key Management Service (AWS KMS) and generate a time-based index on the individual fragments in the video stream. When you access this retained data using the GetMediaforFragmentList API, Kinesis Video Streams fetches the fragments from durable storage, decrypt the data, and make it available for the consuming application.

Time latency on data transmission back to the consumer: There can be consuming devices on the internet or other AWS regions that request the media data. The quality of the network throughput and latency can vary significantly based on where the consuming device is located.

Finally the Kinesis Video Streams management console fetches the supported H.264 media type, trans-packages it for various browsers, and allows you to playback streams for development or test purposes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do I publish data to my Kinesis video stream?

Publishing data to streams

Amazon Kinesis Video Streams | Media Services

A

You can publish media data to a Kinesis video stream via the PutMedia operation, or use the Kinesis Video Streams Producer SDKs in Java, C++, or Android. If you choose to use the PutMedia operation directly, you will be responsible for packaging the media stream according to the Kinesis Video Streams data specification, handle the stream creation, token rotation, and other actions necessary for reliable streaming of media data to the AWS cloud. We recommend using the Producer SDKs to make these tasks simpler and get started faster.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the Kinesis Video Streams PutMedia operation?

Publishing data to streams

Amazon Kinesis Video Streams | Media Services

A

Kinesis Video Streams provides a PutMedia API to write media data to a Kinesis video stream. In a PutMedia request, the producer sends a stream of media fragments. As fragments arrive, Kinesis Video Streams assigns a unique fragment number, in increasing order. It also stores producer-side and server-side time stamps for each fragment, as Kinesis Video Streams-specific metadata.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the Kinesis Video Streams Producer SDK?

Publishing data to streams

Amazon Kinesis Video Streams | Media Services

A

The Amazon Kinesis Video Streams Producer SDK are a set of easy-to-use and highly configurable libraries that you can install and customize for your specific producers. The SDK makes it easy to build an on-device application that securely connects to a video stream, and reliably publishes video and other media data to Kinesis Video Streams. It takes care of all the underlying tasks required to package the frames and fragments generated by the device’s media pipeline. The SDK also handles stream creation, token rotation for secure and uninterrupted streaming, processing acknowledgements returned by Kinesis Video Streams, and other tasks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In which programming platforms is the Kinesis Video Streams Producer SDK available?

Publishing data to streams

Amazon Kinesis Video Streams | Media Services

A

Kinesis Video Streams Producer SDK’s core is built in C, so it is efficient and portable to a variety of hardware platforms. Most developers will prefer to use the C++ or Java versions of the Kinesis Video Streams producer SDK. There is also an Android version of the producer SDK for mobile app developers who want to stream video data from Android devices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly