nvidia@jetson:~/jai$ gst-launch-1.0 v4l2src device=/dev/video0 io-mode=2 num-buffers=100 !
'image/jpeg,width=1280,height=720, framerate=60/1,format=I420' ! jpegdec ! video/x-raw ! nvvidconv !
'video/x-raw(memory:NVMM)' ! nvv4l2h265enc ! h265parse ! qtmux ! filesink location=filename_h265.mp4 -e
Setting pipeline to PAUSED ...
Opening in BLOCKING MODE
(gst-launch-1.0:12235): GLib-GObject-WARNING **: 11:46:59.944: cannot register existing type 'GstV4l2VideoDec'
(gst-launch-1.0:12235): GLib-CRITICAL **: 11:46:59.944: g_once_init_leave: assertion 'result != 0' failed
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
(gst-launch-1.0:12235): GLib-GObject-WARNING **: 11:47:00.285: cannot register existing type 'GstV4l2BufferPool'
(gst-launch-1.0:12235): GLib-CRITICAL **: 11:47:00.285: g_once_init_leave: assertion 'result != 0' failed
(gst-launch-1.0:12235): GLib-GObject-CRITICAL **: 11:47:00.285: g_object_new_valist: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
(gst-launch-1.0:12235): GLib-GObject-CRITICAL **: 11:47:00.285: g_object_ref_sink: assertion 'G_IS_OBJECT (object)' failed
Caught SIGSEGV
#0 0x0000007fa6b72048 in __GI___poll (fds=0x55b651dd40, nfds=548258968176, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:41
#1 0x0000007fa6c7ee40 in () at /usr/lib/aarch64-linux-gnu/libglib-2.0.so.0
#2 0x00000055b64622f0 in ()
Spinning. Please run 'gdb gst-launch-1.0 12235' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
^Chandling interrupt.
Interrupt: Stopping pipeline ...
EOS on shutdown enabled -- Forcing EOS on the pipeline
^C
I am trying to encode video streaming coming from USBCAM. If I use ‘nvv4l2h265enc’ it throws error.
But ‘omxh265enc’ works completely fine for above pipeline.