Unable to run jetson_multimedia_api 03_video_cuda_enc example inside jetpack:r35.3.1 container: No protocol specified

I am trying to run the jetson_multimedia_api sample 03_video_cuda_enc, /usr/src/jetson_multimedia_api/samples/03_video_cuda_enc/, but i am getting the following error:

No protocol specified
No EGL Display 
nvbufsurftransform: Could not get EGL display connection
No protocol specified
Could not get EGL display connection

I am running this inside a nvcr.io/nvidia/l4t-jetpack:r35.3.1 container on an Orin (not through ssh). My full docker run command is:
docker run -it --rm --net=host --runtime nvidia -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix nvcr.io/nvidia/l4t-jetpack:r35.3.1 bash. Once inside the container i run the following:

apt install libdrm-dev libvulkan-dev
cd /usr/src/jetson_multimedia_api/samples/03_video_cuda_enc
make
./video_cuda_enc 

Any idea how to resolve this? Thanks!

Hi,
This is configured in the docker run command:

-e DISPLAY=$DISPLAY

Please check if you configure DISPLAY before docker run

confirmed that DISPLAY is set to the following both inside and outside the container:

# echo $DISPLAY
:0

Hi,
Please try the commands:

$ export DISPLAY=:0
$ xrandr
$ xhost +
$ sudo docker run -it --rm --net=host --runtime nvidia -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix nvcr.io/nvidia/l4t-jetpack:r35.3.1

If it fails in xrandr, please set DISPLAY=:1 and try again.

export DISPLAY=:1 resolves the No protocol specified error i was getting. Now i get:

root@EAC-5000:/home/ubuntu/workspace/gmsl-camera-manager# xrandr
Can't open display :1

which is expected since im remoted into the container.

However, i am still getting the following errors (warnings?)

No EGL Display 
nvbufsurftransform: Could not get EGL display connection
nvbuf_utils: Could not get EGL display connection

Hi,
Do you use AGX Orin developer kit or your custom board? We don’t see the issue on developer kit.

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