I have run the video-test.c example with WITH_AUTH and WITH_TLS defined.
It run and prints: stream ready at rtsps://127.0.0.1:8554/test .
I run the client with this command:
gst-launch-1.0 -v -m --gst-debug-level=3 rtspsrc location=rtsps://127.0.0.1:8554/test user-id=user user-pw=password tls-validation-flags=generic-error ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink
RTSP works fine when WITH_AUTH and WITH_TLS is not defined in test-video.c
Whether WITH_AUTH and WITH_TLS is defined in test-video.c, then the RTSP client gets the error: "Could not receive message. (System error)". But that is ok, since client must use RTSPS, because server wants to use TLS.
The glib-networking gnutls gnutls-bin is already installed.
I have downloaded GStreamer 1.8.1 source code and compiled it on my machine. After compiling, I have installed it.
According to a text I read somewhere (I don't remember where), before running client and server, I use to export 3 variables like this: