[Live-devel] Questions about live555:
Ross Finlayson
finlayson at live555.com
Fri Jan 25 05:47:49 PST 2013
> I am using the Live555 server to stream MJPEG data captured from the device. We derived a class JPEGDeviceSource from JPEGVideSource, and reading the data from sharedbuffer(sent by device) in doGetNextFrame() of JPEGDeviceSource.
>
> Everything works fine for a single RTSP client session, if we open a second RTSP client session the frame rate is reduced by 2 . The GetBuffer call to the Device returns always new frame, so single session is working fine with full frame rate(30fps). If we open one more session then the frame rate is reduced by 2 (15fps).
>
> Once I call the GetBuffer(), I will get the complete frame. Now I want to make sure that this frame data should be available for all the sessions opened with this server. How to achieve this ?
You haven't said anything about your server implementation, but I presume you have implemented your own subclass of "OnDemandServerMediaSubsession".
Your subclass's constructor - when it calls the "OnDemandServerMediaSubsession" constructor - should make sure that the "reuseFirstSource" parameter is "True". You do this because you are streaming from a live source, rather than from a file. Setting "reuseFirstSource" to "True" tells the server to use a single input stream as a data source, regardless of how many clients are currently accessing the server.
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20130125/a4c813af/attachment.html>
More information about the live-devel
mailing list