Can not run camera_recording on Jetson tx2.

Hi,

After install Jetpack 3.1, I get the camera_recording from tegra_multimedia_api/samples/10_camera_recording.

Only the on board camera is available on my Jetson TX2.

The log is as follows:

nvidia@tegra-ubuntu:~/tegra_multimedia_api/samples/10_camera_recording$ ./camera_recording
Set governor to performance before enabling profiler
PCLHW_DTParser
PCLHW_DTParser
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16LoadOverridesFile: looking for override file [/data/nvcam/settings/camera_overrides.isp] 2/16LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 3/16LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 4/16LoadOverridesFile: looking for override file [/data/nvcam/camera_overrides.isp] 5/16LoadOverridesFile: looking for override file [/data/nvcam/settings/e3326_front_P5V27C.isp] 6/16LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/e3326_front_P5V27C.isp] 7/16LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/e3326_front_P5V27C.isp] 8/16---- imager: No override file found. ----
PRODUCER: Creating output stream
(Argus) Error NotSupported: Failed to initialize EGLDisplay (in src/eglutils/EGLUtils.cpp, function getDefaultDisplay(), line 75)
(Argus) Error NotSupported: Failed to get default display (in src/api/OutputStreamImpl.cpp, function initialize(), line 80)
(Argus) Error NotSupported: (propagating from src/api/CaptureSessionImpl.cpp, function createOutputStreamInternal(), line 565)
PRODUCER: Launching consumer thread
(Argus) Error BadParameter: NULL output stream (in src/eglstream/FrameConsumerImpl.cpp, function create(), line 25)
Error generated. main.cpp, threadInitialize:142 Failed to create FrameConsumer
Error generated. /home/nvidia/tegra_multimedia_api/argus/samples/utils/Thread.cpp, threadFunction:126 (propagating)
Error generated. main.cpp, execute:440 (propagating)

How can i fix this issue?

By the way, when I was installing the Jetpack 3.1, some lib file failed to be installed such as libopencv4tegra, libopencv4tegra-dev, cuda-toolkit-8-0. Could this be the reason for camera_recording failed?

Thanks.

Hi yafei,
We don’t reproduce the issue. It is due to the failure:

(Argus) Error NotSupported: Failed to initialize EGLDisplay (in src/eglutils/EGLUtils.cpp, function getDefaultDisplay(), line 75)

Do you manually stop some services about EGLDisplay?

Hi DaneLLL,

The error you mentioned last time can be fixed through “export DISPLAY=:0”.

What does “export DISPLAY=:0” means?

I don’t know if this is “manually stop some service about EGLDisplay”.

Whatever, problem resolved.

Thanks.

Please read tegra_multimedia_api\READ.md carefully.