How to run Jetson Tx2 onboard camera, together with deepstream application

i tried running the gst-launch-1.0 v4l2src ! nvvidconv ! xvimagesink command but i recieve this output:
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

Also, is there any documents on how to run the tx2 onboard camera, setting up the pipeline etc?