{"action":"opened","issue":{"url":"https://api.github.com/repos/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/issues/216","repository_url":"https://api.github.com/repos/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp","labels_url":"https://api.github.com/repos/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/issues/216/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/issues/216/comments","events_url":"https://api.github.com/repos/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/issues/216/events","html_url":"https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/issues/216","id":456897283,"node_id":"MDU6SXNzdWU0NTY4OTcyODM=","number":216,"title":"Problem with RTSP - data isn't sent to kinesis","user":{"login":"ArthurAzrieli","id":20903842,"node_id":"MDQ6VXNlcjIwOTAzODQy","avatar_url":"https://avatars3.githubusercontent.com/u/20903842?v=4","gravatar_id":"","url":"https://api.github.com/users/ArthurAzrieli","html_url":"https://github.com/ArthurAzrieli","followers_url":"https://api.github.com/users/ArthurAzrieli/followers","following_url":"https://api.github.com/users/ArthurAzrieli/following{/other_user}","gists_url":"https://api.github.com/users/ArthurAzrieli/gists{/gist_id}","starred_url":"https://api.github.com/users/ArthurAzrieli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArthurAzrieli/subscriptions","organizations_url":"https://api.github.com/users/ArthurAzrieli/orgs","repos_url":"https://api.github.com/users/ArthurAzrieli/repos","events_url":"https://api.github.com/users/ArthurAzrieli/events{/privacy}","received_events_url":"https://api.github.com/users/ArthurAzrieli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-06-17T12:03:45Z","updated_at":"2019-06-17T12:03:45Z","closed_at":null,"author_association":"NONE","body":"Hi, I have a working stream that I checked in VLC (using [](https://github.com/Ullaakut/RTSPAllTheThings)) and when I run the container it creates a Kinesis stream in AWS but has errors related to connecting with the RTSP stream and doesn't send data to the Kinesis. Help will be appreciated.\r\n\r\n`docker run -it <image_id> <access_key> <secret_key> rtsp://0.0.0.0:8554/live.sdp my_stream`\r\n\r\n[INFO ][2019-06-17 11:50:44] Using region: us-west-2\r\n[INFO ][2019-06-17 11:50:44] Using aws credentials for Kinesis Video Streams\r\n[INFO ][2019-06-17 11:50:44] No session token was detected.\r\n[INFO ][2019-06-17 11:50:44] Initializing curl.\r\n[INFO ][2019-06-17 11:50:44] \r\ncreateKinesisVideoClient(): Creating Kinesis Video Client\r\n[INFO ][2019-06-17 11:50:44] \r\nheapInitialize(): Initializing native heap with limit size 134217728, spill ratio 0% and flags 0x00000001\r\n[INFO ][2019-06-17 11:50:44] \r\nheapInitialize(): Creating AIV heap.\r\n[INFO ][2019-06-17 11:50:44] \r\nheapInitialize(): Heap is initialized OK\r\n[DEBUG][2019-06-17 11:50:44] Refreshing credentials. Force refreshing: 0 Now time is: 1560772244495419546 Expiration: 0\r\n[INFO ][2019-06-17 11:50:44] New credentials expiration is 1560774644\r\n[DEBUG][2019-06-17 11:50:44] createDeviceHandler invoked\r\n[INFO ][2019-06-17 11:50:44] \r\ncreateDeviceResultEvent(): Create device result event.\r\n[DEBUG][2019-06-17 11:50:44] clientReadyHandler invoked\r\n[DEBUG][2019-06-17 11:50:44] Awaiting for the producer to become ready...\r\n[DEBUG][2019-06-17 11:50:44] Kinesis Video producer is Ready.\r\n[DEBUG][2019-06-17 11:50:44] Client is ready\r\n[INFO ][2019-06-17 11:50:44] Creating Kinesis Video Stream my_stream\r\n[INFO ][2019-06-17 11:50:44] \r\ncreateKinesisVideoStream(): Creating Kinesis Video Stream.\r\n[DEBUG][2019-06-17 11:50:44] describeStreamHandler invoked\r\n[DEBUG][2019-06-17 11:50:44] Awaiting for the stream to become ready...\r\n[DEBUG][2019-06-17 11:50:44] Refreshing credentials. Force refreshing: 0 Now time is: 1560772244496444115 Expiration: 0\r\n[WARN ][2019-06-17 11:50:45] HTTP Error 404: Response: {\"Message\":\"The requested stream is not found or not active.\"}\r\nRequest URL: https://kinesisvideo.us-west-2.amazonaws.com/describeStream\r\nRequest Headers:\r\n    Authorization: AWS4-HMAC-SHA256 Credential=<access_key>/20190617/us-west-2/kinesisvideo/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date, Signature=<signature>\r\n    content-type: application/json\r\n    host: kinesisvideo.us-west-2.amazonaws.com\r\n    user-agent: AWS-SDK-KVS/1.7.9 GCC/7.4.0 Linux/3.10.0-514.26.2.el7.x86_64 x86_64\r\n    X-Amz-Date: 20190617T115044Z\r\n[DEBUG][2019-06-17 11:50:45] describeStream response: {\"Message\":\"The requested stream is not found or not active.\"}\r\n[INFO ][2019-06-17 11:50:45] Describe stream did not find the stream my_stream in Kinesis Video (stream will be created)\r\n[INFO ][2019-06-17 11:50:45] \r\ndescribeStreamResultEvent(): Describe stream result event.\r\n[DEBUG][2019-06-17 11:50:45] createStreamHandler invoked\r\n[DEBUG][2019-06-17 11:50:45] createStreamHandler post body: {\"DataRetentionInHours\":2,\"DeviceName\":\"Kinesis_Video_Device\",\"MediaType\":\"video/h264\",\"StreamName\":\"my_stream\"}\r\n\r\n[DEBUG][2019-06-17 11:50:45] Refreshing credentials. Force refreshing: 0 Now time is: 1560772245587613872 Expiration: 0\r\n[DEBUG][2019-06-17 11:50:46] createStream response: {\"StreamARN\":\"arn:aws:kinesisvideo:us-west-2:<aws_account_id>:stream/my_stream/1560772246547\"}\r\n[INFO ][2019-06-17 11:50:46] Created new Kinesis Video stream: arn:aws:kinesisvideo:us-west-2:<aws_account_id>:stream/my_stream/1560772246547\r\n[INFO ][2019-06-17 11:50:46] \r\ncreateStreamResultEvent(): Create stream result event.\r\n[DEBUG][2019-06-17 11:50:46] streamingEndpointHandler invoked\r\n[DEBUG][2019-06-17 11:50:46] Refreshing credentials. Force refreshing: 0 Now time is: 1560772246686713164 Expiration: 0\r\n[DEBUG][2019-06-17 11:50:47] getStreamingEndpoint response: {\"DataEndpoint\":\"https://s-4010bf70.kinesisvideo.us-west-2.amazonaws.com\"}\r\n[INFO ][2019-06-17 11:50:47] streaming to endpoint: https://s-4010bf70.kinesisvideo.us-west-2.amazonaws.com\r\n[INFO ][2019-06-17 11:50:47] \r\ngetStreamingEndpointResultEvent(): Get streaming endpoint result event.\r\n[DEBUG][2019-06-17 11:50:47] streamingTokenHandler invoked\r\n[DEBUG][2019-06-17 11:50:47] Refreshing credentials. Force refreshing: 1 Now time is: 1560772247735296464 Expiration: 1560774644\r\n[INFO ][2019-06-17 11:50:47] New credentials expiration is 1560774647\r\n[INFO ][2019-06-17 11:50:47] \r\ngetStreamingTokenResultEvent(): Get streaming token result event.\r\n[DEBUG][2019-06-17 11:50:47] streamReadyHandler invoked\r\n[DEBUG][2019-06-17 11:50:47] Kinesis Video stream my_stream is Ready.\r\n[DEBUG][2019-06-17 11:50:47] Stream is ready\r\n\r\n(gst-plugin-scanner:13): GStreamer-WARNING **: Failed to load plugin '/opt/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/downloads/local/lib/libfl.so': /opt/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/downloads/local/lib/libfl.so: undefined symbol: yylex\r\n[INFO ][2019-06-17 11:50:49] Streaming from rtsp source\r\nError received from element source: Could not open resource for reading and writing.\r\nDebugging information: gstrtspsrc.c(6775): gst_rtspsrc_retrieve_sdp (): /GstPipeline:rtsp-kinesis-pipeline/GstRTSPSrc:source:\r\nFailed to connect. (Generic error)\r\n[INFO ][2019-06-17 11:50:49] \r\nstopKinesisVideoStream(): Stopping Kinesis Video Stream 00007f0a35e2cf31.\r\n[DEBUG][2019-06-17 11:50:49] Awaiting for the stream my_stream to stop...\r\n[DEBUG][2019-06-17 11:50:49] streamClosedHandler invoked for upload handle: 18446744073709551615\r\n[DEBUG][2019-06-17 11:50:49] Kinesis Video stream my_stream is Closed.\r\n[INFO ][2019-06-17 11:50:49] Freeing Kinesis Video Stream my_stream\r\n[INFO ][2019-06-17 11:50:49] \r\nfreeKinesisVideoStream(): Freeing Kinesis Video stream.\r\n[INFO ][2019-06-17 11:50:49] Attempt to recreate kinesis video stream\r\n[INFO ][2019-06-17 11:50:49] Creating Kinesis Video Stream my_stream\r\n[INFO ][2019-06-17 11:50:49] \r\ncreateKinesisVideoStream(): Creating Kinesis Video Stream.\r\n[DEBUG][2019-06-17 11:50:49] describeStreamHandler invoked\r\n[DEBUG][2019-06-17 11:50:49] Awaiting for the stream to become ready...\r\n[DEBUG][2019-06-17 11:50:49] Refreshing credentials. Force refreshing: 0 Now time is: 1560772249820399493 Expiration: 0\r\n[DEBUG][2019-06-17 11:50:50] describeStream response: {\"StreamInfo\":{\"CreationTime\":1.560772246547E9,\"DataRetentionInHours\":2,\"DeviceName\":\"Kinesis_Video_Device\",\"KmsKeyId\":\"arn:aws:kms:us-west-2:<aws_account_id>:alias/aws/kinesisvideo\",\"MediaType\":\"video/h264\",\"Status\":\"ACTIVE\",\"StreamARN\":\"arn:aws:kinesisvideo:us-west-2:<aws_account_id>:stream/my_stream/1560772246547\",\"StreamName\":\"my_stream\",\"Version\":\"rrHSKy96gvJxp4UqlDCt\"}}\r\n[DEBUG][2019-06-17 11:50:50] Discovered existing Kinesis Video stream: arn:aws:kinesisvideo:us-west-2:<aws_account_id>:stream/my_stream/1560772246547\r\n[DEBUG][2019-06-17 11:50:50] stream arn in stream_info struct: arn:aws:kinesisvideo:us-west-2:<aws_account_id>:stream/my_stream/1560772246547\r\n[INFO ][2019-06-17 11:50:50] \r\ndescribeStreamResultEvent(): Describe stream result event.\r\n[DEBUG][2019-06-17 11:50:50] streamingEndpointHandler invoked\r\n[DEBUG][2019-06-17 11:50:50] Refreshing credentials. Force refreshing: 0 Now time is: 1560772250943514873 Expiration: 0\r\n[DEBUG][2019-06-17 11:50:51] getStreamingEndpoint response: {\"DataEndpoint\":\"https://s-4010bf70.kinesisvideo.us-west-2.amazonaws.com\"}\r\n[INFO ][2019-06-17 11:50:52] streaming to endpoint: https://s-4010bf70.kinesisvideo.us-west-2.amazonaws.com\r\n[INFO ][2019-06-17 11:50:52] \r\ngetStreamingEndpointResultEvent(): Get streaming endpoint result event.\r\n[DEBUG][2019-06-17 11:50:52] streamingTokenHandler invoked\r\n[DEBUG][2019-06-17 11:50:52] Refreshing credentials. Force refreshing: 1 Now time is: 1560772252000060330 Expiration: 1560774647\r\n[INFO ][2019-06-17 11:50:52] New credentials expiration is 1560774652\r\n[INFO ][2019-06-17 11:50:52] \r\ngetStreamingTokenResultEvent(): Get streaming token result event.\r\n[DEBUG][2019-06-17 11:50:52] streamReadyHandler invoked\r\n[DEBUG][2019-06-17 11:50:52] Kinesis Video stream my_stream is Ready.\r\n[INFO ][2019-06-17 11:50:52] Freeing Kinesis Video Stream my_stream\r\n[DEBUG][2019-06-17 11:50:52] Stream is ready\r\n[INFO ][2019-06-17 11:50:52] Streaming from rtsp source\r\nError received from element source: Could not open resource for reading and writing.\r\nDebugging information: gstrtspsrc.c(6775): gst_rtspsrc_retrieve_sdp (): /GstPipeline:rtsp-kinesis-pipeline/GstRTSPSrc:source:\r\nFailed to connect. (Generic error)\r\n[INFO ][2019-06-17 11:50:52] \r\nstopKinesisVideoStream(): Stopping Kinesis Video Stream 00007f0a35e2cf31.\r\n[DEBUG][2019-06-17 11:50:52] Awaiting for the stream my_stream to stop...\r\n[DEBUG][2019-06-17 11:50:52] streamClosedHandler invoked for upload handle: 18446744073709551615\r\n[DEBUG][2019-06-17 11:50:52] Kinesis Video stream my_stream is Closed.\r\n[INFO ][2019-06-17 11:50:52] Freeing Kinesis Video Stream my_stream\r\n[INFO ][2019-06-17 11:50:52] \r\nfreeKinesisVideoStream(): Freeing Kinesis Video stream.\r\n[INFO ][2019-06-17 11:50:52] Attempt to recreate kinesis video stream\r\n[INFO ][2019-06-17 11:50:52] Creating Kinesis Video Stream my_stream\r\n[INFO ][2019-06-17 11:50:52] \r\ncreateKinesisVideoStream(): Creating Kinesis Video Stream.\r\n[DEBUG][2019-06-17 11:50:52] describeStreamHandler invoked\r\n[DEBUG][2019-06-17 11:50:52] Awaiting for the stream to become ready...\r\n[DEBUG][2019-06-17 11:50:52] Refreshing credentials. Force refreshing: 0 Now time is: 1560772252323535076 Expiration: 0\r\n"}}
{"actor":{"display_login":"ArthurAzrieli"}}