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