I used search on StackOverflow, but I didn’t find the answer. I’m developing an application and use OpenCV, but I need to work with different videos (mostly *.avi), so I decided to use DirectShow. I was able to create simple application, but I can’t find any explanation how to get frames from *.avi, without creation of ActiveWindow. In fact, I need only to read video with DirectShow and then I’ll use OpenCV to process and show video.
Any help appreciated. Thanks in advance!
Excuse me for my awful English.
Create a graph with a NULL render. Also look at sample grabber example in directshow SDK. It shows how to grab a frame for a graph. You can then pass on the frame to openCV for processing.