RVCamera

RVMedia support and discussion (components for displaying and controlling IP cameras, webcams, video conferencing, video chats, recording audio and video files)
Post Reply
opereyrag
Posts: 4
Joined: Wed Mar 25, 2020 2:10 pm

RVCamera

Post by opereyrag »

We are trying the FMX DEMO version with Delphi 10.3.2. We wrote 3 version of the application, VCL/FMX version that works fine, a CONSOLE and a SERVICE version, we are having the following problem with the last two; the RVCamera component does not complete the SearchCamera function if we are in the CONSOLE or SERVICE version, independently of using rvsmWait or rvsmNoWait.
We need to save videos in fixed length (Example 8 minutes files), we have an RVCamera and two RVCamRecorder components, we switch from one Recorder to the other to create the videos, when we switch to the second recorder the video sort of stops for at least 10 seconds and then starts recording again.

Sergey Tkachenko
Site Admin
Posts: 15017
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: RVCamera

Post by Sergey Tkachenko »

Sorry for delay, I only yesterday returned from a hospital.

RVMedia uses threads that call Synchronize method from time to time.
This method works correctly only if the main process calls CheckSyncronize regularly. GUI applications do it themselves, when an application is idle.
But if you use the components in console or DLL, it becomes a problem.

There are workarounds.
The simplest is creating TTimer and call CheckSyncronize in it.
Another solution is assigning WakeMainThread, like it is shown here: https://edn.embarcadero.com/article/32756, at the first part of the article. But you need some class to provide a method for assigning to WakeMainThread, and you need some window (maybe hidden one) to send PostMessage. And I think it does not work in console, because in console the main thread always do something and never idle. Not sure about a service.


As for the second question, does the video stop, or does recording stop?

opereyrag
Posts: 4
Joined: Wed Mar 25, 2020 2:10 pm

Re: RVCamera

Post by opereyrag »

Thanks for the response, and hoping you get well. I will work with the your suggestions and keep you inform. About the recording problem, is there something I can do. We really like your product and the prototypes we made work beautifully so we would like to complete the project.

Sergey Tkachenko
Site Admin
Posts: 15017
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: RVCamera

Post by Sergey Tkachenko »

Please send me a simple sample project reproducing this problem.

opereyrag
Posts: 4
Joined: Wed Mar 25, 2020 2:10 pm

Re: RVCamera

Post by opereyrag »

This project simulates the situation with the Camera and the two recorders. You will press Connect and when the camera is ready press Record and every 1 minute a avi file will be generated, the second one after a couple of second will show some distortions for about 10 seconds.
Attachments
Survillance.zip
(63.67 KiB) Downloaded 2 times

Post Reply