When Recording RVCamera.onNewImage Event Always Set at 21.5 FramePerSecond

New product: VCL components for displaying and controlling IP cameras, webcams, video conferencing, video chats
Post Reply
john_siggy@yahoo.com
Posts: 9
Joined: Wed Jan 04, 2017 10:55 pm

When Recording RVCamera.onNewImage Event Always Set at 21.5 FramePerSecond

Post by john_siggy@yahoo.com » Sat Mar 24, 2018 5:07 pm

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 58 times

john_siggy@yahoo.com
Posts: 9
Joined: Wed Jan 04, 2017 10:55 pm

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

Post by john_siggy@yahoo.com » Sat Mar 31, 2018 3:22 pm

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: 14120
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 » Sat Mar 31, 2018 5:04 pm

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.

john_siggy@yahoo.com
Posts: 9
Joined: Wed Jan 04, 2017 10:55 pm

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

Post by john_siggy@yahoo.com » Sun Apr 01, 2018 10:36 pm

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: 14120
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 » Mon Apr 02, 2018 3:36 pm

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