# some problems of command: nvgstcapture-1.0 

**URL:** <https://forums.developer.nvidia.com/t/some-problems-of-command-nvgstcapture-1-0/78513>\
**Category:** Jetson Nano\
**Created:** [July 23, 2019, 5:39am UTC](https://forums.developer.nvidia.com/t/some-problems-of-command-nvgstcapture-1-0/78513 "2019-07-23T05:39:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![641750479](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@641750479](https://forums.developer.nvidia.com/u/641750479)\
**Post date:** [July 23, 2019, 5:39am UTC](https://forums.developer.nvidia.com/t/some-problems-of-command-nvgstcapture-1-0/78513/1 "2019-07-23T05:39:01Z")

</div>

hi all!

I have successfully launch the camera and get the capturing display by the command: nvgstcapture-1.0 on the platform of jetson nano with imx219 csi camera.

But I meet 3 problems here:  
1.The display window can’t be resized and it is almost full screen. Which command can be used to resize the display window?

2.How to use this command with opencv? Just like command’nvarguscamerasrc’ sample below:

def gstreamer\_pipeline (capture\_width=3280, capture\_height=2464, exposure\_time=90,  
framerate=8, flip\_method=2):  
exposure\_time = exposure\_time \* 1000000 #ms to ns  
exp\_time\_str = ‘"’ + str(exposure\_time) + ’ ’ + str(exposure\_time) + ‘"’  
return ('nvarguscamerasrc ’  
'wbmode=0 ’  
'awblock=true ’  
'gainrange=“1 1” ’  
'ispdigitalgainrange=“1 1” ’  
'exposuretimerange=%s ’  
'aelock=true ! ’  
'video/x-raw(memory:NVMM), ’  
'width=%d, height=%d, ’  
'format=NV12, ’  
'framerate=%d/1 ! ’  
'nvvidconv flip-method=%d ! ’  
'video/x-raw, ’  
'format=I420 ! ’   
'appsink ’  
% (exp\_time\_str, capture\_width, capture\_height, framerate, flip\_method))

camera = cv2.VideoCapture(gstreamer\_pipeline(), cv2.CAP\_GSTREAMER)  
\_, image = camera.read()

3.when I tried to use command: gst-launch-1.0 nvcamerasrc, it occured this error: pipeline counld not be constructed: no element “nvcamerasrc”. So how can I install this plugin? in addition, command"gst-launch-1.0 nvarguscamerasrc" can work here.

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [July 23, 2019, 9:30am UTC](https://forums.developer.nvidia.com/t/some-problems-of-command-nvgstcapture-1-0/78513/2 "2019-07-23T09:30:08Z")

</div>

Hi,

> [@](#):
>
> 1.The display window can’t be resized and it is almost full screen. Which command can be used to resize the display window?

For more exaples, please refer to [https://developer.nvidia.com/embedded/dlc/l4t-accelerated-gstreamer-guide-32-2](https://developer.nvidia.com/embedded/dlc/l4t-accelerated-gstreamer-guide-32-2)

> [@](#):
>
> 2.How to use this command with opencv?

For running with opencv, you can check  
[https://devtalk.nvidia.com/default/topic/1057460/jetson-tx2/custom-built-opencv-3-4-0-following-nvidia-advice-not-working/post/5363355/#5363355](https://devtalk.nvidia.com/default/topic/1057460/jetson-tx2/custom-built-opencv-3-4-0-following-nvidia-advice-not-working/post/5363355/#5363355)  
Script for Nano is  
[https://github.com/AastaNV/JEP/blob/master/script/install\_opencv4.0.0\_Nano.sh](https://github.com/AastaNV/JEP/blob/master/script/install_opencv4.0.0_Nano.sh)  
However, your resolution is almost 4K, so it may not good to use opencv. appsink in opencv requires video/x-raw[CPU] buffers, so you need to copy video/x-raw(memory:NVMM)[DMA] buffers to video/x-raw buffers. Suggest you try tegra\_multimedia\_api  
[https://developer.nvidia.com/embedded/dlc/NVIDIA\_Tegra\_Linux\_MultimediaAPIReference](https://developer.nvidia.com/embedded/dlc/NVIDIA_Tegra_Linux_MultimediaAPIReference)

> [@](#):
>
> 3.when I tried to use command: gst-launch-1.0 nvcamerasrc, it occured this error: pipeline counld not be constructed: no element “nvcamerasrc”. So how can I install this plugin? in addition, command"gst-launch-1.0 nvarguscamerasrc" can work here.

Please use nvarguscamerasrc. nvcamerasrc is deprecated.

---

<div class="post-metadata">

**Author:** ![641750479](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@641750479](https://forums.developer.nvidia.com/u/641750479)\
**Post date:** [July 23, 2019, 10:22am UTC](https://forums.developer.nvidia.com/t/some-problems-of-command-nvgstcapture-1-0/78513/3 "2019-07-23T10:22:02Z")

</div>

Hi DaneLLL:

Thanks for your detail answer.I’m sorry that maybe I should tell more clearly about what I am doing.Actually I want to do two things on the csi camera with jestson nano:

1.Launch the camera and display the captures on a customize window.  
2.Do some controls to the camera during it is running.

After some attemps, I found that:

1.I can lanuch the camera by “nvgstcapture-1.0” as well as “nvarguscamerasrc”+opencv(like i pose above).But I can’t find out the command to resize the window to display with command “nvgstcapture” even I tried out all the command on the file that you offer. And “nvarguscamerasrc” can be resized the window with the opencv display.

2.Only command"nvgstcapture-1.0" offers the runtime command that can be used to do some controls when the camera is running. and “nvarguscamerasrc” doesn’t offer these runtime command.

3.In addition, I shoule choose a way that can be easily convert the data to opencv format so that it is benefit for the process after the capture.

Above all, it seems that I should find out a method that the I can capture with the command"nvgstcapture"and convert the image into opencv format in the same time.

Thank you so much!

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [July 24, 2019, 6:28am UTC](https://forums.developer.nvidia.com/t/some-problems-of-command-nvgstcapture-1-0/78513/4 "2019-07-24T06:28:16Z")

</div>

Hi,  
nvgstcapture-1.0 is open source code. It is nvgstapps\_src.tbz2 in  
[https://developer.nvidia.com/embedded/dlc/public\_sources\_Nano](https://developer.nvidia.com/embedded/dlc/public_sources_Nano)  
You may refer to it and add window resize.

You may also consider to use Argus APIs. We have Argus ui application in tegra\_multimedia\_api/argus/. Please follow README.TXT to build and run the app.

---

<div class="post-metadata">

**Author:** ![641750479](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@641750479](https://forums.developer.nvidia.com/u/641750479)\
**Post date:** [July 29, 2019, 5:53am UTC](https://forums.developer.nvidia.com/t/some-problems-of-command-nvgstcapture-1-0/78513/5 "2019-07-29T05:53:41Z")

</div>

Hi DaneLLL :

Thank you so much!According to your guidance, I think I have found the right way to develop the isp control on Jetson platform.We can develop the applications based on the samples which is in the file ‘argus’ after I build this file and make with the steps in README.TXT.

Best Regards

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 18, 2021, 5:44pm UTC](https://forums.developer.nvidia.com/t/some-problems-of-command-nvgstcapture-1-0/78513/6 "2021-10-18T17:44:51Z")

</div>

Closed on October 18, 2021, 5:44pm UTC


