Hi… With videotestsrc the pipeline works fine. I am able to get the sample video output on receiver side.
With “gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-raw, format=NV12, width=640, height=512 ! jpegenc ! rtpjpegpay ! udpsink host=127.0.0.1 port=5600” i am getting below error:
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = “video/x-raw,\ format=(string)NV12,\ width=(int)640,\ height=(int)512,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ framerate=(fraction)9/1”
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = “video/x-raw,\ format=(string)NV12,\ width=(int)640,\ height=(int)512,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ framerate=(fraction)9/1”
/GstPipeline:pipeline0/GstJpegEnc:jpegenc0.GstPad:sink: caps = “video/x-raw,\ format=(string)NV12,\ width=(int)640,\ height=(int)512,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ framerate=(fraction)9/1”
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = “video/x-raw,\ format=(string)NV12,\ width=(int)640,\ height=(int)512,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ framerate=(fraction)9/1”
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason error (-5)
Execution ended after 0:00:00.691234530
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …
With the Pipeline "gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-raw, format=NV12, width=640, height=512 ! videoconvert ! xvimagesink:
I am getting an output window of green color with below error:
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = “video/x-raw,\ format=(string)NV12,\ width=(int)640,\ height=(int)512,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ framerate=(fraction)9/1”
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = “video/x-raw,\ format=(string)NV12,\ width=(int)640,\ height=(int)512,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ framerate=(fraction)9/1”
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = “video/x-raw,\ width=(int)640,\ height=(int)512,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ framerate=(fraction)9/1,\ format=(string)YV12”
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0.GstPad:sink: caps = “video/x-raw,\ width=(int)640,\ height=(int)512,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ framerate=(fraction)9/1,\ format=(string)YV12”
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = “video/x-raw,\ format=(string)NV12,\ width=(int)640,\ height=(int)512,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ framerate=(fraction)9/1”
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = “video/x-raw,\ format=(string)NV12,\ width=(int)640,\ height=(int)512,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ framerate=(fraction)9/1”
WARNING: from element /GstPipeline:pipeline0/GstVideoConvert:videoconvert0: Internal GStreamer error: code not implemented. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
Additional debug info:
gstvideofilter.c(292): gst_video_filter_transform (): /GstPipeline:pipeline0/GstVideoConvert:videoconvert0:
invalid video buffer received
WARNING: from element /GstPipeline:pipeline0/GstVideoConvert:videoconvert0: Internal GStreamer error: code not implemented. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
Additional debug info:
gstvideofilter.c(292): gst_video_filter_transform (): /GstPipeline:pipeline0/GstVideoConvert:videoconvert0:
invalid video buffer received
^Chandling interrupt.
Interrupt: Stopping pipeline …
Execution ended after 0:00:01.579245607
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …
With Pipeline “gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-raw, format=NV12, width=640, height=512 ! nvvidconv ! nvoverlaysink”. I am getting below error:
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = “video/x-raw,\ format=(string)NV12,\ width=(int)640,\ height=(int)512,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ framerate=(fraction)9/1”
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = “video/x-raw,\ format=(string)NV12,\ width=(int)640,\ height=(int)512,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ framerate=(fraction)9/1”
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:src: caps = “video/x-raw(memory:NVMM),\ width=(int)640,\ height=(int)512,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ framerate=(fraction)9/1,\ format=(string)NV12”
/GstPipeline:pipeline0/GstNvOverlaySink-nvoverlaysink:nvoverlaysink-nvoverlaysink0.GstPad:sink: caps = “video/x-raw(memory:NVMM),\ width=(int)640,\ height=(int)512,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ framerate=(fraction)9/1,\ format=(string)NV12”
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:sink: caps = “video/x-raw,\ format=(string)NV12,\ width=(int)640,\ height=(int)512,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ framerate=(fraction)9/1”
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = “video/x-raw,\ format=(string)NV12,\ width=(int)640,\ height=(int)512,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ framerate=(fraction)9/1”
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason error (-5)
Execution ended after 0:00:00.660947227
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …
If i test with the pipeline “gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! autovideosink” . It works fine and shows me output video from camera.
Also i have tested with Raspberry Pi 3 using the pipeline “gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! nvjpegenc ! rtpjpegpay ! udpsink host=127.0.0.1 port=5600” . I am getting expected output in client PC . The only problem it is not working with Jetson TX2. I am also thinking in jetson somwhere the camera driver has been messed up.