I'm writing a server application in C++ that needs to talk to an RTSP server.
Clients will connect to my server application and my application will talk to the RTSP server telling it "Send RTP stream X from your port A to client port B on IP 1.2.3.4 using H.264 encoding".
I started to look for an RTSP tutorial, but most examples just involve a client requesting a URI like rtsp://example.com/media.mp4. I also looked at RFC 2326, but found it quite hard to digest.
Does anybody know a good RTSP tutorial or book ? Maybe some sample code solving a similar problem or a C++ library that implements RTSP ?
Unless you have a private API i'm not aware of to control the RTSP server, you can't do what you are asking. What you could do is ask the RTSP server to send to your server the specified stream and forward it to the client. To comnunicate easily with an rtsp server, you can use gstreamer : http://gstreamer.freedesktop.org/