Page 1 of 1
When Recording RVCamera.onNewImage Event Always Set at 21.5 FramePerSecond
Posted: Sat Mar 24, 2018 5:07 pm
by john_siggy@yahoo.com
When using the RVCamRecorder component, the connected RVCamera.onNewImage event is always called at 21.5 frames per second regardless of the RVCamera.FramePerSecond setting. The resultant image contains the correct number of frames as specified by RVCamera.FramePerSecond but onNewImage is always called at the same 21.5. frames per second.
Attached please find a simple demo that illustrates the problem.
Cheers,
John
Re: When Recording RVCamera.onNewImage Event Always Set at 21.5 FramePerSecond
Posted: Sat Mar 31, 2018 3:22 pm
by john_siggy@yahoo.com
More Information: I am using DeviceType := rvdtUserData to create video from supplied bitmaps. The problem is when you set framePerSecond > 21. For example, setting FramePerSecond to 30 FPS creates a video file where the images change only 21 times a second so the effective FPS is 21 vs. 30. Images are repeated 9 times/second.
Cheers,
John Sigoloff
Re: When Recording RVCamera.onNewImage Event Always Set at 21.5 FramePerSecond
Posted: Sat Mar 31, 2018 5:04 pm
by Sergey Tkachenko
Probably, processing this event takes too much time, so there is no possibility to call this event more frequently.
We will test this problem in the next week, sorry for the delay.
Re: When Recording RVCamera.onNewImage Event Always Set at 21.5 FramePerSecond
Posted: Sun Apr 01, 2018 10:36 pm
by john_siggy@yahoo.com
Not sure processing this event takes too much time because the onNewImage event is called about 21 FPS no mater the FramePerSecond. I have tried it with FPS = 2, 3 and 15 and onNewImage is still called roughly 21 times per second.
Thanks in advance.
Re: When Recording RVCamera.onNewImage Event Always Set at 21.5 FramePerSecond
Posted: Mon Apr 02, 2018 3:36 pm
by Sergey Tkachenko
We will check this problem later in this week. Currently we are finishing returning Lazarus compatibility. When we are done with it, we will fix this problem.