Gst_nvvideoconvert_transform: buffer transform failed

Please provide complete information as applicable to your setup.

• Hardware Platform (Tesla T4 * 3)
**• DeepStream Version: 6.3 **
• TensorRT Version: 8.6.1
• NVIDIA GPU Driver Version (530.30.02)
• Issue Type( bugs)

I have write a demo, and run it on deepstream6.3 docker container, it occur error on multi gpus.

the demo is in detachment
multi-gpu-test-ds63.zip (8.7 KB)

the logs:

WARNING: Logging before InitGoogleLogging() is written to STDERR
I0814 03:07:18.799167  2994 main.cpp:33] Gpu device count = 3
I0814 03:07:20.217403  2994 main.cpp:42] Start add source on GPU id: 0
I0814 03:07:20.277479  2994 pipeline.cpp:295] resume pipeline to playing state
I0814 03:07:20.277531  2994 pipeline.cpp:268] Add source sucess, index = 0, url = rtsp://admin:123456@192.168.26.201/mpeg4
I0814 03:07:20.277541  2994 main.cpp:44] End add source on GPU id: 0
I0814 03:07:20.759478  3014 pipeline.cpp:319] new compatible video pad vsrc_0 added on source-bin-00
I0814 03:07:25.277631  2994 main.cpp:42] Start add source on GPU id: 1
I0814 03:07:25.278213  2994 pipeline.cpp:295] resume pipeline to playing state
I0814 03:07:25.278263  2994 pipeline.cpp:268] Add source sucess, index = 0, url = rtsp://admin:123456@192.168.26.201/mpeg4
I0814 03:07:25.278277  2994 main.cpp:44] End add source on GPU id: 1
I0814 03:07:25.691967  3028 pipeline.cpp:319] new compatible video pad vsrc_0 added on source-bin-00
0:00:07.319240676  2994 0x7f03fc006cc0 ERROR         nvvideoconvert gstnvvideoconvert.c:4095:gst_nvvideoconvert_transform: buffer transform failed
I0814 03:07:30.278410  2994 main.cpp:42] Start add source on GPU id: 2
I0814 03:07:30.279150  2994 pipeline.cpp:295] resume pipeline to playing state
I0814 03:07:30.279204  2994 pipeline.cpp:268] Add source sucess, index = 0, url = rtsp://admin:123456@192.168.26.201/mpeg4
I0814 03:07:30.279219  2994 main.cpp:44] End add source on GPU id: 2
I0814 03:07:30.663831  3043 pipeline.cpp:319] new compatible video pad vsrc_0 added on source-bin-00
0:00:14.390539703  2994 0x7f0450220400 ERROR         nvvideoconvert gstnvvideoconvert.c:4095:gst_nvvideoconvert_transform: buffer transform failed
I0814 03:07:35.279317  2994 main.cpp:42] Start add source on GPU id: 0
I0814 03:07:35.280051  2994 pipeline.cpp:268] Add source sucess, index = 1, url = rtsp://admin:123456@192.168.26.201/mpeg4
I0814 03:07:35.280073  2994 main.cpp:44] End add source on GPU id: 0
I0814 03:07:35.703290  3056 pipeline.cpp:319] new compatible video pad vsrc_0 added on source-bin-01
I0814 03:07:40.280254  2994 main.cpp:42] Start add source on GPU id: 1
I0814 03:07:40.285811  2994 pipeline.cpp:268] Add source sucess, index = 1, url = rtsp://admin:123456@192.168.26.201/mpeg4
I0814 03:07:40.285840  2994 main.cpp:44] End add source on GPU id: 1
I0814 03:07:40.703491  3067 pipeline.cpp:319] new compatible video pad vsrc_0 added on source-bin-01
0:00:22.285267533  2994 0x7f0400007460 ERROR         nvvideoconvert gstnvvideoconvert.c:4095:gst_nvvideoconvert_transform: buffer transform failed
I0814 03:07:45.286072  2994 main.cpp:42] Start add source on GPU id: 2
I0814 03:07:45.291636  2994 pipeline.cpp:268] Add source sucess, index = 1, url = rtsp://admin:123456@192.168.26.201/mpeg4
I0814 03:07:45.291666  2994 main.cpp:44] End add source on GPU id: 2
I0814 03:07:45.667554  3079 pipeline.cpp:319] new compatible video pad vsrc_0 added on source-bin-01
0:00:29.391343526  2994 0x7f03fc006ea0 ERROR         nvvideoconvert gstnvvideoconvert.c:4095:gst_nvvideoconvert_transform: buffer transform failed
I0814 03:07:50.291797  2994 main.cpp:42] Start add source on GPU id: 0
I0814 03:07:50.292618  2994 pipeline.cpp:268] Add source sucess, index = 2, url = rtsp://admin:123456@192.168.26.201/mpeg4
I0814 03:07:50.292644  2994 main.cpp:44] End add source on GPU id: 0
I0814 03:07:50.703398  3090 pipeline.cpp:319] new compatible video pad vsrc_0 added on source-bin-02
I0814 03:07:55.292750  2994 main.cpp:42] Start add source on GPU id: 1
I0814 03:07:55.298310  2994 pipeline.cpp:268] Add source sucess, index = 2, url = rtsp://admin:123456@192.168.26.201/mpeg4
I0814 03:07:55.298337  2994 main.cpp:44] End add source on GPU id: 1
I0814 03:07:55.694505  3101 pipeline.cpp:319] new compatible video pad vsrc_0 added on source-bin-02
0:00:39.350019304  2994 0x7f026c015c60 ERROR         nvvideoconvert gstnvvideoconvert.c:4095:gst_nvvideoconvert_transform: buffer transform failed
I0814 03:08:00.298431  2994 main.cpp:42] Start add source on GPU id: 2
I0814 03:08:00.304004  2994 pipeline.cpp:268] Add source sucess, index = 2, url = rtsp://admin:123456@192.168.26.201/mpeg4
I0814 03:08:00.304031  2994 main.cpp:44] End add source on GPU id: 2
I0814 03:08:00.690546  3112 pipeline.cpp:319] new compatible video pad vsrc_0 added on source-bin-02
0:00:42.409800481  2994 0x7f024001c300 ERROR         nvvideoconvert gstnvvideoconvert.c:4095:gst_nvvideoconvert_transform: buffer transform failed

