case GST_RTSP_STS_NOT_ACCEPTABLE:
case GST_RTSP_STS_NOT_IMPLEMENTED:
case GST_RTSP_STS_METHOD_NOT_ALLOWED:
GST_WARNING_OBJECT (src, "got NOT IMPLEMENTED, disable method %s", gst_rtsp_method_as_text (method));
src->methods &= ~method;
res = GST_RTSP_OK;
break;
default:
RTSP_SRC_RESPONSE_ERROR (src, response, RESOURCE, READ,"Unhandled error");
break;
add GST_RTSP_STS_OPTION_NOT_SUPPORTED in gstrtspsrc.c
case GST_RTSP_STS_NOT_ACCEPTABLE:
case GST_RTSP_STS_NOT_IMPLEMENTED:
// add in this
case GST_RTSP_STS_OPTION_NOT_SUPPORTED:
case GST_RTSP_STS_METHOD_NOT_ALLOWED:
GST_WARNING_OBJECT (src, "got NOT IMPLEMENTED, disable method %s", gst_rtsp_method_as_text (method));
src->methods &= ~method;
res = GST_RTSP_OK;
break;
default:
RTSP_SRC_RESPONSE_ERROR (src, response, RESOURCE, READ,"Unhandled error");
break;
Convert the error message ‘551’ from GST_STSPS-STD_OPTION_SUPPORTED to ‘501’??
The rtspsrc strictly follows RFC 2326, seems HikVision camera has some non-standard features. The rtspsrc is just a RTSP client, please contact the RTSP server(camera) provider for the reason of “end-of-file” log.