[FFmpeg-soc] [RFC] rtsp http tunneling implementation

Josh Allmann joshua.allmann at gmail.com
Sat May 29 08:28:44 CEST 2010


Since RTSP over HTTP basically involves a few http request-replies and
base64-encoding RTSP into a HTTP POST, I have the following thoughts:

-Add HTTP as a lower transport mechanism in rtsp.c

To do this we need to signal to http.c to add the "x-sessioncookie"
header when it is required. I was thinking of adding a new field to
HTTPContext for this, and setting it via a flag passed to http_open
(eg, URL_WRONLY | URL_RTSP ).

bikeshed: There is some weirdness in the spec, eg it mandates HTTP/1.0
but uses 1.1-specific headers such as cache-control (albeit
optionally). Adding configurable http/1.{0,1} to http.c seems more
trouble than it's worth (we send out 1.1 requests at present) -- feng
handles 1.1 requests fine. Haven't tried DSS though.

Let me know what you think, especially if there is a better way.

Josh


More information about the FFmpeg-soc mailing list