DirectShowMBS Video Size

I have 8MP cameras ( 3264 x 2448). I can verify that this resolution is supported by using the “PlayCap with format settings” MBS example app to display the supported formats, and it shows 3264 x 2448 as available. Using the MBS example apps, however, I get only 1600 x 1200.

I see that DirectShowVideoWindowMBS has width and height parameters, but I don’t think that’s what I’m looking for. I suspect it has something to do with the media type passed to DirectShowCaptureGraphBuilderMBS.RenderStream, but that’s as far as I can get. The MBS docs point to MSFT docs which are gibberish to me.

What do I have to do to set the format in order to get a 3264 x 2448 stream?

Thanks!

We have SetupHighestResolution function to help there.

But also DirectShowMediaTypeMBS class can be queried with DirectShowAMStreamConfigMBS.MediaTypes, then pick one and assign to DirectShowAMStreamConfigMBS.Format property.

1 Like

It’s a Beautiful Thing, thanks for this function and the quick response!