Question / Help Capture from OBS dshow filters

danflu

New Member
Hi,
I'm a C++ developer working on a 3rd party windows software.
My software streams from webcam, capture cards and external applications (vmix).
Some of our customers do not want to pay for vmix licenses anymore and want to use OBS (as camera) with our software instead of vmix.

I'm struggling to make a code that captures audio and video frames from OBS dshow source filters. I simply get no frames.
Is there any working c++ sample code showing how a 3rd party app can capture from OBS in the same way like vmix ?

Thanks a lot,
Daniel
 

koala

Active Member
You can use OBS with the VirtualCam plugin, so if your software is able to use a webcam, no coding is required at all. If you insist on coding something, you can probably look in the github repository of that plugin to see how the developer of that plugin grabs video data from OBS.
 

danflu

New Member
Hi! thanks for your reply.
I'm already using virtualCam plugin.
The problem is that when trying to capture from dshow audio filter using directshow api (sample grabber filter) audio samples do not come.

The method STDMETHODIMP CapDShowBase::SampleCB( double sampleTime, IMediaSample * pSample ) is never called with audio samples. Video samples come normally.

I've already tried almost everything... I think there is a bug in OBS dshow audio filter implementation.
 
Top