Git Product home page Git Product logo

libobs-sharp's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libobs-sharp's Issues

Capture to stream / file

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?

System.AccessViolationException in libobs-sharp.dll

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)

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: 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)

D3D11 loaded sucessfully, feature level used: 45056

video settings reset:
base resolution: 1280x720
output resolution: 1280x720
fps: 30000/1001

format: RGBA

audio settings reset:
samples per sec: 44100

speakers: 2

Loading module: coreaudio-encoder.dll
[CoreAudio encoder]: Failed loading library 'CoreAudioToolbox.dll'

[CoreAudio encoder]: Couldn't load CoreAudio AAC encoder

Loading module: image-source.dll

Loading module: obs-ffmpeg.dll

NVENC supported

Loading module: obs-filters.dll

Loading module: obs-outputs.dll

Loading module: obs-qsv11.dll

Loading module: obs-transitions.dll

Loading module: obs-x264.dll

Loading module: rtmp-services.dll

Loading module: text-freetype2.dll

Loading module: win-capture.dll

load_graphics_offsets: Failed to start 'get-graphics-offsets32.exe'

Loading module: win-decklink.dll
No blackmagic support

Failed to start search for DeckLink devices

Loading module: win-dshow.dll

Loading module: win-mf.dll

[Media Foundation encoder]: Adding Media Foundation AAC Encoder

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).

LibObs-Sharp with Obs Studio v18.0.1 - Access Violation in libobs.obs_load_all_modules()

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'.

ResetVideo failed

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?

Unable to load obs.dll error

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?

Any plans to support frontend API?

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:

Ref. https://github.com/jp9000/obs-studio/blob/8836592d92284c454f2e2d00b512837d9c53cbe9/UI/obs-frontend-api/obs-frontend-api.h#L47

Sample code

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 ๐Ÿค”.

Scene/Filter/Item ids

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"));

How can I run this test application

Guys, please tell me, how can I run this application? I have already tried everything - nothing comes out - does not see the obs.dll library.

I put the contents of the archive in a folder:
C:\Program Files\obs-studio\build64\rundir\Debug\bin\64bit

What am I doing wrong?
image

Issues with building obs-studio

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?

Which version of OBS

Hello,

Which version of OBS are you using as dll reference ?
I am lunching the app & there is "attemp to write memory" problem.
My actual version is 0.15.4.

Thanks,

Regards,

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.