[Live-devel] Writing RTSP server

Jasleen Kaur Jasleen at beesys.com
Mon Oct 6 02:49:39 PDT 2014



From: live-devel [live-devel-bounces at ns.live555.com] on behalf of Ross Finlayson [finlayson at live555.com]
Sent: Wednesday, October 01, 2014 11:42 AM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] Writing RTSP server



Our requirement is to using Live555 libraries to stream real time data ( data generated by our software) , using RTSP.


Is it possible using Live555 libraries

Yes, of course.  See
http://www.live555.com/liveMedia/faq.html#liveInput-unicast


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/



Hi Ross Finlayson

As suggested in FAQs,

I have made a class derived from OnDemandServerMediaSubsession and overridden "createNewStreamSource" and "createNewRTPSink" methods.
Made another class (Source) derived from FramedSource.

In the OnDemandServerMediaSubsession derived class , in the "createNewStreamSource" , created the instance of my custom source class.
In the OnDemandServerMediaSubsession  derived class , in the "createNewRTPSink" , created the instance of SimpleRTPSink.

In the testOnDemandRTSPServer.cpp file I added the following code on the pattern of others.

// A WASP stream:

{

char const* streamName = "WaspTest";

//char const* inputFileName = "test.wav";

ServerMediaSession* sms

= ServerMediaSession::createNew(*env, streamName, streamName,

descriptionString);

Boolean convertToULaw = False;

sms->addSubsession(WaspVideoFileServerMediaSubsession::createNew(*env, reuseFirstSource));

rtspServer->addServerMediaSession(sms);

announceStream(rtspServer, sms, streamName, "");

}



wherein WaspVideoFileServerMediaSubsession is our custom OnDemandServerMediaSubsession derived class.







Now my questions are :

1) When will createNewStreamSource and createNewRTPSink be called , and when will the streaming begin?

2) Do I have to write a custom Sink class also?

3) Our data is uncompressed ARGB data, I wish to compress it and then stream it using RTSP, what changes will I have to make ?





Best Regards

Jasleen


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20141006/78024273/attachment.html>


More information about the live-devel mailing list