AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

MJPEG Stream, Artificially Inflate Frame Rate

Forum to discuss AForge.NET Framework, its features, API, how-tos, etc.

MJPEG Stream, Artificially Inflate Frame Rate

Postby airbiscuity » Sun Aug 27, 2017 8:15 am

Hi Everyone,

Just a quick question, is it possible to artificially inflate the frame rate of an MJPEG Stream?

E.g. set a timer for 100ms, if no new frame received, then insert a copy of the last frame received into a new frame of the stream.

Clicking on Videosourceplayer with a very low framerate sometimes ignores the mouse clicks, etc. e.g. when defining multiple point/regions by mouse click.

I'm using a Raspberry PI Camera 2592x1944 pixels on a slow Raspberry Pi Model A+. Frame rate is definitely less than 1 FPS.


Regards,

David
airbiscuity
 
Posts: 1
Joined: Sun Aug 27, 2017 8:08 am

Re: MJPEG Stream, Artificially Inflate Frame Rate

Postby andrew.kirillov » Sun Aug 27, 2017 8:42 am

Hello,

The MJPEGStream class from AForge.NET Framework does not provide functionality to duplicate frames. It only provides frames coming from camera.

Not sure how you handle mouse events, but those should be completely independent of camera and its frame rate. You just work with control's events no mater what it is displaying.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK




Return to AForge.NET Framework