it run ok on gpu 0, but failed on gpu 1, 2

but the demo can run on deepstream 6.0.1

Could you open more log by adding the GST_DEBUG=3 to the command line?

logfile.txt (1.3 MB)

this is log file, I have committed the code , can you reproduce it ?

NO. It works well in my enviroment. How do you generate the rtsp source? Could you try the method below and test it?

docker run --rm -it --network=host bluenviron/mediamtx:latest
ffmpeg -re -fflags +genpts -stream_loop -1 -i /opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4 -an -c:v copy -f rtsp rtsp://localhost:8554/raw

I have try the method to generator RTSP stream, it also occur again.

are you running in docker container nvcr.io/nvidia/deepstream:6.3-gc-triton-devel ?

I also test with deepstream 6.2 nvcr.io/nvidia/deepstream:6.2-devel, it work ok.

can you show the logs?

I use the nvcr.io/nvidia/deepstream:6.3-triton-multiarch docker. Could you try to set the memory-type to 2. When using multiple GPUs, we recommend using memtype_unified.

g_object_set(G_OBJECT(bin), "cudadec-memtype", 2, NULL);

Yes , it can run with

g_object_set(G_OBJECT(bin), "cudadec-memtype", 2, NULL);

But it would not happen with DS6.2, maybe some change ?

This is just a demo , we will add some plugins after streammux, so I will try if other plugins may cause error when we set

g_object_set(G_OBJECT(bin), "cudadec-memtype", 2, NULL);

As you test, you mean you can run with

g_object_set(G_OBJECT(bin), "cudadec-memtype", 2, NULL);

or

g_object_set(G_OBJECT(bin), "cudadec-memtype", 0, NULL);

you can run with both setting? Or you adjust the code?

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

It just can run with "cudadec-memtype", 2. Also it’s just for nvurisrcbin. About how to set the memory-type to unified of other plugins, you need to refer to our guide.
For nvstreammux, you need to set nvbuf-memory-type.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.