RGB/BGR Format transformation is not supported by VIC use GPU instead

• Hardware Platform (Jetson / GPU): Jetson AGX Orin Dev Kit
• DeepStream Version: 6.3
• JetPack Version (valid for Jetson only): 5.1.2
• TensorRT Version: 8.5.2
• NVIDIA GPU Driver Version (valid for GPU only): R35.6.0

Problem:

fpascal@ubuntu:~/tiscamera/build$ gst-launch-1.0 \

tcambin name=tcam0 ! video/x-raw,format=GRAY8,width=1920,height=1080,framerate=30/1
! videoconvert ! “video/x-raw,format=BGR”
! nvvideoconvert ! “video/x-raw(memory:NVMM),format=NV12,width=1920,height=1080”
! mux.sink_0 nvstreammux name=mux batch-size=1 width=1920 height=1080 live-source=1
! nvinfer config-file-path=$HOME/my_code/config_infer_primary.txt
! nvvidconv ! nvdsosd
! nvvidconv ! “video/x-raw(memory:NVMM),format=NV12,width=1920,height=1080”
! nvvideoconvert compute-hw=GPU copy-hw=GPU gpu-id=0 nvbuf-memory-type=0
! “video/x-raw(memory:NVMM),format=NV12,width=1920,height=1080”
! nvv4l2h264enc bitrate=2000000
! h264parse ! mp4mux
! filesink location=$HOME/Videos/output.mp4 -e
Setting pipeline to PAUSED …
Opening in BLOCKING MODE
0:00:02.481633934 574070 0xaaab1d78e350 WARN nvinfer gstnvinfer.cpp:679:gst_nvinfer_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::initialize() <nvdsinfer_context_impl.cpp:1174> [UID = 1]: Warning, OpenCV has been deprecated. Using NMS for clustering instead of cv::groupRectangles with topK = 20 and NMS Threshold = 0.5
0:00:05.229717463 574070 0xaaab1d78e350 INFO nvinfer gstnvinfer.cpp:682:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1988> [UID = 1]: deserialized trt engine from :/home/fpascal/my_code/model.engine
WARNING: [TRT]: The getMaxBatchSize() function should not be used with an engine built from a network created with NetworkDefinitionCreationFlag::kEXPLICIT_BATCH flag. This function will always return 1.
INFO: [Implicit Engine Info]: layers num: 3
0 INPUT kFLOAT input_6 224x224x3
1 OUTPUT kFLOAT cls 10x4
2 OUTPUT kFLOAT bbox 10x4

0:00:05.392468755 574070 0xaaab1d78e350 INFO nvinfer gstnvinfer.cpp:682:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2091> [UID = 1]: Use deserialized engine model: /home/fpascal/my_code/model.engine
0:00:05.466398964 574070 0xaaab1d78e350 INFO nvinfer gstnvinfer_impl.cpp:328:notifyLoadModelStatus: [UID 1]: Load new model:/home/fpascal/my_code/config_infer_primary.txt sucessfully
Pipeline is live and does not need PREROLL …
INFO:
Working with src caps: video/x-raw, format=(string)GRAY8, width=(int)1920, height=(int)1080, framerate=(fraction)30/1
Setting pipeline to PLAYING …
New clock: GstSystemClock
Redistribute latency…
NvMMLiteOpen : Block : BlockType = 4
===== NvVideo: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
/dvs/git/dirty/git-master_linux/nvutils/nvbufsurftransform/nvbufsurftransform.cpp:4594: => NvVicCompose Failed

/dvs/git/dirty/git-master_linux/nvutils/nvbufsurftransform/nvbufsurftransform.cpp:4599: => RGB/BGR Format transformation is not supported by VIC use GPU instead

0:00:06.005938020 574070 0xaaab1d784d80 ERROR nvvideoconvert gstnvvideoconvert.c:4095:gst_nvvideoconvert_transform: buffer transform failed
nvstreammux: Successfully handled EOS for source_id=0
ERROR: from element /GstPipeline:pipeline0/GstTcamBin:tcam0/GstTcamSrc:tcambin-source/GstTcamMainSrc:source: Internal data stream error.
Additional debug info:
gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstTcamBin:tcam0/GstTcamSrc:tcambin-source/GstTcamMainSrc:source:
streaming stopped, reason error (-5)
EOS on shutdown enabled – waiting for EOS after Error
Waiting for EOS…
^Chandling interrupt.
Interrupt: Stopping pipeline …
Interrupt while waiting for EOS - stopping pipeline…
Execution ended after 0:01:38.628599740
Setting pipeline to NULL …
Freeing pipeline …

please set compute-hw=GPU for the first nvideoconvert.