I have found the answer to my own question, as so invariably happens.
By using the Media 9 SDK, asf format files (in this case .wmv) can be re-indexed - therefore allowing the likes of DirectShow SampleGrabber to set frame accurate times. This does slightly increase the size of the file, as...
I am trying to grab frames (ISampleGrabber) from various formats, one of which is Windows Media Video (.wmv). As this uses variable bit rate encoding, then it is not possible to set the time format (IMediaSeeking->SetTimeFormat()) to TIME_FORMAT_FRAME.
I have been looking at the Directshow...
You need to look at the SampleGrabber (ISampleGrabber), there are examples within the DX 8.1, under capture - but they do require an input device (camera, etc).
I have seen some code on the CodeProject (www.codeproject.com) by Markus Axelsson entitled "Extracting bitmaps from movies using...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.