OBS Studio not working ("Failed to initalize video" error) (Dell Inspiron 6400) (Lubuntu 20.04.1 LTS)

I installed OBS Studio via Discover, but, when I open it, it gives the following error dialogue, and then quits:

Failed to initialize video. Your GPU may not be supported, or your graphics drivers may need to be updated.

Is there any solution to this problem? I am using a Dell Inspiron 6400 laptop with Lubuntu 20.04.1 LTS (dual boot with an old version of Windows). In case it were relevant in diagnosing the problem, here are some of my CPU details (extracted via lshw):

  *-core
       description: Motherboard
       physical id: 0
     *-memory
          description: System memory
          physical id: 0
          size: 2GiB
     *-cpu
          product: Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz
          vendor: Intel Corp.
          physical id: 1
          bus info: cpu@0
          size: 1917MHz
          capacity: 2GHz
          width: 64 bits
          capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx x86-64 constant_tsc arch_perfmon pebs bts rep_good nopl cpuid aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm pti tpr_shadow dtherm cpufreq
     *-pci
          description: Host bridge
          product: Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 03
          width: 32 bits
          clock: 33MHz
        *-display:0
             description: VGA compatible controller
             product: Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 03
             width: 32 bits
             clock: 33MHz
             capabilities: vga_controller bus_master cap_list rom
             configuration: driver=i915 latency=0
             resources: irq:16 memory:eff00000-eff7ffff ioport:eff8(size=8) memory:d0000000-dfffffff memory:efec0000-efefffff memory:c0000-dffff
        *-display:1 UNCLAIMED
             description: Display controller
             product: Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller
             vendor: Intel Corporation
             physical id: 2.1
             bus info: pci@0000:00:02.1
             version: 03
             width: 32 bits
             clock: 33MHz
             capabilities: bus_master cap_list
             configuration: latency=0
             resources: memory:eff80000-efffffff
        *-multimedia
             description: Audio device
             product: NM10/ICH7 Family High Definition Audio Controller
             vendor: Intel Corporation
             physical id: 1b
             bus info: pci@0000:00:1b.0
             version: 01
             width: 64 bits
             clock: 33MHz
             capabilities: bus_master cap_list
             configuration: driver=snd_hda_intel latency=0
             resources: irq:26 memory:efebc000-efebffff

I have read a few fora online, most of them concerning Windows operating systems. Some suggest the situation can be resolved by installing a third-party plug-in; others say that it is an inherent limitation of the hardware, and that no solution is possible (short of changing the graphics card inside the machine or getting a new computer).

If it would not be possible (or would be very difficult) to make OBS Studio work, I would be interested to hear about any alternatives that would work (NB: I already have Audacity, but that does not do video). I know my laptop is old, but it does manage to run Audacity, Zoom, and Skype without problems (as long as I do not try to run them simultaneously!), so I am hopeful that there would be some means of editing video and even broadcasting it in real time. I know VLC can receive live broadcasts, but am not clear as to whether it has a webcam+mic live broadcasting mechanism.

According to this forum post, the graphic card must support at least OpenGL 3.2.

You can check it with

sudo apt install mesa-utils
glxinfo | grep OpenGL
1 Like

I have just taken the steps described by apt-ghetto. The relevant line from the output of glxinfo | grep OpenGL suggests that my graphics card does not support OpenGL 3.2:

OpenGL version string: 1.4 Mesa 20.0.8

The forum post cited by apt-ghetto makes some mention of the possibility of upgrading drivers (ā€œsometimes you can try updating driversā€), so I might look into trying that (when I have more time on my hands), if I can find any upgrades. However, it is looking like my hardware will not support OBS Studio.

1 Like

You have a log of OBS?

Sorry, I do not understand what you mean by ā€œa log of OBSā€. Do you mean the output if I attempt to run via Terminal? If so, this is what I got upon running obs:

qt5ct: using qt5ct plugin
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 CPU         T7200  @ 2.00GHz
info: CPU Speed: 1093.227MHz
info: Physical Cores: 2, Logical Cores: 2
info: Physical Memory: 1978MB Total, 168MB Free
info: Kernel Version: Linux 5.4.0-47-generic
info: Distribution: "Ubuntu" "20.04"
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.20.8
info: Portable mode: false
qt5ct: D-Bus global menu: no
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)
info: OBS 25.0.3+dfsg1-2 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
        samples per sec: 44100
        speakers:        2
info: ---------------------------------
info: Initializing OpenGL...
error: X Error: GLXBadFBConfig, Major opcode: 152, Minor opcode: 34, Serial: 28
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.
qt5ct: palette support is disabled
qt5ct: custom style sheet is disabled
info: Freeing OBS context data
info: == Profiler Results =============================
info: run_program_init: 3628.9 ms
info:  ā”£OBSApp::AppInit: 73.248 ms
info:  ā”ƒ ā”—OBSApp::InitLocale: 62.086 ms
info:  ā”—OBSApp::OBSInit: 715.602 ms
info:    ā”£obs_startup: 58.766 ms
info:    ā”—OBSBasic::OBSInit: 380.471 ms
info:      ā”£OBSBasic::InitBasicConfig: 1.634 ms
info:      ā”£OBSBasic::ResetAudio: 0.438 ms
info:      ā”—OBSBasic::ResetVideo: 365.24 ms
info: obs_hotkey_thread(25 ms): min=0.205 ms, median=0.384 ms, max=17.044 ms, 99th percentile=15.593 ms, 100% below 25 ms
info: audio_thread(Audio): min=0.028 ms, median=0.052 ms, max=0.191 ms, 99th percentile=0.155 ms
info: =================================================
info: == Profiler Time Between Calls ==================
info: obs_hotkey_thread(25 ms): min=25.309 ms, median=25.511 ms, max=42.194 ms, 43.9252% within Ā±2% of 25 ms (0% lower, 56.0748% higher)
info: =================================================
info: Number of memory leaks: 178

Try thisā€¦

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/

1 Like

It looks like I have a solution. From the forum hyperlink posted by Noumeno, I discovered that the following Terminal command launched the application successfully for me:

LIBGL_ALWAYS_SOFTWARE=1 obs

(NB: one has to use this command each time, although the forum suggests a way of setting it as default, which I have not yet tried).

I have successfully loaded OBS Studio, although I have not yet got round to actually recording/streaming something yet. In the meantime, many thanks.

1 Like

Ignore this message ā€“ it is simply to keep the thread open for another month (I have not yet got round to actually recording/streaming something, and intend to post an update if/when I have done so successfully).

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