When I run the mmapi frontend sample, the preview does not come out, how can I make it appear?

Hello,

https://docs.nvidia.com/jetson/l4t-multimedia/l4t_mm_front_end.html
When I run the mmapi frontend sample, the preview does not come out, how can I make it appear?
The -no-preview option is not included.

The execution command is as follows.
sudo ./frontend --deploy …/…/data/Model/GoogleNet_three_class/GoogleNet_modified_threeClass_VGA.prototxt --model …/…/data/Model/GoogleNet_three_class/GoogleNet_modified_threeClass_VGA.caffemodel

Jetpack version is 4.6
imx219@imx219-desktop:/usr/src/jetson_multimedia_api/samples/frontend$ cat /etc/nv_tegra_release

R32 (release), REVISION: 6.1, GCID: 27863751, BOARD: t210ref, EABI: aarch64, DATE: Mon Jul 26 19:20:30 UTC 2021

Thank you.

Hi,
Please copy the sample to your home directory and run it without sudo
And please remember to set export DISPLAY=:0(or 1)

1 Like

Hello, @DaneLLL

I followed the instructions above, but still no video.

imx219@imx219-desktop:~$ export DISPLAY=:1
imx219@imx219-desktop:~$ ./frontend --deploy …/…/data/Model/GoogleNet_three_class/GoogleNet_modified_threeClass_VGA.prototxt --model …/…/data/Model/GoogleNet_three_class/GoogleNet_modified_threeClass_VGA.caffemodel
nvbuf_utils: Could not get EGL display connection
[ERROR] (NvEglRenderer.cpp:98) Error in opening display
[ERROR] (NvEglRenderer.cpp:154) Got ERROR closing display
Error generated. main.cpp, main:309 Failed to create EGL renderer
imx219@imx219-desktop:~$ ./frontend --deploy …/…/data/Model/GoogleNet_three_class/GoogleNet_modified_threeClass_VGA.prototxt --model …/…/data/Model/GoogleNet_three_class/GoogleNet_modified_threeClass_VGA.caffemodel
nvbuf_utils: Could not get EGL display connection
[ERROR] (NvEglRenderer.cpp:98) Error in opening display
[ERROR] (NvEglRenderer.cpp:154) Got ERROR closing display
Error generated. main.cpp, main:309 Failed to create EGL renderer
imx219@imx219-desktop:~$ export DISPLAY=:0
imx219@imx219-desktop:~$ ./frontend --deploy …/…/data/Model/GoogleNet_three_class/GoogleNet_modified_threeClass_VGA.prototxt --model …/…/data/Model/GoogleNet_three_class/GoogleNet_modified_threeClass_VGA.caffemodel
[INFO] (NvEglRenderer.cpp:110) Setting Screen width 640 height 480
PRODUCER: Creating output stream
PRODUCER: Launching consumer thread
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 8
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 8
892744264
842091865
Opening in BLOCKING MODE
NVMEDIA: H265 : Profile : 1
[2509857.340448] enc1: Waiting until producer is connected…
NvMMLiteOpen : Block : BlockType = 8
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 8
892744264
842091865
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 8
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 8
892744264
842091865
NVMEDIA: H265 : Profile : 1
[2509857.428767] enc0: Waiting until producer is connected…
NVMEDIA: H265 : Profile : 1
[2509857.448431] enc2: Waiting until producer is connected…
PRODUCER: Starting repeat capture requests.
[2509857.465549] enc0: Producer has connected; continuing.
[2509857.475555] enc1: Producer has connected; continuing.
[2509857.485333] enc2: Producer has connected; continuing.
NVMEDIA_ENC: bBlitMode is set to TRUE
NVMEDIA_ENC: bBlitMode is set to TRUE
NVMEDIA_ENC: bBlitMode is set to TRUE

Thank you.

Hi,
Do you set ENABLE_TRT := 1 and build the sample? Seems like there’s no prints about TensorRT in the log.

Hello,

I turned off trtenable in the make file.

Thank you.

Hi,
Without enabling TensorRT, it does not show anything in preview, so please run with --no-preview

1 Like

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