RTSP to "iphone" restream

Topics: Question
Dec 11, 2014 at 2:24 PM
AFAIK iOS 5 and higher support H.264 protocol(MP4)/TS streaming. But RTSP is not supported. Is it possible to use your components and "restream"(repack) it to H.264 that is usable for iOS(iPhone 4 and newer)?
Dec 11, 2014 at 10:01 PM
You can read a transport stream file and then send each packet over the network if you want, see the TransportStreamReader class to read a .ts file.

You can also do the same with the BaseMediaReader and send each box over the connection one at a time.

I will support reading a TransportStream from the network soon and there will be support in the future to allow for other than Rtsp / Rtp output such as Rtmp or Mpeg TransportStream but that is my last concern as of now, until then you can easily hook up a Http Handler to use the classes I supplied to get the data you need from a file and then provide it over a network connection or write it to a new file. If your TransportStream comes over the network just write to a memory mapped file and then use the included reader on it for now to get what you need.

If you need anything else let me know!
Marked as answer by juliusfriedman on 12/11/2014 at 2:01 PM
Dec 11, 2014 at 10:13 PM
as you are mentioning mpeg, I believe that this is "transcoding". As you are suggesting, I just use entry from TransportStreamReader and resend it via http with correct "application/type" definition and should work?
Dec 11, 2014 at 10:21 PM
Edited Dec 11, 2014 at 10:23 PM
Well it could be considered transcoding the transportation format but it could also be considered muxing.

The important part is that yes, the readers will allow segmented http based download at the current time and with the current api.

If you post your code when your done I will offer my critique and possibly adapt and include it as a sample to show how to steam files over http from a supported container and then later adapt it for seeking which can be done by faking resume support.

I think the only thing missing is the mime mappings which are easy enough to associate or hard code for a single format which I can change when I put the mime mapping in place.

The rtsp server will eventually have support for http based downloading anyway at some point and since this is a generic enough feature it could be added now and used later also.

Hope to hear from you soon with updates!
Marked as answer by juliusfriedman on 12/11/2014 at 2:21 PM