> This page is for version 9.2 (default).
> For other versions, use one of these documentation indexes:
> - 9.2 (default): https://docs.nvidia.com/deepstream/9.2/llms.txt
> - Archives: https://docs.nvidia.com/deepstream/archives/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/deepstream/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/deepstream/_mcp/server.

# Gst-nvofvisual

The Gst-nvofvisual plugin is useful for visualizing motion vector data.
The plugin solves the optical flow problem by computing the magnitude and direction of optical flow from a two-channel array of flow vectors. It then visualizes the angle (direction) of flow by hue and the distance (magnitude) of flow by value of Hue Saturation Value (HSV) color representation. The strength of HSV is always set to a maximum of 255 for optimal visibility.

![Gst-nvofvisual](/deepstream/_fern-files/nvidia-deepstream.docs.buildwithfern.com/fe7f798e164e06e2c8c2161c073b3cc23f5e4903aa4c17a6c13173738a376d0f/assets/images/content/DS_plugin_gst-nvofvisual.png)

## Inputs and Outputs

* Inputs

  * GStreamer buffer containing NV12/RGBA frame(s)
  * NvDsOpticalFlowMeta containing the motion vector (MV) data generated by the gst-nvof plugin

* Control parameters

  * gpu-id, selects the GPU ID

* Output

  * GStreamer buffer containing RGBA frame(s)
  * RGBA buffer generated by transforming MV data into color-coded RGBA image reference

## Features

The following table summarizes the features of the plugin.

**Gst-nvofvisual plugin features**

| Feature                 | Description                                                                                          | Release |
| ----------------------- | ---------------------------------------------------------------------------------------------------- | ------- |
| Configure GPU selection | Sets the GPU ID to be used for optical flow visualization operations (valid only for dGPU platforms) | DS 4.0  |

## Gst Properties

The following table describes the Gst properties of the Gst-nvofvisual plugin.

**Gst-nvofvisual plugin gst properties**

| Property | Meaning                                     | Type and Range              | Example Notes |
| -------- | ------------------------------------------- | --------------------------- | ------------- |
| gpu-id   | Device ID of the GPU to be used (dGPU only) | Integer, 0 to 4,294,967,295 | gpu-id=0      |