goalitium / libobs-sharp Goto Github PK
View Code? Open in Web Editor NEW[not maintained] C# wrapper for libobs 0.15.4 (part of obs-studio, multiplatform rewrite of Open Broadcaster Software)
License: GNU General Public License v2.0
[not maintained] C# wrapper for libobs 0.15.4 (part of obs-studio, multiplatform rewrite of Open Broadcaster Software)
License: GNU General Public License v2.0
Is there sample code or documentation somewhere, like a getting started guide?
Hi, Really appreciate your work, have managed to get your library working and find that it does display the scenes and sources. Do you have plans on adding to the library? Specifically the ability to record or stream?
I've tried to get the test application and a brand new application working with the libobs-sharp.dll but keep running into this error when attempting to create a scene.
Any ideas on what I'm doing wrong - is it an architecture issue between x32 and x64?
libobs version: 0.15.0
CPU Name: Intel(R) Core(TM) i7-4712HQ CPU @ 2.30GHz
CPU Speed: 2295MHz
Physical Cores: 4, Logical Cores: 8
Physical Memory: 16287MB Total, 5784MB Free
Windows Version: 10.0 Build 10586 (revision: 0)
Initializing D3D11..
Available Video Adapters:
Adapter 1: Intel(R) HD Graphics 4600
Dedicated VRAM: 117964800
Shared VRAM: 4244142080
output 1: pos={0, 0}, size={1638, 922}, attached=true
output 2: pos={2048, 0}, size={1440, 900}, attached=true
output 3: pos={3488, 0}, size={1920, 1080}, attached=true
Adapter 2: NVIDIA Quadro K1100M
Dedicated VRAM: 2089680896
Shared VRAM: 4244142080
Loading up D3D11 on adapter Intel(R) HD Graphics 4600 (0)
video settings reset:
base resolution: 1280x720
output resolution: 1280x720
fps: 30000/1001
audio settings reset:
samples per sec: 44100
Loading module: coreaudio-encoder.dll
[CoreAudio encoder]: Failed loading library 'CoreAudioToolbox.dll'
Loading module: obs-ffmpeg.dll
Loading module: win-capture.dll
Loading module: win-decklink.dll
No blackmagic support
Loading module: win-mf.dll
Loading module: win-wasapi.dll
source 'test scene (1)' (scene) created
Exception thrown: 'System.AccessViolationException' in libobs-sharp.dll
The program '[25160] test.vshost.exe' has exited with code 0 (0x0).
Howdie, I'm trying this as a first-time user with latest Obs Studio (v18.0.1) and getting an access violation early in the run. Most issues I've seen in the repo are referencing much older versions. What is the latest supported version of obs-studio?
Is this comment still relevant? Would you expect recent builds to work without this flag set at OBS build time? #21 (comment)
Many thanks for any pointers you can offer!
'test.vshost.exe' (CLR v4.0.30319: test.vshost.exe): Loaded 'C:\Program Files (x86)\obs-studio\bin\64bit\libobs-sharp.dll'. Symbols loaded.
'test.vshost.exe' (CLR v4.0.30319: test.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
libobs version: 18.0.1
CPU Name: Intel(R) Core(TM) i7-4700HQ CPU @ 2.40GHz
CPU Speed: 2394MHz
Physical Cores: 4, Logical Cores: 8
Physical Memory: 8104MB Total, 2437MB Free
Windows Version: 10.0 Build 14393 (revision: 1066; 64-bit)
Running as administrator: true
Aero is Enabled (Aero is always on for windows 8 and above)
---------------------------------
Initializing D3D11..
Available Video Adapters:
Adapter 1: Intel(R) HD Graphics 4600
Dedicated VRAM: 117964800
Shared VRAM: 2147483648
output 1: pos={0, 0}, size={1920, 1080}, attached=true
Adapter 2: NVIDIA GeForce GTX 860M
Dedicated VRAM: 2116943872
Shared VRAM: 4248973312
Loading up D3D11 on adapter Intel(R) HD Graphics 4600 (0)
D3D11 loaded sucessfully, feature level used: 45056
---------------------------------
video settings reset:
base resolution: 1280x720
output resolution: 1280x720
downscale filter: Disabled
fps: 30000/1001
format: RGBA
---------------------------------
audio settings reset:
samples per sec: 44100
speakers: 2
---------------------------------
The program '[33528] test.vshost.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.
We get an error at ResetVideo with the example 'test' program. Dlls are loaded fine. Version: OBS 21.1.2 (64bit, windows)
Unhandled Exception: System.ApplicationException: ResetVideo failed.
at test.Program.InitObs() in C:\Users\Kaj\Documents\libobs-sharp-master\test\Program.cs:line 79
at test.Program.Main() in C:\Users\Kaj\Documents\libobs-sharp-master\test\Program.cs:line 39
What could be the problem?
Hi There,
when i run the Testform.cs it gives me this error?
Unable to load DLL 'obs.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) Can you please let me know what am I missing?
Starting with 0.16.0, there is a frontend API available. I tried to do a simple mockup, but this is not my forte and could not get passed a simple call to get scene names:
public static class libobsFrontend
{
public const string importLibrary = "obs-frontend-api.dll";
public const CallingConvention importCall = CallingConvention.Cdecl;
[DllImport(importLibrary, CallingConvention = importCall)]
public static extern string obs_frontend_get_scene_names();
}
During runtime, the call results in Tried to call obs_frontend_get_scene_names with no callbacks!
.
The call chain is here to here.
I'm stuck on creating callbacks and have no idea where to begin ๐ค.
Trying to add different things to the scene like window capture or video capture and then add filters to those (hardcoded) but I need ids to call these. Where can I find these ids. For example I am trying to add a crop filter like this but it seems that I don't quite get how to use this
var crop = new Filter("crop_pad","Crop", new ObsData("0,0,1920,1080"));
I don't know how to streaming now
I followed this https://github.com/jp9000/obs-studio to build Obs Studio to get 31 projects but ended up with these 49errors:freetype.lib(bdf.obj) : error LNK2019: unresolved external symbol sprintf referenced in function _bdf_parse_properties
the project text-Freetype2 is throwing errors: error LNK2019: unresolved external symbol sprintf referenced in function _bdf_parse_properties
Can you please tell me troubleshooting steps?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.