Stream video to your Kinesis video stream and view the live stream - Amazon Kinesis Video Streams

Stream video to your Kinesis video stream and view the live stream

  1. To run the sample application, you need the following information:

  2. Run the sample application using the following commands. Replace the placeholders with values for your environment.

    $ export GST_PLUGIN_PATH=Directory Where You Cloned the SDK/amazon-kinesis-video-streams-producer-sdk-cpp/build $ export AWS_DEFAULT_REGION=AWS Region i.e. us-east-1 $ export AWS_ACCESS_KEY_ID=Access Key ID $ export AWS_SECRET_ACCESS_KEY=Secret Access Key $ ./kvs_gstreamer_sample Your Stream Name
  3. If the sample application exits with a library not found error, type the following command to verify that the project is correctly linked to its open-source dependencies:

    $ gst-inspect-1.0 kvssink
  4. Open the Kinesis Video Streams console.

  5. Choose the Stream name of the stream you created.

The video stream that is sent from the Raspberry Pi appears in the console.

When the stream is playing, you can experiment with the following features of the Kinesis Video Streams console:

  • In the Video preview section, use the navigation controls to rewind or fast-forward the stream.

  • In the Stream info section, notice the codec, resolution, and bitrate of the stream. The resolution and bitrate values are set purposefully low on the Raspberry Pi to minimize bandwidth usage for this tutorial. To view the Amazon CloudWatch metrics that are being created for your stream, choose View stream metrics in CloudWatch.

  • Under Data retention period, notice that the video stream is retained for one day. You can edit this value and set it to No data retention, or set a value from one day to several years.

    Under server-side encryption, notice that your data is being encrypted at rest using a key maintained by the AWS Key Management Service (AWS KMS).