amazon-kinesis-video-streams-producer-sdk-cpp: on_new_sample() error

I’ve tried to stream an RTSP video from my camera without success. I also tried other sample RTSP urls and I get the same error. The url I tried is rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov and this is the output:


createKinesisVideoClient(): EnterINFO -
createKinesisVideoClient(): Creating Kinesis Video Client
INFO -
heapInitialize(): Initializing native heap with limit size 536870912, spill ratio 0% and flags 0x00000001
INFO -
heapInitialize(): Creating AIV heap.
INFO -
heapInitialize(): Heap is initialized OK
INFO - Refreshing credentials. Force refreshing: 0 Now time is: 1528748797 Expiration: 0
INFO - New credentials expiration is 1528751197
DEBUG - createDeviceHandler invoked
INFO -
createDeviceResultEvent(): Create device result event.
DEBUG - clientReadyHandler invoked
DEBUG - Awaiting for the producer to become ready...
DEBUG - Kinesis Video producer is Ready.
DEBUG - Client is ready
INFO - Creating Kinesis Video Stream front-door-camera
INFO -
createKinesisVideoStream(): Creating Kinesis Video Stream.
DEBUG - describeStreamHandler invoked
DEBUG - Awaiting for the stream to become ready...
INFO - Refreshing credentials. Force refreshing: 0 Now time is: 1528748797 Expiration: 0
DEBUG - describeStream response: {"StreamInfo":{"CreationTime":1.528591028827E9,"DataRetentionInHours":2,"DeviceName":"Kinesis_Video_Device","KmsKeyId":"arn:aws:kms:us-west-2:857745839647:alias/aws/kinesisvideo","MediaType":"video/h264","Status":"ACTIVE","StreamARN":"arn:aws:kinesisvideo:us-west-2:857745839647:stream/front-door-camera/1528591028827","StreamName":"front-door-camera","Version":"UGTgyEZaXYlqCGQvRdeU"}}
INFO - Discovered existing Kinesis Video stream: arn:aws:kinesisvideo:us-west-2:857745839647:stream/front-door-camera/1528591028827
INFO - stream arn in stream_info struct: arn:aws:kinesisvideo:us-west-2:857745839647:stream/front-door-camera/1528591028827
INFO -
describeStreamResultEvent(): Describe stream result event.
DEBUG - streamingEndpointHandler invoked
INFO - Refreshing credentials. Force refreshing: 0 Now time is: 1528748798 Expiration: 0
DEBUG - getStreamingEndpoint response: {"DataEndpoint":"https://s-4010bf70.kinesisvideo.us-west-2.amazonaws.com"}
INFO - streaming to endpoint: https://s-4010bf70.kinesisvideo.us-west-2.amazonaws.com
INFO -
getStreamingEndpointResultEvent(): Get streaming endpoint result event.
DEBUG - streamingTokenHandler invoked
INFO - Refreshing credentials. Force refreshing: 1 Now time is: 1528748798 Expiration: 1528751197
INFO - New credentials expiration is 1528751198
INFO -
getStreamingTokenResultEvent(): Get streaming token result event.
DEBUG - streamReadyHandler invoked
DEBUG - Kinesis Video stream front-door-camera is Ready.
DEBUG - Stream is ready
DEBUG - Pipeline OK
DEBUG - rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov
DEBUG - appsink configured
DEBUG - Pipeline built, elements *NOT* yet linked
DEBUG - Pipeline playing
New RTSP source found: recv_rtp_src_0_150577551_96
New RTSP source found: recv_rtp_src_1_68827483_97
Source link FAILED
Source linked.
INFO -
kinesisVideoStreamFormatChanged(): Stream format changed.
ERROR -
on_new_sample(): kinesis_video_flags=1 pts=605968510 dts=605968510

DEBUG - putStreamHandler invoked
DEBUG - Created a new PutMedia request with stream upload handle: 0
INFO -
putStreamResultEvent(): Put stream result event.
INFO - Creating new connection for Kinesis Video stream: front-door-camera
INFO - Refreshing credentials. Force refreshing: 0 Now time is: 1528748799 Expiration: 0
INFO -
getKinesisVideoMetrics(): Get the memory metrics size.
INFO -
getKinesisVideoStreamMetrics(): Get stream metrics for Stream 00007f94da8ee66e.
DEBUG - Kinesis Video client and stream metrics
	>> Overall storage size: 536870912
	>> Available storage size: 536869760
	>> Allocated storage size: 1152
	>> Total view allocation size: 144072
	>> Total streams frame rate: 30
	>> Total streams transfer rate: 4194304
	>> Current view duration: 200000
	>> Overall view duration: 200000
	>> Current view size: 1112
	>> Overall view size: 1112
	>> Current frame rate: 30
	>> Current transfer rate: 4194304
