i cannot get video data from hkvison camera,the uri is so long,as this:
rtsp://xxxxxxxxxx:8604/EUrlxxxxxxxxxxxxzz
eyJwcm90b2NvbCI6InJ0c3AiLCJ0IjoxLCJhIjoiMWVkNGY2NWU1YzY5NGNkOTliZTlhMjhlNDFhNDQxYjV8MHwwfDxzxxx
Is this URI too long, or can’t be parsed so I can’t read the data?
i can get data by using windows vlc media player with this uri
deepstream-app cannot decode h264 rtsp data stream,what can i do?
This seems to be a gstreamer issue only.
Can you reproduce your issue using gst-launch-1.0
?
Just like
gst-launch-1.0 uridecodebin uri=rtsp://your_rtsp_url ! fakesink
Also, does your url include username and password?
Usually you need to escape @
in the URL to %40
thanks! but I found the problem, this uri automatically redirects to another address. Does Deepstream have this redirect? That is, it can be automatically redirected to that address.
This problem is related to the rtspsrc
element, I think it should be fine. The code is here
switch (response->type_data.response.code) {
case GST_RTSP_STS_NOT_FOUND:
RTSP_SRC_RESPONSE_ERROR (src, response, RESOURCE, NOT_FOUND,
"Not found");
break;
case GST_RTSP_STS_UNAUTHORIZED:
RTSP_SRC_RESPONSE_ERROR (src, response, RESOURCE, NOT_AUTHORIZED,
"Unauthorized");
break;
case GST_RTSP_STS_MOVED_PERMANENTLY:
case GST_RTSP_STS_MOVE_TEMPORARILY:
{
gchar *new_location;
GstRTSPLowerTrans transports;
GST_DEBUG_OBJECT (src, "got redirection");
/* if we don't have a Location Header, we must error */
if (gst_rtsp_message_get_header (response, GST_RTSP_HDR_LOCATION,
&new_location, 0) < 0)
break;
system
Closed
October 9, 2024, 2:52am
9
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.