Re: [Live-devel] Limiting frame rate for a source

2014-04-22 Thread Jan Ekholm
On 22 apr 2014, at 23:20, Ross Finlayson wrote: >> I was hoping that there was some built in rate limitation that only caused >> doGetNextFrame() >> to get called when a new frame was needed. > > No, it's the data source that decides when it delivers data. There are two > possible ways to d

Re: [Live-devel] Limiting frame rate for a source

2014-04-22 Thread Ross Finlayson
> However, > when the client initially connects there is a somewhat strange sequence of > calls. First there are the > expected calls: > > createNewStreamSource() > createNewRTPSink() > > to my OnDemandServerMediaSubsession subclass. These set up a JPEGVideoSource > subclass > and a standard JP

Re: [Live-devel] Limiting frame rate for a source

2014-04-22 Thread Ross Finlayson
> I was hoping that there was some built in rate limitation that only caused > doGetNextFrame() > to get called when a new frame was needed. No, it's the data source that decides when it delivers data. There are two possible ways to do this: If your data source class encodes and delivers a fr

Re: [Live-devel] Limiting frame rate for a source

2014-04-22 Thread Jan Ekholm
On 22 apr 2014, at 19:01, Jan Ekholm wrote: > >>> Also, is there some way to know when all clients have disconnected from a >>> RTSP source >>> so that I could stop grabbing and encoding frames? >> >> This should happen automatically. I.e., when the last concurrent RTSP >> client has disconn

Re: [Live-devel] Limiting frame rate for a source

2014-04-22 Thread Jan Ekholm
On 22 apr 2014, at 18:28, Ross Finlayson wrote: >> I have a USB camera that I can stream as MJPEG using a JPEGVideoSource >> subclass. >> It all works nicely and the frames are streamed and received ok. I would >> however like >> to be able to limit the frame rate of the stream, as it now seem

Re: [Live-devel] Limiting frame rate for a source

2014-04-22 Thread Ross Finlayson
> I have a USB camera that I can stream as MJPEG using a JPEGVideoSource > subclass. > It all works nicely and the frames are streamed and received ok. I would > however like > to be able to limit the frame rate of the stream, as it now seems to be 20+ > fps. In this > case it's way too high as

[Live-devel] Limiting frame rate for a source

2014-04-22 Thread Jan Ekholm
Hi, I have a USB camera that I can stream as MJPEG using a JPEGVideoSource subclass. It all works nicely and the frames are streamed and received ok. I would however like to be able to limit the frame rate of the stream, as it now seems to be 20+ fps. In this case it's way too high as the use c