ERROR -
on_new_sample(): kinesis_video_flags=0 pts=647968510 dts=647968510

ERROR -
on_new_sample(): kinesis_video_flags=0 pts=688968510 dts=688968510

ERROR -
on_new_sample(): kinesis_video_flags=0 pts=730968510 dts=730968510

ERROR -
on_new_sample(): kinesis_video_flags=0 pts=772968510 dts=772968510

DEBUG - Curl post header write function returned:HTTP/1.1 100 Continue

DEBUG - Curl post header write function returned:

DEBUG - Wrote 1340 bytes to Kinesis Video. Upload stream handle: 0
ERROR -
on_new_sample(): kinesis_video_flags=0 pts=813968510 dts=813968510

DEBUG - Wrote 156 bytes to Kinesis Video. Upload stream handle: 0
ERROR -
on_new_sample(): kinesis_video_flags=0 pts=855968510 dts=855968510

DEBUG - Wrote 163 bytes to Kinesis Video. Upload stream handle: 0
ERROR -
on_new_sample(): kinesis_video_flags=0 pts=897968510 dts=897968510

DEBUG - Wrote 157 bytes to Kinesis Video. Upload stream handle: 0
ERROR -
on_new_sample(): kinesis_video_flags=0 pts=938968510 dts=938968510

DEBUG - Wrote 162 bytes to Kinesis Video. Upload stream handle: 0
ERROR -
on_new_sample(): kinesis_video_flags=0 pts=980968510 dts=980968510

DEBUG - Curl post header write function returned:HTTP/1.1 200 OK

DEBUG - Curl post header write function returned:x-amzn-RequestId: beeef72d-6db5-11e8-957d-dd8a783f5ab7

DEBUG - Curl post header write function returned:Content-Type: application/json

DEBUG - Curl post header write function returned:Transfer-Encoding: chunked

DEBUG - Curl post header write function returned:Date: Mon, 11 Jun 2018 20:26:39 GMT

DEBUG - Curl post header write function returned:

DEBUG - Wrote 42 bytes to Kinesis Video. Upload stream handle: 0
INFO - Curl post body write function for stream: front-door-camera and upload handle: 0 returned: {"EventType":"BUFFERING","FragmentTimecode":0,"FragmentNumber":"91343852333181774400852596062858897863980421376"}

DEBUG - fragmentAckReceivedHandler invoked
ERROR -
on_new_sample(): kinesis_video_flags=0 pts=1022968510 dts=1022968510

DEBUG - Wrote 99 bytes to Kinesis Video. Upload stream handle: 0
ERROR -
on_new_sample(): kinesis_video_flags=0 pts=1063968510 dts=1063968510

DEBUG - Wrote 139 bytes to Kinesis Video. Upload stream handle: 0
ERROR -
on_new_sample(): kinesis_video_flags=0 pts=1105968510 dts=1105968510

DEBUG - Wrote 172 bytes to Kinesis Video. Upload stream handle: 0
ERROR -
on_new_sample(): kinesis_video_flags=0 pts=1147968510 dts=1147968510

ERROR -
on_new_sample(): kinesis_video_flags=0 pts=1188968510 dts=1188968510

DEBUG - Wrote 174 bytes to Kinesis Video. Upload stream handle: 0
DEBUG - Wrote 74 bytes to Kinesis Video. Upload stream handle: 0
ERROR -
on_new_sample(): kinesis_video_flags=0 pts=1230968510 dts=1230968510

DEBUG - Wrote 165 bytes to Kinesis Video. Upload stream handle: 0
ERROR -
on_new_sample(): kinesis_video_flags=0 pts=1272968510 dts=1272968510

DEBUG - Wrote 180 bytes to Kinesis Video. Upload stream handle: 0
ERROR -
on_new_sample(): kinesis_video_flags=0 pts=1313968510 dts=1313968510

DEBUG - Wrote 185 bytes to Kinesis Video. Upload stream handle: 0
ERROR -
on_new_sample(): kinesis_video_flags=0 pts=1355968510 dts=1355968510

DEBUG - Wrote 211 bytes to Kinesis Video. Upload stream handle: 0
ERROR -
on_new_sample(): kinesis_video_flags=0 pts=1397968510 dts=1397968510

DEBUG - Wrote 190 bytes to Kinesis Video. Upload stream handle: 0```

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (10 by maintainers)

Most upvoted comments

@roccomuso I suspect you are talking about us-west-2. By default the producer will send stream data into us-west-2 region and it will create a stream for you if the stream didn’t exist. If you want to use Kinesis Video Streams in other regions, please follow this instruction.

optionally, set AWS_DEFAULT_REGION environment variable for the region other than us-west-2.