I’d like to grab some samples from a video stream with a sample grabber from a capture device. This works well for the default 640*480 resolution. I’ve seen a few examples codes (for some reason I cant seem to open these thats why I’m asking) where it was possible to change the properties of the capture pin when selecting a capture device in a property window and I’d like to replicate this aswell. Could anyone give some advice concerning this?
Thanks.
I’d like to grab some samples from a video stream with a sample grabber
Share
Ask the pin for IAMStreamConfig interface, it will allow you to list available video modes and select desired one. You can test it in GraphEditPlus by right clicking the capture pin and selecting IAMStreamConfig::GetStreamCaps or IAMStreamConfig::SetFormat.