简体   繁体   中英

How to make directShow to Create graph automatically with available filters

I want to use the Medialooks multisource filter in my application, This has entry in HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\ But still i have to Add this filter manually using CLS_ID and AddFilter Function.

Is there any way so that Renderfile function of Dshow will automatically creates a graph by enumerating the filters from registry

Checked in Grphedt tool but if i manually insert and connect Filters I can play the videos properly.Otherwise it wont render automatically by building the graph

Ability yo connect filters and obtain a topology of your interest is one thing, and having this sort of connection taking place during Intelligent Connect is another thing. For Intelligent Connect and RenderFile the filters of interest must be apparently registered, and then they have accurate DirectShow registration details: merit, media types. Quite so often filters are lacking this registration (and at other times they are "over-registrating" themselves so that they are picked up when they are obvious misfit).

Even though you can re-register filter yourself (see IFilterMapper2::RegisterFilter ) with alternate registration details, you typically do not do it. It's filter developer's business to register accurately. The better alternative for you is to build graph using AddFilter calls where you have fine control over graph construction. Or you might want to do it as a fallback construction method if RenderFile fails in first place.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM