Actually I am restricting myself to upgrade, because my whole project is configured on jetson.
I carefully followed steps shared by you in one of your previos posts.
✔ I downloaded L4T R31.1 Sources:
https://developer.nvidia.com/embedded/dlc/l4t-sources-31-1-0
✔ Untar the gstjpeg_src.tbz2 on target at $HOME.
✔ I Applied patch through patch -p1 < 0001-gst-jpeg-support-MJPEG-decoding.patch
Output: patching file gst-jpeg-1.0/ext/jpeg/gstjpegdec.c
Then I followed gstjpeg_src\README.txt.
✔ export NOCONFIGURE=true
✔ export CFLAGS=“-I$HOME/gstjpeg_src/nv_headers -DUSE_TARGET_TEGRA”
✔ ./autogen.sh
✔ ./configure
✔ make
✔ sudo cp -i ext/jpeg/.libs/libgstjpeg.so /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvjpeg.so
Output: Asked for overwrite. Then I confirmed, yes.
✔ sudo ln -sf tegra/libnvjpeg.so libjpeg.so
✔ sudo ln -sf tegra/libnvjpeg.so libjpeg.so.8
Now if I perform ‘gst-inspect-1.0 nvjpegdec’ (Good news)
Factory Details:
Rank primary - 10 (246)
Long-name JPEG image decoder
Klass Codec/Decoder/Image
Description Decode images from JPEG format
Author Wim Taymans <wim@fluendo.com>
Plugin Details:
Name nvjpeg
Description Nvidia accelerated JPeg plugin library
Filename /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstnvjpeg.so
Version 1.2.3
License LGPL
Source module gst-jpeg-1.0
Source release date 2014-02-08
Binary package GStreamer Good Jpeg Plug-ins source release
Origin URL Unknown package origin
.
.
Good for me.
nvjpegdec pipeline working good.
gst-launch-1.0 v4l2src device=/dev/video0 io-mode=2 ! 'image/jpeg,width=1920,height=1080, framerate=60/1,format=I420' ! nvjpegdec ! 'video/x-raw(memory:NVMM),format=I420' ! fpsdisplaysink video-sink=fakesink text-overlay=false -v
Problem 1: But if I perform ‘gst-inspect-1.0 jpegdec’ (Strange news)
Segmentation fault (core dumped) // Right now I can ignore this
Problem 2: And also if perform ‘v4l2-ctl --list-devices’ I get below warning
v4l2-ctl: /usr/lib/aarch64-linux-gnu/libjpeg.so.8: no version information available (required by /usr/lib/aarch64-linux-gnu/libv4lconvert.so.0)
3.0 USB Camera (usb-3610000.xhci-3):
/dev/video0
Problem 3(main): My ultimate aim is h265 encoding
nvidia@jetson:~/jai$ gst-launch-1.0 v4l2src device=/dev/video0 io-mode=2 num-buffers=200 ! 'image/jpeg,width=1920,height=1080, framerate=60/1,format=I420' ! videorate drop-only = true max-rate=30 ! nvjpegdec ! nvvidconv ! omxh265enc ! qtmux ! filesink location=test2.mp4 -v
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 = image/jpeg, width=(int)1920, height=(int)1080, framerate=(fraction)60/1, format=(string)I420, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = image/jpeg, width=(int)1920, height=(int)1080, framerate=(fraction)60/1, format=(string)I420, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstVideoRate:videorate0.GstPad:src: caps = image/jpeg, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, format=(string)I420, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstNvJpegDec:nvjpegdec0.GstPad:sink: caps = image/jpeg, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, format=(string)I420, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstVideoRate:videorate0.GstPad:sink: caps = image/jpeg, width=(int)1920, height=(int)1080, framerate=(fraction)60/1, format=(string)I420, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = image/jpeg, width=(int)1920, height=(int)1080, framerate=(fraction)60/1, format=(string)I420, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstNvJpegDec:nvjpegdec0.GstPad:src: caps = video/x-raw(memory:NVMM), format=(string)I420, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)1:4:0:0, framerate=(fraction)30/1
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, framerate=(fraction)30/1, format=(string)I420, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1
Framerate set to : 30 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 8
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 8
NVMEDIA: H265 : Profile : 1
/GstPipeline:pipeline0/GstOMXH265Enc-omxh265enc:omxh265enc-omxh265enc0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, framerate=(fraction)30/1, format=(string)I420, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:sink: caps = video/x-raw(memory:NVMM), format=(string)I420, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)1:4:0:0, framerate=(fraction)30/1
NvMMLiteVideoEncDoWork: Surface resolution (0 x 0) smaller than encode resolution (1920 x 1080)
VENC: NvMMLiteVideoEncDoWork: 4105: BlockSide error 0x4
Event_BlockError from 0BlockHevcEnc : Error code - 4
Sending error event from 0BlockHevcEncERROR: from element /GstPipeline:pipeline0/GstOMXH265Enc-omxh265enc:omxh265enc-omxh265enc0: GStreamer encountered a general supporting library error.
Additional debug info:
/dvs/git/dirty/git-master_linux/external/gstreamer/gst-omx/omx/gstomxvideoenc.c(1331): gst_omx_video_enc_loop (): /GstPipeline:pipeline0/GstOMXH265Enc-omxh265enc:omxh265enc-omxh265enc0:
OpenMAX component in error state Bad parameter (0x80001005)
Execution ended after 0:00:00.380105692
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Caught SIGSEGV
#0 0x0000007f7aa25ce4 in __waitpid (pid=<optimized out>, stat_loc=0x7fd2711bf4, options=<optimized out>) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1 0x0000007f7aa612a0 in g_on_error_stack_trace ()
#2 0x00000055928cec3c in ()
#3 0x000000559fe1e0f0 in ()
Spinning. Please run 'gdb gst-launch-1.0 10492' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
Can you help me to infer this problem?
Thank you