The gstreamer RTSP server supports basic username-password authentication (example). On the client side, the gstreamer playbin element supports playback from an RTSP server, like this:
playbin uri=rtsp://127.0.0.1:554/test
Is there a way to specify credentials (a username and password) on the client side when connecting to the stream?