Skip to content

define use case for aws kvs edge connector and kinesis video streams producer sdk

0

Hi everybody, I don't understand which is the typical scenario where I should use one instead of the other to stream video data from greengrass to the cloud. In my case the camera source is an rtsp video feed. Thanks in advance!

Also, I have already tried to use the edge connector but when looking the video stream in the aws kvs console, I can see only one frame not a continuous stream. Maybe it is a bug of the greengrass component since there is no update in the last 2 years? If I use only the gst plugin to push video data from the terminal of my gateway the stream instead is working fine. Can someone provide a working resource? This is my configuration for 2 cameras connected to a gateway trying to stream continuously, maybe i am missing something:

HubAsset: Type: "EdgeConnectorForKVSHubAsset" Name: "PpeHubAsset" HubName: "PpeHub" ChildrenCameraSiteWiseAssetName: ["PpeCameraAsset1", "PpeCameraAsset2"]

CameraAsset1: Type: "EdgeConnectorForKVSCameraAsset" Name: "PpeCameraAsset1" CaptureStartTime: "-" CaptureDurationInMinutes: 0 LocalDataRetentionPeriodInMinutes: 1 KinesisVideoStreamName: "ppe-stream-001" LiveStreamingStartTime: "* * * * *" LiveStreamingDurationInMinutes: 9999 RTSPStream: rtsp://user:password@<ip>:8554/front

CameraAsset2: Type: "EdgeConnectorForKVSCameraAsset" Name: "PpeCameraAsset2" CaptureStartTime: "-" CaptureDurationInMinutes: 0 LocalDataRetentionPeriodInMinutes: 1 KinesisVideoStreamName: "ppe-stream-002" LiveStreamingStartTime: "* * * * *" LiveStreamingDurationInMinutes: 9999 RTSPStream: rtsp://user:password@<ip>:8554/top

1 Answer
0

Hi. Edge connector for Kinesis Video Streams integrates with AWS IoT SiteWise and AWS IoT TwinMaker. It's particularly useful if you're building an industrial IoT solution with these services, and want to achieve a single plane of glass view: 2D visualization of industrial data held in SiteWise, possible 3D visualizations, and live video streams. This video runs you through the use of this component: https://www.youtube.com/watch?v=luHvI-ZP0Hw. If you think there's a bug in the connector, please raise an issue in the GitHub repo: https://github.com/awslabs/aws-iot-greengrass-edge-connector-for-kinesis-video-stream

If you don't want to use SiteWise and TwinMaker, and just want to ingest video from RTSP cameras, you have numerous options, including:

  1. Build the KVS Producer streams SDK yourself. This video takes you through it, for the case of an RPi: https://www.youtube.com/watch?v=luHvI-ZP0Hw
  2. Use the pre-built KVS Edge Agent (which you can deploy as a Greengrass component), if your hardware and OS is supported: https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/edge.html
  3. Perhaps use this community component if you want something already packaged as a Greengrass component: https://github.com/awslabs/aws-greengrass-labs-kvs-stream-uploader

If possible for your cameras, you might also consider to run your KVS producer in a cloud gateway: https://aws.amazon.com/blogs/iot/build-a-cloud-gateway-to-ingest-rtsp-video-to-amazon-kinesis-video-streams/

AWS
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.