TX1 nvgstcapture-1.0 capture single image

I am creating a c++ program and need to capture a single still image from a camera. I have tried using gstreamer and am running into issues and was wondering if anyone knew how to use nvgstcapture-1.0 to capture a single image at a certain file location without showing the preview display. It would be nice to have this all in just a single command.

The camera is not a V4l device but will capture correctly using the following command:

nvgstcapture-1.0 --prev-res=5 --image-res=12

The following command is almost exactly what I’m looking for, but I need it to not display a preview and I need it to be an exact file name. By looking at the documentation I would expect


would be what I’m looking for as far as preview goes but I get “Unknown option” every time I try enabling surveillance mode or change the type.

nvgstcapture-1.0 -A --capture-auto -S 0 --image-res=12 --file-name=test.jpg

Hi LoganF,
Please check if the post helps your case: