Using both deepstream plugins and hardware overlays

Hi,

Thank you for the reply.

For testing purpose, I continue on using TX2 devkit with ubuntu (L4T 32.4.3).
On ubuntu/X11 (again, not my target but interesting) :

gst-launch-1.0 filesrc location=/opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_1080p_h264.mp4 ! qtdemux ! h264parse ! nvv4l2decoder ! nvvideoconvert ! m.sink_0 nvstreammux name=m batch-size=1 width=1920 height=1080 ! nvinfer config-file-path= /opt/nvidia/deepstream/deepstream-5.0/samples/configs/deepstream-app/config_infer_primary.txt ! nvdrmvideosink conn_id=0 plane_id=1 set_mode=0 -e  # (Fiona Chen's pipeline)
...
Pipeline is PREROLLING ...
NvMMLiteOpen : Block : BlockType = 261 
NVMEDIA: Reading vendor.tegra.display-size : status: 6 
NvMMLiteBlockCreate : Block : BlockType = 261 
nvbuf_utils: nvbuffer Payload Type not supported
NvBufferGetParamsEx Failed
Failed to get buffer parameters from fd 
0:01:13.884879872  9604   0x55b9cecd40 WARN                 nvinfer gstnvinfer.cpp:1975:gst_nvinfer_output_loop:<nvinfer0> error: Internal data stream error.
...

For testing purpose, I use ubuntu turned into EGLFS. To do it, I follow commands from : Which videosink for Jetson TX2 in EGLFS?.

Fiona Chen’s pipeline give me the same error above. Then I tried some other pipelines:

gst-launch-1.0 filesrc location=/opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_1080p_h264.mp4 ! qtdemux ! h264parse ! nvv4l2decoder ! nvdrmvideosink conn_id=0 plane_id=1 set_mode=0 -e  # OK

gst-launch-1.0 filesrc location=/opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_1080p_h264.mp4 ! qtdemux ! h264parse ! nvv4l2decoder ! nvvideoconvert ! nvdrmvideosink conn_id=0 plane_id=1 set_mode=0 -e  # NOK (I added nvvideoconvert to the working pipeline)
gst-launch-1.0 filesrc location=/opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_1080p_h264.mp4 ! qtdemux ! h264parse ! nvv4l2decoder ! m.sink_0 nvstreammux name=m batch-size=1 width=1920 height=1080 ! nvinfer config-file-path= /opt/nvidia/deepstream/deepstream-5.0/samples/configs/deepstream-app/config_infer_primary.txt ! nvdrmvideosink conn_id=0 plane_id=1 set_mode=0 -e  # NOK (I added nvstreammux/nvinfer to the working pipeline)

I upgraded this devkit to ubuntu / L4T 32.4.4 (last version using apt). The following command tells me I’m using JetPack 4.4.

sudo apt-cache show nvidia-jetpack

Fiona Chen’s command works now! I tried also some other pipeline above and it works too.

My target OS/board runs under L4T r32.4.3. I guess it’s fixed on 32.4.4. I need to upgrade.