Step 3: Create the Amazon Kinesis Video Streams and Amazon Secrets Manager resources for your IP camera RTSP URLs - Amazon Kinesis Video Streams
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Step 3: Create the Amazon Kinesis Video Streams and Amazon Secrets Manager resources for your IP camera RTSP URLs

Follow these procedures to create the streams and secrets needed in Amazon Secrets Manager. Do this step first, because you need the ARNs of the created resources in the policies.

Create Amazon Kinesis Video Streams

Create Amazon Kinesis Video Streams using the Amazon Web Services Management Console, Amazon CLI, or API.

In the Amazon Web Services Management Console, open the Amazon Kinesis Video Streams console. Choose Video streams in the left navigation.

For more information, see Create a Kinesis video stream.

Create secrets in Amazon Secrets Manager

In the Amazon Web Services Management Console, open the Amazon Secrets Manager console. Choose Secrets in the left navigation.

Verify that the appropriate Region is selected.

  1. Choose Store a new secret.

    1. Step 1: Choose secret type

      • Select Other type of secret.

      • In the Key/Value Pairs section, add a key-value pair.

        Key: MediaURI

        Note

        The key must be MediaURI. This is case-sensitive. If you enter it incorrectly, the application doesn't work.

        Value: Your MediaURI.

        Example: rtsp://<YourCameraIPAddress>:<YourCameraRTSPPort>/YourCameraMediaURI.

    2. Step 2: Configure secret. Give this secret a name. Name it whatever you want.

    3. Step 3: Configure rotation - optional. Choose Next.

    4. Step 4: Review. Choose Store.

  2. If your secret does not display immediately, select the refresh button.

    Choose the name of your secret. Make note of the Secret ARN.

  3. Repeat this process for each MediaURI that you want to stream from.

Note

The Amazon network blocks some public RTSP sources. You cannot access these from within the Amazon EC2 instance or if you are running unmanaged while connected to the VPN.

Important

Your camera RTSP URL should stream video in h.264 format. The fragment duration must not exceed the limit mentioned in Producer SDK limits.

Amazon Kinesis Video Streams Edge Agent only supports video.

Run gst-discoverer-1.0 Your RtspUrl to make sure that your camera is reachable from your device.

Save the ARNs for all of the streams and secrets that you created. You need these for the next step.