How to open the render with ssh?

I have a mmp program, and the program can work well in jetson. I want to run it with ssh. But it shows me the error in opening display. Can jetson run the render with ssh?
I use ssh to login jetson and want to run a render program.
For example, jetson_multimedia_api/src/samples/00_video_decode/video_decode

Please execute $ export DISPLAY=:0(or 1) and then run the program. You can execute xrandr to confirm DISPLAY is correctly set.

No. I want to render from ssh remotely.
That meas I want to login by ssh and then ./video_decode H265 test.h265.
But it’s error
[ERROR] (NvEglRenderer.cpp:98) <renderer0> Error in opening display
[ERROR] (NvEglRenderer.cpp:154) <renderer0> Got ERROR closing display
Error in setting up renderer. Check if X is running or run with --disable-rendering

If I export DISPLAY=:0(or 1), it will show the same error

Do you mean ssh X11 fordwarding? We don’t support this mode. You would need to connect Jetson TX2 to a local TV to run video playback.

I connect Jetson TX2 to a local TV.
I want to develop tx2nx remotely. Because I don’t want to connect the keyboard and mouse to the tx2nx.
HostPC ssh client->network->tx2nx

You may reboot and see if display works. We are able to connect to remote TX2NX and run 00_video_decode:

$ ssh nvidia@
nvidia@'s password:
Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 4.9.253-tegra aarch64)

 * Documentation:
 * Management:
 * Support:
This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.

149 updates can be applied immediately.
101 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable

New release '20.04.3 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Last login: Wed Dec  8 14:56:48 2021 from
nvidia@dhcp-10-19-107-227:~$ export DISPLAY=:0
nvidia@dhcp-10-19-107-227:~$ cd /usr/src/jetson_multimedia_api/samples/00_video_
$ ./video_decode H264 ../../data/Video/sample_outdoor_car_1080p_10fps.h264
Set governor to performance before enabling profiler
Creating decoder in blocking mode
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
Setting frame input mode to 1
Starting decoder capture loop thread
Video Resolution: 1920x1080
[INFO] (NvEglRenderer.cpp:110) <renderer0> Setting Screen width 1920 height 1080
Decoder colorspace ITU-R BT.601 with standard range luma (16-235)
Query and set capture successful
1 Like

It works well. I missed the Symbol “:”

1 Like

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