ofVideoGrabber and OBS virtual camera

Hello,

I am trying to create a virtual camera using OBS so I can use it with openframeworks ofVideoGrabber.
The virtual Camera is recognized by openframeworks using .listDevices.

The issue is that when i run the program i get the following error:

Error: SampleCB() buffer sizes do not match

Can anyone help with this issue? I am using Windows 10 OS

Thanks

1 Like

check to see what size you are setting the ofVideoGrabber to in the setup - and see if this matches (the size that OBS is sending as a virtual camera) obs will probably send the size of your desktop / mail screen so you may need to call setup() with this size ofVideoGrabber | openFrameworks

You can connect them also using NDI.

There’s some app/add-on to communicate (ie: scenes switching) too: