Gst-launch-1.0 nvarguscamerasrc brightness control with imx219 Jetson Nano

Hi

I am using Jetson Nano emmc version with Nvidia development board and a imx219 csi camera to capture images. With the command below, I got very bright images during day time.

gst-launch-1.0 nvarguscamerasrc num-buffers=1 sensor-id=0 silent=false ! “video/x-raw(memory:NVMM), width=(int)3264, height=(int)2464, format=(string)NV12, framerate=(fraction)20/1” ! nvvidconv flip-method=0 ! nvjpegenc ! filesink location=/path/to/images.jpg

Just wondering if there is any automatically brightness control for gst-launch-1.0 nvarguscamerasrc? Or is there a parameter I can tune to control the brightness of the image captured?

Thanks

Hi,
In the command it only saves the first frame which may not have proper exposure time and white balance. Suggest you check camera preview:

gst-launch-1.0 nvarguscamerasrc sensor-id=0 silent=false ! "video/x-raw(memory:NVMM), width=(int)3264, height=(int)2464, format=(string)NV12, framerate=(fraction)20/1" ! nvvidconv flip-method=0 ! "video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080" ! nvoverlaysink

Hi DaneLLL,

Thanks for your reply. I did more tests with camera preview. I could not find the parameter that can automatically adjust the brightness in gst-inspect-1.0. Is there a way to have automatic brightness control with

gst-launch-1.0 nvarguscamerasrc

Or since the first frame may not have proper exposure time and white balance, is there a way to save the frame that has more stabilise brightness? I tried to modified the

num-buffers=10

yet the .jpg file size increased significantly.

Filesink won’t split images for you so filesize is increased because there are 10 jpegs in one file. Try multifilesink.

IIRC you might also need a jpegparse in there somewhere. This is a harder problem than it seems but it is possible.

Hi,
So you also observe brighter camera preview? Do you use Raspberry Pi camera V2? Or from other vendor? We have ISP setting for Pi camera V2 and it should be with OK image quality.

Hi DaneLLL,

I am using LI-IMX219. The image quality and the brightness is OK with camera preview. However, I would like to capture a image with it. Is it possible to take a single images with auto-brightness control by modifying this command? Or will you recommend other a better way to capture single images with width=3264, height=2464 and auto-brightness control?

Thanks mdegans, I will look into that.

Hi,
Please check the samples of on-demand JPEG encoding:
How to turn off auto-capture when gstreamer pipeline runs? only on-demand - #5 by DaneLLL
Starvation (?) of gstreamer threads - #12 by DaneLLL