Skip to content

screen capture and recording with or without cursor

Screen recording

Screen recording is enabled when VideoSource = vs_ScreenRecording. All the preview and recording features of the video capture devices then apply:

ScreenRecordingWithCursor enables or disables the recording of the cursor.

To capture layered windows (e.g. floating or transparent windows), enable the ScreenRecordingLayeredWindows property.

If some areas of the screen are not recorded properly, try enabling or disabling the ScreenRecordingThroughClipboard property.

WMV screen recording compressed with the Windows Media screen codec

When recording in WMV, the following settings automatically use Microsoft's Windows Media screen codec:

VideoGrabber.VideoSource = vs_ScreenRecording
VideoGrabber.RecordingMethod = rm_ASF
VideoGrabber.ASFProfileVersion = apv_ProfileVersion_9
VideoGrabber.ASFVideoQuality = 95
VideoGrabber.StartRecording()

or:

VideoGrabber.VideoSource = vs_ScreenRecording
VideoGrabber.RecordingMethod = rm_ASF
VideoGrabber.ASFProfileVersion = apv_ProfileVersion_9
VideoGrabber.ASFVideoBitRate = 2000000
VideoGrabber.StartRecording()

Note

ASFVideoBitRate and ASFVideoQuality are mutually exclusive: set only one of them, as in each sample above.

When using a .prx profile, select the screen codec in the codec list when creating the profile with WMProEdt.exe.

Specifying the monitor(s) to record

If more than one monitor is available, the number of the monitor to record is specified by the ScreenRecordingMonitor property:

  • to record the default monitor, set ScreenRecordingMonitor = 0 (default value),
  • to record the 2nd monitor, set ScreenRecordingMonitor = 1, and so on.

Recording the extended desktop

Set ScreenRecordingMonitor = -1 to record the whole extended desktop across all the monitors.

Remarks

  • The preview or recording frame rate of the screen display is specified by the FrameRate property. When FrameRate is not set (0), the frame rate is 30 fps, or 10 fps for an ASF recording or ASF network streaming at the default video bit rate (ASFVideoBitRate not set), or for a screen area of 4K or more (3840x2160 pixels or more): a message (OnLog) reports these cases. Set FrameRate to use another frame rate, e.g. FrameRate = 30 for a 4K screen.
  • If frames are dropped when recording a large screen area, lower the frame rate (FrameRate) or the recorded size (ScreenRecordingSizePercent).
  • To record only a part of the screen, specify a cropping area.
  • When ScreenRecordingThroughClipboard is enabled, the clipboard is continuously flushed during preview and recording.