I’ve had this reply(the gst_cv_gpumat.zip file) earlier, and compiled well without any issue, but it doesn’t work having this problem…
gst_cv_gpumat$ ./gst_cv_gpumat Using launch string: nvarguscamerasrc name=mysource ! video/x-raw(memory:NVMM),width=1920,height=1080,framerate=30/1,format=NV12 ! nvvidconv name=myconv ! video/x-raw(memory:NVMM),format=RGBA ! nvoverlaysink
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
Segmentation fault (core dumped)
anyway I got some hints from your reply and added cudart to my cmakelists, it compiled, thank you very much!!
but when it runs causes this error.
Source Pipeline state changed from NULL to READY.
Source Pipeline state changed from READY to PAUSED.
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
Framerate set to : 33 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
H264: Profile = 66, Level = 40
reference in DPB was never decoded
terminate called after throwing an instance of ‘cv::Exception’
what(): OpenCV(4.2.0) /home/vcanus/opencv_contrib-4.2.0/modules/cudafilters/src/cuda/row_filter.hpp:172: error: (-217:Gpu API call) unspecified launch failure in function ‘caller’
Aborted (core dumped)
I used to build two pipes, appsink pipe and appsrc pipe. and put image processing between them,
but changed it to one pipe and manipulted pipeline with gst_pad_probe (like the example you attached).
My pipeline is like below
gchar *appsink_desc = g_strdup(
"uridecodebin uri=rtsp://~ ! "
"nvvidconv name=myconv ! video/x-raw(memory:NVMM), format=(string)NV12 ! "
"omxh264enc ! "
"mpegtsmux ! "
"hlssink max-files=8 target-duration=5 location=../chunk/segment%05d.ts playlist-location=../chunk/playlist.m3u8"