[Live-devel] Writing RTSP server
Jasleen Kaur
Jasleen at beesys.com
Mon Oct 6 23:48:43 PDT 2014
From: live-devel [live-devel-bounces at ns.live555.com] on behalf of Jasleen Kaur [Jasleen at beesys.com]
Sent: Monday, October 06, 2014 3:19 PM
To: LIVE555 Streaming Media - development & use
Cc: Bishwaroop Chakravarty
Subject: Re: [Live-devel] Writing RTSP server
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
------------------------------------------------------------------------------------------------------------------------------
Hello Ross
When I tried the published url in VLC , I was able to get the createNewStreamSource and createNewRTPSink calls.
I have started getting calls to doGetNextFrame of the source class.
But in VLC there is an error "VLC is unable to open the MRL 'rtsp://192.168.1.164:8554/WaspTest'. Check the log for details"
and in the server side , the doGetNextFrame calls continue.
What can be the reason of this behaviour ?
Is it something related to the sink class.I have created instance of SimpleRTPSink class in createNewRTPSink call.
Your help would be really appreciated.
Regards
Jasleen
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20141007/e1012302/attachment.html>
More information about the live-devel
mailing list