Anton__

I've built a simple program which grabs snapshots of the video at certain positions using SampleGrabber and

NullRenderer. Everthing is cool so far, but I can open only limited set of video files. For example it refuses to open WMV files saying that it could not find an appropriate source filter.

GraphEdit somehow opens almost any video types. How does it do that How can I add it to my application

Thanks

Anton



Re: DirectShow Development How to find an appropriate DS source filter for any video file

Geraint Davies

AddSourceFilter should work for WMV files. If not, you have some registration problems I would guess. Graphedt uses RenderFile which in turn uses AddSourceFilter.

However, WMV files do not use the default File Source (Async) filter. So if you are opening the file with that filter and then trying to connect to the sample grabber, it's not going to work, as there is no demux filter registered for WMV files -- it's combined with the source filter. Either use AddSourceFilter to get the right source, or register the WMV demux from www.gdcl.co.uk (which will work with File Source (Async) for WMV files).

G





Re: DirectShow Development How to find an appropriate DS source filter for any video file

Anton__

Thanks, Geriant

And what about all other codec types, like quicktime mov files, divx, xvid, etc etc...





Re: DirectShow Development How to find an appropriate DS source filter for any video file

Geraint Davies

AddSourceFilter will work for any of these. However, if you want to explicitly insert File Source (Async) (or your own implementation), then it will depend on what you have installed. As far as I know, these file types are handled by a separate demux filter but some implementations of mpeg (including mpeg-4) files use combined source/parser filters.

G