When Recording RVCamera.onNewImage Event Always Set at 21.5 FramePerSecond

RVMedia support and discussion (components for displaying and controlling IP cameras, webcams, video conferencing, video chats, recording audio and video files)
Post Reply
[email protected]
Posts: 9
Joined: Wed Jan 04, 2017 10:55 pm

When Recording RVCamera.onNewImage Event Always Set at 21.5 FramePerSecond

Post by [email protected] »

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
Attachments
TestRVMedia2.zip
(183.5 KiB) Downloaded 1758 times
[email protected]
Posts: 9
Joined: Wed Jan 04, 2017 10:55 pm

Re: When Recording RVCamera.onNewImage Event Always Set at 21.5 FramePerSecond

Post by [email protected] »

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
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: When Recording RVCamera.onNewImage Event Always Set at 21.5 FramePerSecond

Post 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.
[email protected]
Posts: 9
Joined: Wed Jan 04, 2017 10:55 pm

Re: When Recording RVCamera.onNewImage Event Always Set at 21.5 FramePerSecond

Post by [email protected] »

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.
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: When Recording RVCamera.onNewImage Event Always Set at 21.5 FramePerSecond

Post 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.
Post Reply