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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Capture screen activity video from the desktop

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
PeterPanino Posted - Jan 20 2016 : 10:54:18
Is there any other example on how to capture screen activity video from the desktop except the "Record Desktop to AVI" demo?
8   L A T E S T    R E P L I E S    (Newest First)
PeterPanino Posted - Jan 21 2016 : 18:25:02
Thanks, meanwhile I've solved the problem and installed the component.
xequte Posted - Jan 21 2016 : 16:17:22
You'll probably get better advice on this on StackOverflow.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
PeterPanino Posted - Jan 21 2016 : 04:08:49
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);
PeterPanino Posted - Jan 21 2016 : 02:57:26
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.
xequte Posted - Jan 20 2016 : 17:09:04
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
PeterPanino Posted - Jan 20 2016 : 15:03:31
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?
PeterPanino Posted - Jan 20 2016 : 14:38:58
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?
xequte Posted - Jan 20 2016 : 12:31:46
Hi

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


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com