I used the AWS 'starter kit' with CDK, here in Github (https://github.com/aws-samples/cloud-gateway-for-amazon-kinesis-video-streams/tree/main/ec2-cdk-app) to ingest my camera video into Kinesis but, this doesn't work with an rtsp link that use a onvifmode and user and password.
I try to separate user and password and put onvif-mode=true as a shown below:
gst-launch-1.0 -v rtspsrc user-id=$RTSP_USER user-pw=$RTSP_PASS location=$RTSP_URL onvif-mode=true short-header=TRUE
! rtph264depay
! h264parse
! kvssink stream-name=$STREAM_NAME storage-size=128
The stream is ingested into my AWS video stream but the video do not show in the Media Playback. I know this because the monitor area shown the data in graphics.
I tested a rtsp link to another camera without 'onvifmode' and this work but I need that the two modes work.
Here a link example just for tests proposals:
rtsp://xxxxuser:xxxpassword@177.xx.254.66:xxxx/onvif/profile1/media.smp
If anybody want the real user/pass and IP just ask me and we could test them.