[Live-devel] [Mirasys] Live555 RTSP server questions

Victor Vitkovskiy victor.vitkovskiy at mirasys.com
Wed Jan 12 00:41:27 PST 2022


Dear Support,

My name is Victor, I am investigating possibility to use Live555 in Mirasys VMS system and I have several questions, could you please help me?


  1.  We need to create RTSP server that will stream data from our system if client connects to it.

Unfortunately, I have not found any callbacks / events related to client connection in RTSPServer class.

Only one way to detect that some client connected that I have found is to inherit from this RTSPServer class and override virtual function createNewClientSession.

Then I can receive RTSPClientSession object that I also need to override to access information inside this class and override handleCmd_PLAY and handleCmd_TEARDOWN functions to track events that client connected successfully or disconnected.

But handleCmd_PLAY doesn’t return anything so I should suppose that client will call this correctly and RTSP streaming will be started.

Is this correct way to use RTSPServer to handle client start / stop streaming?



  1.  There are a lot of examples how to stream files from PC, but I haven’t found any example how I can stream continuously data from memory.

E.g. I get some video stream from IP camera, process it and then I want to stream this over RTSP.

I have found this description how to do this:

                But what about the "testOnDemandRTSPServer" test program (for streaming via unicast)? How can I modify it so that it takes input from a live source instead of from a file?

                But still I can’t cope with this, because the most close example that operates with RTPSink, FramedSource and other is using PassiveServerMediaSubsession, but it is multicast only, we need to use unicast and secured streaming over HTTPS (or SRTP).

Is there any example how to do this?



  1.  Is there any example how to stream some xml metadata? What media source I should use to stream it over RTSP?



  1.  If I understood correctly, it should be possible to add several media sources to RTSP session, e.g. if IP camera has 2 video streams (one is with full resolution and one is with cropped one) can I add those streams to one RTSP session as different tracks?

Do you have any example of this?



I look forward to your answer,

Best regards,
-----------------------------------------
Victor Vitkovskiy
Senior software developer
mailto: victor.vitkovskiy at mirasys.com<mailto:victor.vitkovskiy at mirasys.com>
www.mirasys.com<http://www.mirasys.com/>
[cid:image001.jpg at 01D807A0.08993610]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20220112/6fd32b02/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 27504 bytes
Desc: image001.jpg
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20220112/6fd32b02/attachment-0001.jpg>


More information about the live-devel mailing list