-
I'm using the producer library in a Docker container to stream from RTSP source. The RTSP source is Amcrest cameras (model # AMNV20M8-4B-B). I'm using the following startup script to trigger the stream.
There are 2 issues. It tries to receive UDP packets for 5 seconds and then switches to TCP. On my Mac, I have switched off firewall to ensure that's not a problem. After it switches to TCP it gives warnings about could not transform video/x-h264 and eventually fails with internal data stream error. Below are the logs after the pipeline starts playing.
|
Beta Was this translation helpful? Give feedback.
Replies: 33 comments
-
Update: I tried a public RTSP url and it does not work either. rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov |
Beta Was this translation helpful? Give feedback.
-
Came here looking for a solution for the same issue |
Beta Was this translation helpful? Give feedback.
-
Hi, can you add
Then send us the log? |
Beta Was this translation helpful? Give feedback.
-
Please find the attached logs with debug level 4. |
Beta Was this translation helpful? Give feedback.
-
instead of |
Beta Was this translation helpful? Give feedback.
-
No difference if I changed However, if I remove the entire |
Beta Was this translation helpful? Give feedback.
-
can you try this pipeline?
|
Beta Was this translation helpful? Give feedback.
-
Adding |
Beta Was this translation helpful? Give feedback.
-
After some more testing, I found one more issue. After about 4 minutes viewing the live camera I get an error
|
Beta Was this translation helpful? Give feedback.
-
Please find the attached logs with |
Beta Was this translation helpful? Give feedback.
-
@msjoshi looking at the logs I see the following:
Closer to the end the following error is returned from the backend. I am still not sure yet why the media pipeline issues a frame timecode that's less. There is very little in the GST logs. Needs more investigation. |
Beta Was this translation helpful? Give feedback.
-
The issue is that the frame rate is not stable, can you try adding frame rate setting in the capsfilter like this
Also, check your camera settings to make sure there is nothing making the frame rate unstable. |
Beta Was this translation helpful? Give feedback.
-
Adding the frame rate in caps filter did not work. It fails instantly. See the logs below.
|
Beta Was this translation helpful? Give feedback.
-
Looks more like a network issue |
Beta Was this translation helpful? Give feedback.
-
The below works without frame rate caps filter. Randomly, I get the
|
Beta Was this translation helpful? Give feedback.
-
@unicornss I see a My latest log shows the result when using |
Beta Was this translation helpful? Give feedback.
-
Hi @msjoshi Sorry for the incorrect label; removed it now. From previous log:
|
Beta Was this translation helpful? Give feedback.
-
Hi @msjoshi , If you dont mind, can you add Thanks |
Beta Was this translation helpful? Give feedback.
-
I emailed the mkv file as requested. |
Beta Was this translation helpful? Give feedback.
-
I sent the mkv file as requested couple weeks ago. Any update? |
Beta Was this translation helpful? Give feedback.
-
can you try this pipeline?
Try to play with rtpjitterbuffer's mode. it can be either none, slave, buffer or synced. |
Beta Was this translation helpful? Give feedback.
-
@msjoshi any update on this issue? |
Beta Was this translation helpful? Give feedback.
-
I'll try it soon and update here. |
Beta Was this translation helpful? Give feedback.
-
@Raghava248 it seems like the issue you are referring to is not related to the issues highlighted in this topic. Do you mind posting this to a new issue? From the error it seems that you are missing h264parse element. Can you describe whether you are using install script and if it succeeds building all the open source dependencies including GStreamer plugins? |
Beta Was this translation helpful? Give feedback.
-
This issue is un-related to the issue you are seeing. Please open a separate issue. By mixing multiple issues we lose track of the original issue. |
Beta Was this translation helpful? Give feedback.
-
I tried different modes in I'm trying to understand why there is such a large difference between KVS metrics for frame rate and I must also mention that ever since I set the protocol in
Notice I'm ready to close this ticket as it has fixed one problem but I do have a latency issue with specific RTSP source. I'll open a new issue so it can be focussed on latency problem. |
Beta Was this translation helpful? Give feedback.
-
@msjoshi while I am not an expert in the rtsp gstreamer plugins, I believe the reason for the observed frame rate is due to "burstiness" of the media pipeline. The KVS core calculates the metrics by adding some "inertia" by deploying EMA (Exponential Mean Averaging) which works really well for steady real-time encoder outputs but is thrown off by bursty sources. I believe that fpsdisplaysink smoothes out the source burstiness and this is the reason why you can see the metrics reflecting the observed FPS. |
Beta Was this translation helpful? Give feedback.
-
Resolving this issue for now. Please create a new one as this thread got too long |
Beta Was this translation helpful? Give feedback.
can you try this pipeline?