How to implement a tiny RTSP server?
Question
I am implementing a client/server application where video streaming occurs between two computers (in one direction). I would like to have the server publish an SDP file when it starts streaming. The client would then be able to download this SDP file and use it to get the stream. In order to implement this it seems I need to include a RTSP server in my server application.
I am planning to use either libVLC or GStreamer for the client. Both are able to get incoming video streams using the info from an SDP file.
Server-side I don't really know where to start. Can anyone recommend a good C++ library that would allow me to create a small RTSP server?
Solution
Use this LGPL library or for fun, read the RFC and implement :-)
OTHER TIPS
Take a look at this link. Its based on Gstreamer http://www.ip-sense.com/linuxsense/how-to-develop-a-rtsp-server-in-linux-using-gstreamer/
There is an implementation in C# @ http://net7mma.codeplex.com
It should have everything you need including a Client and Server implementation and some additional stuff related to encoding and decoding!
Libcurl's library offers a simple example that can be usefull for the server side.. Take a look at: https://curl.haxx.se/libcurl/c/rtsp.html