Deepstream 6.3 python

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) : NVIDIA GeForce RTX 3090
• DeepStream Version: 6.3
• JetPack Version (valid for Jetson only)
• TensorRT Version : 12.2
• NVIDIA GPU Driver Version (valid for GPU only) : 535.104.05
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)

run deepstream docker container using below line

sudo docker run --name deepstream-app-6.3-x -it --rm --net=host --gpus all -e DISPLAY=$DISPLAY --device /dev/snd -v /tmp/.X11-unix/:/tmp/.X11-unix nvcr.io/nvidia/deepstream:6.3-samples

then inside container run deepstreamtest1 app

GST_DEBUG=3 python3 deepstream_test_1.py /opt/nvidia/deepstream/deepstream-6.3/samples/streams/sample_720p.h264

Output:

Creating Pipeline

Creating Source

Creating H264Parser

Creating Decoder

Creating EGLSink

Playing file /opt/nvidia/deepstream/deepstream-6.3/samples/streams/sample_720p.h264
Adding elements to Pipeline

Linking elements in the Pipeline

Starting pipeline

MoTTY X11 proxy: Unsupported authorisation protocol
MoTTY X11 proxy: Unsupported authorisation protocol
MoTTY X11 proxy: Unsupported authorisation protocol
MoTTY X11 proxy: Unsupported authorisation protocol
0:00:02.062647747 4197 0x19df920 ERROR egladaption ext/eglgles/gstegladaptation_egl.c:160:gst_egl_adaptation_init_display: Could not init EGL display connection
0:00:02.062680278 4197 0x19df920 ERROR egladaption ext/eglgles/gstegladaptation_egl.c:183:gst_egl_adaptation_init_display: EGL call returned error 3000
0:00:02.062691018 4197 0x19df920 ERROR egladaption ext/eglgles/gstegladaptation_egl.c:185:gst_egl_adaptation_init_display: Couldn’t setup window/surface from handle
0:00:02.062695078 4197 0x19df920 ERROR nveglglessink ext/eglgles/gsteglglessink.c:536:egl_init: Couldn’t init EGL display
0:00:02.062698738 4197 0x19df920 ERROR nveglglessink ext/eglgles/gsteglglessink.c:562:egl_init: Failed to perform EGL init

Appreciate your help to fix this issue

I guess when you start the docker image, xhost + is not executed.

Allow external applications to connect to the host’s X display:

xhost +

I executed xhost + and facing same issue

Are you running the command in ssh? Deepstream does not support x11-forwarding.

when you run the following command line, can you get output ?

echo $DISPLAY 

output from echo $DISPLAY

localhost:11.0

Please disable local x11-server .

After these, If you have plugged a display on your server, try export DISPLAY=:0 in your ssh.

If you don’t have a monitor, try modify nveglglessink to fakesink

when I setted DISPLAY=0
then run xhost +
it gives error as below
xhost: unable to open display “0”

What is the output of xrandr ?

Just set the value of DISPLAY to the screen index of xrandr output.

It’s 0/1 usually.

it didn’t work, so I changed pipeline to support filesink instead of display

Ok,Filesink or Fakesink will also work well in the pipeline.

If need further support,please open a new topic, Thanks.

1 Like

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