Is there a way to execute deepstream-test1 with X11 forwarding

I am currently trying to execute /opt/nvidia/deepstream/deepstream-5.1/sources/apps/sample_apps/deepstream-test1 without getting nvbuf_utils: Could not get EGL display connection.
I am using the Jetson Nano via ssh.
I would like to continue to use the Jetson Nano in a headless way and still use deepstream.
I am executing deepstream-test1, because I wan’t to get familiar with deepstream and eventually write my own binary classifier which would not need a X11 output. Is there a way to do this?

Thanks

As mentioned in https://docs.nvidia.com/metropolis/deepstream/DeepStream_5.1_Release_Notes.pdf

 On Jetson, running a DeepStream application over SSH (via putty) with X11 forwarding
does not work

1 Like

Ok thanks.

Even if I run

/opt/nvidia/deepstream/deepstream-5.1/samples/configs/deepstream-app$ deepstream-app -c source8_1080p_dec_infer-resnet_tracker_tiled_display_fp16_nano.txt 

With DISPLAY set to :0 or :1 with ssh without X11 forwarding I get:

No protocol specified
No EGL Display 
nvbufsurftransform: Could not get EGL display connection
No protocol specified
nvbuf_utils: Could not get EGL display connection
** ERROR: <create_multi_source_bin:1320>: Failed to create element 'src_bin_muxer'
** ERROR: <create_multi_source_bin:1411>: create_multi_source_bin failed
** ERROR: <create_pipeline:1294>: create_pipeline failed
** ERROR: <main:636>: Failed to create pipeline

When I run rm ~/.cache/gstreamer-1.0/registry.aarch64.bin , the EGL display error comes back. Otherwise it is only the src_bin_muxer error.

Do you have Display device connected on your NANO device?

No, but the xserver is running. I am only connected via SSH (I deactivated X11Forwarding on the Nano)

if you don’t have Display connected, can’t use eglsink.
could you replace it with fakesink or filesink?

1 Like

My current sink config is the following (/opt/nvidia/deepstream/deepstream-5.1/samples/configs/deepstream-app/source8_1080p_dec_infer-resnet_tracker_tiled_display_fp16_nano.txt):

[sink0]
enable=0
#Type - 1=FakeSink 2=EglSink 3=File
type=5
sync=1
source-id=0
gpu-id=0
qos=0
nvbuf-memory-type=0
overlay-id=1

[sink1]
enable=1
type=3
#1=mp4 2=mkv
container=1
#1=h264 2=h265
codec=1
#encoder type 0=Hardware 1=Software
enc-type=0
sync=0
#iframeinterval=10
bitrate=2000000
#H264 Profile - 0=Baseline 2=Main 4=High
#H265 Profile - 0=Main 1=Main10
profile=0
output-file=out.mp4
source-id=0

[sink2]
enable=0
#Type - 1=FakeSink 2=EglSink 3=File 4=RTSPStreaming
type=4
#1=h264 2=h265
codec=1
#encoder type 0=Hardware 1=Software
enc-type=0
sync=0
bitrate=4000000
#H264 Profile - 0=Baseline 2=Main 4=High
#H265 Profile - 0=Main 1=Main10
profile=0
# set below properties in case of RTSPStreaming
rtsp-port=8554
udp-port=5400

When I run

opt/nvidia/deepstream/deepstream-5.1/samples/configs/deepstream-app$ deepstream-app -c source8_1080p_dec_infer-resnet_tracker_tiled_display_fp16_nano.txt 

I get the same result again.

could you restart device and don’t set DISPLAY, and try again?

Thanks!

1 Like

Thank you this worked.

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