# gst-launch-1.0 camera issue in TX1

**URL:** <https://forums.developer.nvidia.com/t/gst-launch-1-0-camera-issue-in-tx1/57501>\
**Category:** Jetson TX1\
**Created:** [January 27, 2018, 12:00am UTC](https://forums.developer.nvidia.com/t/gst-launch-1-0-camera-issue-in-tx1/57501 "2018-01-27T00:00:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tingxulv](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tingxulv](https://forums.developer.nvidia.com/u/tingxulv)\
**Post date:** [January 27, 2018, 12:00am UTC](https://forums.developer.nvidia.com/t/gst-launch-1-0-camera-issue-in-tx1/57501/1 "2018-01-27T00:00:03Z")

</div>

I want to use gstreamer to open the /dev/video0 in my tx1.  
I get black screen when i type :  
gst-launch-0.10 -v v4l2src device=/dev/video0 ! video/x-raw-yuv,framerate=30/1,width=1280,height=720 ! xvimagesink  
in my terminal.  
I install the good,bad,ugly,base plugins and the nvgstcapture works great with my camera.  
Could anyone can help?

---

<div class="post-metadata">

**Author:** ![Honey\_Patouceul](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/honey_patouceul/32/389777_2.png) [@Honey\_Patouceul](https://forums.developer.nvidia.com/u/Honey_Patouceul)\
**Post date:** [January 27, 2018, 10:47pm UTC](https://forums.developer.nvidia.com/t/gst-launch-1-0-camera-issue-in-tx1/57501/2 "2018-01-27T22:47:54Z")

</div>

Not sure what you’re trying to do, but here are some advices:

1. You’re mixing gstreamer-1.0 (in topic title) and gstreamer-0.10 (in posted command). Unless you have good reasons for using gstreamer-0.10, I’d advise to use gstreamer-1.0. Installing plugins is also version dependent, there are plugins for 0.10 and plugins for 1.0.

2. If you’re trying to use onboard camera, you may read this post: [https://devtalk.nvidia.com/default/topic/1028611/jetson-tx2/is-there-a-parameter-for-enable-disable-the-tx2-on-board-camera-/post/5232247/#5232247](https://devtalk.nvidia.com/default/topic/1028611/jetson-tx2/is-there-a-parameter-for-enable-disable-the-tx2-on-board-camera-/post/5232247/#5232247).

3. If you’re trying to use a USB camera, be sure it is /dev/video0. If you have the onboard camera working, this should be /dev/video0. Pluging the USB camera should lead to /dev/video1 to be created. Check to be sure you give the right device node.

4. In your gstreamer pipeline, the caps between plugins should be single quoted when used from shell with gst-launch-1.0:

```auto
'video/x-raw-yuv,framerate=30/1,width=1280,height=720'

```

1. Use gst-inspect-1.0 to get for each plugin its source (ie output) and sink (input) capabilities.

```auto
gst-inspect-1.0 v4l2src
gst-inspect-1.0 xvimagesink

```

Find which source caps from a plugin can match sink caps of following plugin in the pipeline.

1. I don’t think capability ‘video/x-raw-yuv’ is correct. Should be rather something like:

```auto
'video/x-raw, format=UYVY, framerate=30/1, width=1280, height=720'

```

The exact format depends on what your camera provides. You may try:

```auto
gst-launch-1.0 -v v4l2src device=/dev/video1 ! fakesink

```

check the output format of your cam and build the pipeline.

---

<div class="post-metadata">

**Author:** ![TomNVIDIA](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tomnvidia/32/14181_2.png) [@TomNVIDIA](https://forums.developer.nvidia.com/u/TomNVIDIA)\
**Post date:** [October 18, 2021, 6:58pm UTC](https://forums.developer.nvidia.com/t/gst-launch-1-0-camera-issue-in-tx1/57501/3 "2021-10-18T18:58:23Z")

</div>

Closed on October 18, 2021, 6:58pm UTC


