Controlling GStreamer Raspberry Pi HQ Camera Settings from Deepstream

I’m using Deepstream 5.0.1 (Jetpack 4.4.1) to run a custom Yolov4 model on a Nano, with video input from a Raspberry Pi HQ camera.

Everything works great, but I need to control the camera settings - particularly saturation, brightness and contrast.

From the command line, the Gstreamer pipeline that provides the output I need is achieved by:

gst-launch-1.0 nvarguscamerasrc sensor-id=0 saturation=0 !
"video/x-raw(memory:NVMM),width=1920,height=1080,framerate=30/1" !
nvvidconv ! videobalance contrast=1.5 brightness=-0.3 ! nvoverlaysink

Is it possible to apply these settings (saturation=0, contrast=1.5, brightness = -0.3) from within the Deepstream app?

The nvarguscamerasrc plugin is open source. You can add the controls and rebuid/replace the plugin. Please download source code from