Go to documentation repository
Previous page Next page
You can add the Video capture device object for capturing video from the application window via the FFMPEG driver by creating and configuring the Video capture device object or using the Camera discovery tool. The latter way is preferable.
Using the additional settings, you can set a specific application window as well as the window area and decompression. Currently, the driver supports the following codecs: video capture in the MJPEG (default) format and RGBA/BGRA formats, decompression to MJPEG, MPEG2, YUV422 formats.
To add the Video capture device object for capturing video from the application window via the FFMPEG driver, do the following:
In the IP address field (1), enter any IP address. The driver automatically sets the required address for this model.
Note
When you add a device of this type by creating the Video capture device object, you must specify the address in the IP address field in the format described below (see Additional settings of the FFMPEG device).
You can manually set the address line by including the ffmpeg utility options to it in the IP address field on the settings panel of the Video capture device object. In this case, the address looks in the following way:
gdigrab://"App_name"[:-additionalOptions]
App_name is the name of the application that is displayed in the window title. The name can contain only the Latin characters and digits. If there are any other characters used in the window title, change it using the third-party utilities.
With additionalOptions, you can set a specific area and several other options.
The list of options supported by the ffmpeg library for the gdigrab mode:
Example of the IP address field value with the "additionalOptions" property:
gdigrab://"Calculator":-draw_mouse 1 -show_region 1 -framerate 25 -video_size 640x480 -offset_x 10 -offset_y 10