Preview camera stream in headless mode


I am using Jetson TX2 to preview camera stream while saving the images to file and I am using the sample application 09_camera_jpeg_capture. I have to turn off the GUI to save space and compute for other applications. After that, I can’t run the program and got the output:

[ERROR] (NvEglRenderer.cpp:98) <renderer0> Error in opening display
[ERROR] (NvEglRenderer.cpp:154) <renderer0> Got ERROR closing display
Error generated. main.cpp, main:546 Failed to create EGLRenderer.

Is there any way to preview the camera stream in headless mode?

Thank you for your help.

Does it work if you run

$ gst-launch-1.0 nvarguscamerasrc ! nvoverlaysink

The 09 sample use NvEglRenderer by default and it depends on X11. If you disable X11, would need to customize the sample to use NvDrmRenderer. DRM is demonstrated in 08 sample.

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