fan-chao / nvjmi

封装Jetson Multimedia API的编解码库,基于https://github.com/jocover/jetson-ffmpeg基础进行的修改,未集成于ffmpeg,可单独使用。
MIT License
31 stars 12 forks source link

不连接显示器的情况下 解码出来的数据是空的 #2

Closed mahxn0 closed 3 years ago

mahxn0 commented 3 years ago

NvEGLImageFromFd: No EGLDisplay to create EGLImage Error while mapping dmabuf fd (1539) to EGLImage

请问有啥设置可以在不连接显示器的情况下正常运行吗

fan-chao commented 3 years ago

1)nvbuf_utils: Could not get EGL display connection 并且eglGetDisplay(EGL_DEFAULT_DISPLAY)返回NULL? 解决方案: 1>在ssh终端输入unset DISPLAY,然后再运行程序即可。 2>vim /etc/profile,添加unset DISPLAY,然后souce /etc/profile生效,然后重启机器reboot。

mahxn0 commented 3 years ago

可以了 感谢大佬