Chris Pearson - 2012-01-10

Jacopo, what you're describing sounds to me like a multimedia proxy server. I think that would be way beyond the scope of a "Swiss Army knife" tool such as netcat.

Converting the TCP byte stream to a UDP packet stream is the least of the challenges. (Yes, netcat can do that, but it assumes the input is text and converts each '\n' delimited text line to a UDP packet; that wouldn't make sense for RTSP audio/video data.)

The much bigger problem is that RTSP is an HTTP-like request/response control protocol (not a data transport) through which an RTSP client issues commands (OPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, RECORD, TEARDOWN). The client will disconnect if it doesn't receive a valid response to each command. So to do what you're suggesting, netcat would have to implement the server side of the RTSP protocol, which would make it an RTSP (media) server.

The Wikipedia RTSP article explains this in more detail.

-- Chris