-
Notifications
You must be signed in to change notification settings - Fork 330
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
black screen on kinesis video stream #41
Comments
@VincTric could you please attach the logs so we can see what's going on. It's quite possible that there are other issues preventing the streaming - for example auth/gstreamer pipeline creation/etc.. It's hard to say what's going on without the logs. In order to help you with the parameters, it would be great if you could describe your scenario - what are you trying to accomplish after you've ingested the stream - this will help with fine tuning the parameters for your application. The sample application uses default values which might not be the most optimal for your scenario. |
@MushMal attached you can find the logs you requested. The SRICAM log is referred to the black screen issue, the DLINK log (model DCS-942L, 640px, rtsp, h.264) is referred to another ipcam by which I'm able to view the video on aws but sometimes gives me error. At the moment my intention is only to send a video in real time on aws, and then be able to watch that video on remote devices. log kinesis video stream SRICAM SP012.txt |
@ VincTric can you please provide the model for SRICAM camera and its supported RTSP stream formats? Thanks. |
@VincTric the first log referring to SRICAM has a very short section and in that section I see that the SDK is able to establish the connection and the GStreamer is initialized properly and moved to "PLAYING" state. I see the frames are being produced and are being streamed. We get BUFFERING/RECEIVED/PERSISTED ACKs from the service - all good. I am not sure whether there are errors encountered later - could you please include longer snippet of log? If there are no errors in the log then it's possible that the camera doesn't produce proper H264 elementary stream or it's in a different format (separate NAL adaptation flags should be used) - same for Codec Private Data bits from the elementary stream. Please include the make/model of the device and attach longer logs. The seconds log for DLINK indicates a proper initialization of the SDK and GStreamer, streaming for a while and then we encounter error 0x30000005. This error indicates that the frames timestamp (decoding timestamp) is less than the previous frames timestamp + frame duration. The sample application uses 20ms frame durations. In your case, your camera pipeline is not stable and produces jitter. As a result, the case where it fails the dts of the previous frame is 31091134154 and the dts of the frame that fails is 31109001781 which is around 17ms later. Here are suggestions to try:
|
@MushMal I changed the duration in the code as you suggested, but nothing, the result is always the same: a black screen; as you can see, from the log files and screenshot it seems that the stream arrive to kinesis video stream object, but the result is however a black view (see attached screenshot). Thanks for your help. |
@unicornss the cam model is SRICAM SP012, it supports rtsp stream, its parameters are: Thanks. |
I have the same problem |
@alopezbnt Are you also using the SRICAM SP012 camera? Could you provide the logs and screen shot of the console ... in the scenario posted by @VincTric , the logs show the stream is sent to KVS but not viewable in the console. Just wanted to see if you are also seeing the same issue with this camera. |
@VincTric @alopezbnt A partial list of cameras where we have seen working consistently in our tests (successfully streaming continuously for months) are:
Thanks |
Folks, is there any update on this issue? I am eager to learn and help. If we are OK then could I ask you to close the issue please? |
Closing this issue for now as the RTSP stream from DLink DCS and other list of cameras are consistently available for streaming. If specific support is required for SRICAM model please reopen. Thanks |
I have the same issue using the android sdk with a LG V20, android 7.0. BackFacing camera, codec: h264, and 320x240 resolution. The stream will work 1 time out of ten. This is what my Android studio loogs look like V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@93cec5b |
Hi all,
i'm using a Sricam SP012 ipcam (720px, rtsp, h.264) to view its live stream on a kinesis video stream, but even if the application provided in the sdk seems to run correctly i don't see the video in the kinesis video stream preview, only a "live black screen".
I run this:
./kinesis_video_gstreamer_sample_rtsp_app rtsp://:>password>@:554/onvif1 <stream_name>
Any ideas about this issue? Maybe i must change some parameter in the code inside kinesis_video_gstreamer_sample_rtsp_app.cpp file? For example in this stream definition:
auto stream_definition = make_unique(stream_name,
hours(2),
&tags,
"",
STREAMING_TYPE_REALTIME,
"video/h264",
milliseconds::zero(),
seconds(2),
milliseconds(1),
true,
true,
false,
true,
true,
true,
0,
30,
4 * 1024 * 1024,
seconds(120),
seconds(40),
seconds(30),
"V_MPEG4/ISO/AVC",
"kinesis_video",
nullptr,
0);
Thanks.
The text was updated successfully, but these errors were encountered: