Skip to content

Screen Capture

Martin Pulec edited this page Dec 4, 2019 · 4 revisions

You can grab computer screen and send it with UltraGrid.

Linux and macOS

In Linux, macOS and currently also Windows there is screen capture card you can use to capture desktop:

uv -t screen 

Those capturers have options to specify at least FPS, see -t screen:help for individual options.

Windows

In current version of UltraGrid, the screen capture can be used similarly as with other platforms described above (although it iternally still uses the mechanism described bellow). For former UltraGrid version please read bellow.

Via DirectShow grabber

You can use DirectShow filter which can be obtained as a part of this package. After installing that, one of DirectShow capture devices will be "screen-capture-recorder". Provided that it is first device (determined by "uv -t dshow:help"), you should be capture with following command:

uv -t dshow:1 

Note: In Windows 7 you may want to disable Aero for better performance (Start->Control panel->Appearance and Personalization->Personalization and select "Windows 7 Basic" instead of "Windows 7").

Customizing video properties

The screen-capture-recorder DirectShow capture filter goes with predefined frame rate 30 and also capped video dimensions. This, however, can be increased by changing values in Windows register (eg. using regedit) – find a key HKEY_CURRENT_USER\Software\screen-capture-recorder (create if unset) and in that, you can add following DWORD subkeys:

  • default_max_fps
  • capture_width
  • capture_height

For more details you can refer here. More parameters that can be set by the regedit can be found in this Ruby source (members of array Settings).

Clone this wiki locally