About opening OBS exceptions through C# WPF applications

kaiS

New Member
I am using the following code to open obs through C# WPF. OBSInstallPath is known to be the actual OBS installation path "E:\ OBs-studio \bin\64bit\obs64.exe". The exception messages are Failed to find locale/en-Us.ini and Failed to load locale,
What do we do with this?
ProcessStartInfo psi = new ProcessStartInfo(OBSInstallPath);
psi.UseShellExecute = true; // Execute with the shell as needed
psi.Verb = "runas"; Try to run with administrator privileges (optional, as needed)
Process.Start(psi);
1718883345926.png
1718883338360.png
 

kaiS

New Member
Would like to ask, is it the reason of permission? Or if additional Settings are required
 

kaiS

New Member
The log information is as follows:

19:41:37.607: No AJA devices found, skipping loading AJA UI plugin
19:41:37.607: Failed to initialize module 'aja-output-ui.dll'
19:41:37.608: No AJA devices found, skipping loading AJA plugin
19:41:37.608: Failed to initialize module 'aja.dll'
19:41:37.608: Skipping module '../../obs-plugins/64bit/chrome_elf.dll', not an OBS plugin
19:41:37.610: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
19:41:37.610: Failed to load 'en-US' text for module: 'decklink-captions.dll'
19:41:37.610: Failed to load 'en-US' text for module: 'decklink-output-ui.dll'
19:41:37.612: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
19:41:37.612: Failed to initialize module 'decklink.dll'
19:41:37.618: Skipping module '../../obs-plugins/64bit/libcef.dll', not an OBS plugin
19:41:37.618: Skipping module '../../obs-plugins/64bit/libEGL.dll', not an OBS plugin
19:41:37.618: Skipping module '../../obs-plugins/64bit/libGLESv2.dll', not an OBS plugin
19:41:37.626: [obs-browser]: Version 2.23.4
19:41:37.626: [obs-browser]: CEF Version 103.0.5060.134 (runtime), 103.0.0-5060-shared-textures.2594+gc69ad37+chromium-103.0.5060.134 (compiled)
19:41:37.629: NVENC supported
19:41:38.447: [NVENC] AV1 is not supported
19:41:38.448: [noise suppress]: NVIDIA denoiser disabled, redistributable not found or could not be loaded.
19:41:38.449: Failed to get NVVideoEffects.dll version info size
19:41:38.449: [NVIDIA VIDEO FX]: FX disabled, redistributable not found or could not be loaded.
19:41:38.482: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.4.2 | RPC Version: 1)
19:41:38.482: [obs-websocket] [obs_module_load] Qt version (compile-time): 6.6.2 | Qt version (run-time): 6.6.2
19:41:38.483: [obs-websocket] [obs_module_load] Linked ASIO Version: 102900
19:41:38.489: [obs-websocket] [obs_module_load] Module loaded.
19:41:38.491: Failed to load 'en-US' text for module: 'obsplus.dll'
19:41:38.858: [obsplus] :  file can not update
 

kaiS

New Member
You need to set the start directory to the directory where the obs exe is located.
The starting directory should be set to the directory where obs exe resides. Does it mean that my C# WPF application needs to be installed in the same directory as OBS to open OBS?
 

kaiS

New Member
Excuse me, I use the following code to open work through c# WPF. OBSInstallPath is the actual installation path of OBS E:\ OBs-studio \bin\64bit\obs64.exe. The exception messages are "failed to find locale/en-Us.ini" and "Failed to load locale."
What am I supposed to do?
 

koala

Active Member
How to start a process from c# is not really a topic for this forum. This is a quite basic programming topic and a huge number of examples can be found by googling or by just asking chatgpt for something like "With c# wpf I want to start a process and give a working directory". Chatgpt doesn't just accept English, it's able to understand questions and output answers in many other languages, so ask chatgpt in your native language and see what happens.
 
Top