If you try to check the URL as a valid RTSP URL, I think this is only a protocol token that changes from http:// to rtsp:// or rtspu:// , and implicitly, the default port is no longer 80, but 554.
For more information on the URL format, see RTSP RFC , Section 3.2 ("RTSP URLs").
However, if you want to know if a RTSP server is "behind" a given RTSP URL, you should actually open a connection to this server, usually using TCP sockets. You can make a βconversationβ simply using code, but I suggest you use some kind of product / library that provides an RTSP stack for Python; I don't know if such a product really exists for Python, but for C / C ++ there are a few things.
source share