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
When Recording RVCamera.onNewImage Event Always Set at 21.5 FramePerSecond
-
- Posts: 9
- Joined: Wed Jan 04, 2017 10:55 pm
When Recording RVCamera.onNewImage Event Always Set at 21.5 FramePerSecond
- Attachments
-
- TestRVMedia2.zip
- (183.5 KiB) Downloaded 1705 times
-
- Posts: 9
- Joined: Wed Jan 04, 2017 10:55 pm
Re: When Recording RVCamera.onNewImage Event Always Set at 21.5 FramePerSecond
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
Cheers,
John Sigoloff
-
- Site Admin
- Posts: 17521
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: When Recording RVCamera.onNewImage Event Always Set at 21.5 FramePerSecond
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.
We will test this problem in the next week, sorry for the delay.
-
- Posts: 9
- Joined: Wed Jan 04, 2017 10:55 pm
Re: When Recording RVCamera.onNewImage Event Always Set at 21.5 FramePerSecond
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.
Thanks in advance.
-
- Site Admin
- Posts: 17521
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: When Recording RVCamera.onNewImage Event Always Set at 21.5 FramePerSecond
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.