Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while trying to stream a RTSP to Kinesis Video Stream using kvssink #464

Closed
vbbandeira opened this issue Jul 15, 2021 Discussed in #463 · 1 comment
Closed

Error while trying to stream a RTSP to Kinesis Video Stream using kvssink #464

vbbandeira opened this issue Jul 15, 2021 Discussed in #463 · 1 comment
Labels
question Further information is requested

Comments

@vbbandeira
Copy link

vbbandeira commented Jul 15, 2021

Hello there folks,

I'm trying to stream an RTSP to the AWS Kinesis Video Streams, based on your service. I was able to set up the stream, watch it running well in VLC, and so on.

Then, I've started to follow the tutorial on https://github.com/aws-samples/amazon-kinesis-video-streams-demos/tree/master/producer-cpp/docker-rtsp, and after running the kvs_gstreamer_sample, I got an error in docker:

0:00:02.597636000  1035 0x55cfcc491320 INFO        GST_ERROR_SYSTEM gstelement.c:2145:gst_element_message_full_with_details:<source> posting message: Internal data stream error.
Error received from element source: Internal data stream error.
Debugging information: gstrtspsrc.c(5653): gst_rtspsrc_loop (): /GstPipeline:rtsp-kinesis-pipeline/GstRTSPSrc:source:
streaming stopped, reason not-negotiated (-4)

When looking at the container log running rtsp-simple-server, I see the following: it can be found at https://gist.github.com/vbbandeira/2ba03f7b5aa48b972864288554753f42

Note: When I try to make the process to AWS passing a remote rtsp the error above doesn't happen, it appears only when I pass the rtsp aler9

Can you guys please lemme know what is going on there?

Thanks!

@vbbandeira vbbandeira changed the title ERROR: read tcp 172.19.0.2:8554->172.19.0.3:39614: read: connection reset by peer Error while trying to stream a RTSP to Kinesis Video Stream using kvssink Jul 16, 2021
@aler9
Copy link
Member

aler9 commented Oct 4, 2021

I finally got the change to try AWS Kinesis and stream from rtsp-simple-server to Kinesis, and in my case it worked flawlessly. Here are the steps i followed:

  1. in one window, launch rtsp-simple-server

    docker run --rm -it --network=host aler9/rtsp-simple-server
    
  2. in another window, publish a file to rtsp-simple-server

    ffmpeg -re -stream_loop -1 -i sample_1080p_h264.mp4 -c copy -f rtsp rtsp://localhost:8554/mystream
    
  3. Log into AWS, click the user menu, "My Security Credentials", "Access keys", "Create access key", copy key id and access key

  4. launch kvs_gstreamer_sample with the key ID and access key:

    git clone https://github.com/aws-samples/amazon-kinesis-video-streams-demos
    cd amazon-kinesis-video-streams-demos/producer-cpp/docker-rtsp
    docker build -t rtspdockertest .
    docker run -it --network=host rtspdockertest:latest /bin/bash
    AWS_ACCESS_KEY_ID=mykey AWS_SECRET_ACCESS_KEY=myaccess ./kvs_gstreamer_sample teststream rtsp://localhost:8554/mystream
    

Just replicate the above and it will work.

@aler9 aler9 added the question Further information is requested label Oct 4, 2021
@bluenviron bluenviron locked and limited conversation to collaborators Nov 6, 2021
@aler9 aler9 closed this as completed Nov 6, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants