I'm working on a project that requires low latency desktop streaming from a mac to an iOS device over a local WiFi network. After trying unsuccessfully with sending images over network due to the extremely large bandwidth required, I asked a question here, and found that video streaming was much more suitable for my application.
I've read and found the RTSP protocol to be quite suitable for this, and have found a library on the mobile side that seems to receive and display RTSP streams quite well.
The thing is, I still have no idea how to generate a RTSP screen stream. The steps I can currently think of are
- Capture the Mac's desktop and encode it into an mpeg stream.
- Feed the stream into an RTSP server library of some sort.
Is my concept of this correct? Any pointers to where I might start?
FFMpeg is a name I find popping up quite often when dealing with encoding videos and such, but I currently have no idea how to piece all this together, since FFMpeg seems to deal with files, not streams.