ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Capture screen activity video from the desktop
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

984 Posts

Posted - Jan 20 2016 :  10:54:18  Show Profile  Reply
Is there any other example on how to capture screen activity video from the desktop except the "Record Desktop to AVI" demo?

xequte

39056 Posts

Posted - Jan 20 2016 :  12:31:46  Show Profile  Reply
Hi

No, that is the only demo we have for that.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

PeterPanino

984 Posts

Posted - Jan 20 2016 :  14:38:58  Show Profile  Reply
Unfortunately, I always get an AV with this demo. Couldn't find the bug yet. Any idea? Tried everything: Other codecs, other timings.

Any idea?
Go to Top of Page

PeterPanino

984 Posts

Posted - Jan 20 2016 :  15:03:31  Show Profile  Reply
Seems I've found the culprits:

• Instead of creating and destroying hiddenView before/after screen recording respectively, put the hiddenView on the form at design time. Can also be invisible.

• In the Timer event handler place a call to Application.ProcessMessages;

Now it works. The only issue now is: The recorded screen video runs too fast. I've set the Timer to 40 ms and and rate in CreateAVIFile to 25, which should give real-time, or am I wrong?
Go to Top of Page

xequte

39056 Posts

Posted - Jan 20 2016 :  17:09:04  Show Profile  Reply
Hi Peter

Here is the latest version of the demo:
attach/xequte/201612017720_DesktopToAvi2.zip
13.59 KB

The two changes you mention should not be necessary and I cannot reproduce them. What is the nature of the crash you encounter?

Regarding the timing issue, do other compressors give the same result?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

PeterPanino

984 Posts

Posted - Jan 21 2016 :  02:57:26  Show Profile  Reply
Thanks Nigel, this demo does not crash anymore. However, how can I get a REAL-TIME screen recording?

• When I set the rate value in CreateAVIFile to 1, then the playback is not fluent (= 1 frame per second).

• When I set the rate value in CreateAVIFile to 10, then the playback is too fast.

• When I set the rate value in CreateAVIFile to 5, then the playback is both not fluent and too fast.
Go to Top of Page

PeterPanino

984 Posts

Posted - Jan 21 2016 :  04:08:49  Show Profile  Reply
I've found this: Professional Screen Camera Component v.5.2.3.0 (http://torry.net/authorsmore.php?id=6933) which is freeware with source and the contained compiled demo exe works very well with many options. However I cannot get it to compile in Delphi 10 Seattle: In scHighTimer.pas the compiler complains:

procedure TimeCallBack(uTimerID, uMessage: UINT; dwUser, dw1, dw2: DWORD); stdcall;
begin
  PostMessage(HWND(dwUser), WM_TIMER, uTimerID, 0);
end;

// [dcc32 Error] scHighTimer.pas(344): E2010 Incompatible types: 'NativeUInt' and 'Cardinal':
FTimerID := TimeSetEvent(FInterval, FInterval, TimeCallBack, FWindowHandle, TIME_PERIODIC);
Go to Top of Page

xequte

39056 Posts

Posted - Jan 21 2016 :  16:17:22  Show Profile  Reply
You'll probably get better advice on this on StackOverflow.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

PeterPanino

984 Posts

Posted - Jan 21 2016 :  18:25:02  Show Profile  Reply
Thanks, meanwhile I've solved the problem and installed the component.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: