awslabs / amazon-kinesis-video-streams-producer-sdk-cpp

Amazon Kinesis Video Streams Producer SDK for C++ is for developers to install and customize for their connected camera and other devices to securely stream video, audio, and time-encoded data to Kinesis Video Streams.
Apache License 2.0
373 stars 336 forks source link

[QUESTION] The SDK status code : 0x5200 007d (STATUS_ACK_ERR_FRAMES_MISSING_FOR_TRACK). What is the reason for this error. #680

Closed MatthewDebug closed 3 years ago

MatthewDebug commented 3 years ago

SDK version:2.0.1(25th Jul 2019) When I put the local frame into the KVS SDK buffer, then KVS SDK upload frames to server. Sometimes the following error occurs. streamErrorReportHandler(51): Reproting stream error. Errored time code :16155153340420000, status 0x5200 007d. According to Amazon Kinesis Video Streams Developer Guide. 0x5200 007d : STATUS_ACK_ERR_FRAMES_MISSING_FOR_TRACK Our frames information are as below. trackID = 1:video track 2:audio track KeyFrame = 1:key frame 0:not key frame Size : frame size Index :video/audio frame number FPTS :frame presentation time stamp Uploading! trackID=1,KeyFrame=1,Index=0,Size = 73836,FPTS =16155153340000000 trackID=2,KeyFrame=0,Index=0,Size = 185,FPTS =16198103012560000 trackID=1,KeyFrame=0,Index=1,Size = 4636,FPTS =16155153340420000 trackID=2,KeyFrame=0,Index=1,Size = 185,FPTS =16155153340890000 trackID=1,KeyFrame=0,Index=2,Size = 6384,FPTS =16155153341310000 trackID=1,KeyFrame=0,Index=3,Size = 5276,FPTS =16155153341780000 :

So what the "0x5200 007d : STATUS_ACK_ERR_FRAMES_MISSING_FOR_TRACK" means and what is the cause of this error code. Thanks very much!

hassanctech commented 3 years ago

Please upgrade to release 3.1.1 of the SDK that should solve your problem.

In a nutshell what the error means is when you have multiple tracks if you have 0 frames present in any track at fragment end, you will get this error. Each track must have at least 1 frame.

There were several bugs that were fixed regarding this between the release you're using (almost 2 years old) and 3.1.1, let me know if you get any errors once you upgrade to the latest release.