johnboiles / coremediaio-dal-minimal-example

Intended to be the most minimalistic example of a macOS CoreMediaIO DAL plugin.
MIT License
211 stars 31 forks source link

Feeding the plugin with samples@Runtime #18

Closed Raj123456788 closed 2 years ago

Raj123456788 commented 4 years ago

When I select the this plugin as my camera source in Teams or zoom. I want to show a dynamic picture .How can I feed the plugin with sample buffer? Please point me to an example or documentation.

gxalpha commented 4 years ago

https://github.com/johnboiles/obs-mac-virtualcam uses this, you can try to look there.

Raj123456788 commented 4 years ago

How do I debug virtualcam in Xcode?

gxalpha commented 4 years ago

Check out this: https://github.com/johnboiles/obs-mac-virtualcam/wiki/Developing#debugging-the-dal-plugin It is for the obs virtualcam but should be the same for this sample.

Raj123456788 commented 4 years ago

Details

Could not attach to pid : “9781” Domain: IDEDebugSessionErrorDomain Code: 3 Failure Reason: Error 1 User Info: { DVTRadarComponentKey = 855031; RawLLDBErrorMessage = "Error 1"; }

System Information

macOS Version 10.15.4 (Build 19E266) Xcode 11.4 (16134)

Raj123456788 commented 4 years ago

Can you please make the obscamplugin as xcode project?It will be easier to debug.

sivrish commented 4 years ago

@gxalpha I've successfully used https://github.com/johnboiles/obs-mac-virtualcam to create a virtual cam plugin but when I tried to add the Mach Server to my mac app and try to run the mach server is not starting. I'm getting the error " Unable to open mach server port. ". I followed the same as it that obs-mac-virtualcam plugin. Do I have to add any permissions to my .plist for the mach server to work or It doesn't work when it's added to the mac app itself ? Thanks in advance

gxalpha commented 4 years ago

Hey @sivrish , I'm unfortunately not completely into the details, so I'm afraid I can't help you there. Maybe try asking @johnboiles for help, he probably has more knowledge and experience with the topic.

sivrish commented 4 years ago

@johnboiles can you please shed some light on this

Raj123456788 commented 4 years ago

@sivrish: Are you able to send any buffers to the plugin? Would be great if you have an example?

gxalpha commented 4 years ago

@Raj123456788 the https://github.com/johnboiles/obs-mac-virtualcam uses this as the DAL plugin, you can check the functionality there if you need examples

Raj123456788 commented 3 years ago

@gxalpha : It has been more than 10 days and I am still struggling with sending buffers. I am able to see obs sending the buffers to virtualcam. Is there a easy example that I can follow rather than trying to debug from obs-studio code repository?

gxalpha commented 3 years ago

No, I am not aware of any other example the the obs-mac-virtualcam.

johnboiles commented 2 years ago

Other than what OBS uses, you can also read about how to use XPC on Mac to send data between processes.