gstVideoEncode Argus Example

I would like to run this example over SSH, but when I do I get this message:

[i]Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused

(argus_gstvideoencode:5663): Gtk-WARNING **: cannot open display: [/I]

Note: I am not looking to forward the X server, I am trying to encode the video without needing to display it. Setting the “display” to NULL in the nveglstreamsrc results in:

Can not start because egl_display and stream are not set

I think you would need to install a virtual server, such as for a virtual desktop. You would then set that as DISPLAY…you would not need to actually install a VNC application on your host since you don’t want to see it remotely, but basically you’d give the Jetson GPU a rendering context (a buffer instead of a display, but the software would be able to treat it like a display).