运行开放广播软件 (OBS Studio) 时出现问题

运行开放广播软件 (OBS Studio) 时出现问题

我正在尝试运行 OBS Studio,但我只有 Open GL 版本 2.0,而文档指出最低版本是 3.3。我正在运行 Ubuntu 18.04,花了几个小时浏览网站试图将我的 opengl 版本升级到 3.3,但没有成功。有人能帮忙吗?或者有没有其他 OBS 的替代品来录制视频(例如从 zoom 录制流媒体视频)?我对 Linux 真的很陌生。

我尝试运行 obs 时遇到的错误如下。谢谢


当我跑步时glxinfo | grep "OpenGL"我得到

OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Mobile Intel® GM45 Express Chipset (CTG)
OpenGL version string: 2.1 Mesa 20.0.8
OpenGL shading language version string: 1.20
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 20.0.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
OpenGL ES profile extensions:

***************************************************************
ERROR

Attempted path: share/obs/obs-studio/locale/en-US.ini
Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/themes/Dark.qss
Attempted path: /usr/share/obs/obs-studio/themes/Dark.qss
info: CPU Name: Intel(R) Core(TM)2 Duo CPU     P8400  @ 2.26GHz
info: CPU Speed: 1401.118MHz
info: Physical Cores: 2, Logical Cores: 2
info: Physical Memory: 3841MB Total, 207MB Free
info: Kernel Version: Linux 4.15.0-135-generic
info: Distribution: "Ubuntu" "18.04"
info: Session Type: x11
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.19.6
info: Portable mode: false
Attempted path: share/obs/obs-studio/themes/Dark/no_sources.svg
Attempted path: /usr/share/obs/obs-studio/themes/Dark/no_sources.svg
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_destroyed()
QMetaObject::connectSlotsByName: No matching signal for on_actionGridMode_triggered()
QMetaObject::connectSlotsByName: No matching signal for on_program_customContextMenuRequested(QPoint)
QMetaObject::connectSlotsByName: No matching signal for on_transitionRemove_clicked()
info: OBS 26.1.1 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
    samples per sec: 48000
    speakers:        2
info: ---------------------------------
info: Initializing OpenGL...
error: X Error: GLXBadFBConfig, Major opcode: 155, Minor opcode: 34, Serial: 29
error: Failed to create OpenGL context.
error: Failed to create context!
error: device_create (GL) failed
error: Failed to initialize video.  Your GPU may not be supported, or your graphics drivers may need to be updated.
info: Freeing OBS context data
info: == Profiler Results =============================
info: run_program_init: 6485,01 ms
info:  ┣OBSApp::AppInit: 5,389 ms
info:  ┃ ┗OBSApp::InitLocale: 2,478 ms
info:  ┗OBSApp::OBSInit: 300,642 ms
info:    ┣obs_startup: 28,175 ms
info:    ┗OBSBasic::OBSInit: 67,982 ms
info:      ┣OBSBasic::InitBasicConfig: 0,246 ms
info:      ┣OBSBasic::ResetAudio: 0,399 ms
info:      ┗OBSBasic::ResetVideo: 67,208 ms
info: obs_hotkey_thread(25 ms): min=0,167 ms, median=0,713 ms, max=19,491 ms, 99th percentile=11,759 ms, 100% below 25 ms
info: audio_thread(Audio): min=0,004 ms, median=0,071 ms, max=0,155 ms, 99th percentile=0,145 ms
info: =================================================
info: == Profiler Time Between Calls ==================
info: obs_hotkey_thread(25 ms): min=25,306 ms, median=25,836 ms, max=44,57 ms, 3,38983% within ±2% of 25 ms (0% lower, 96,6102% higher)
info: =================================================
info: Number of memory leaks: 182
 

答案1

在 Debian 10 上对我有用的是: LIBGL_ALWAYS_SOFTWARE=1 obs或者在最后的 obs-studio,如果它是运行 obs 的二进制命令

来源:https://obsproject.com/forum/threads/failed-to-initialize-video-your-gpu-may-not-be-supported-or-your-graphics-drivers-may-need-to-be-updated.86284/

相关内容