c++ - Dump DirectShow filter graph to image or text file -


for debug/logging purposes i'd see filter graph looks on client's pc. added code dump graph graphedit file, problem can view on pc has exact same filters installed. there way dump graph image (like graphedit screen shot) or text file (filter1 > filter2 etc.)?

there no built-in capability dump graph. mention not dump of graph exactly, , rather persistent state. discover effective topology eiher:

  1. enumerate filters , connections in code (to log file etc)
  2. put graph on running object table in code, connect external tool (graphedit, graphstudionext etc), including generation of text/picture share further; note need proppage.dll windows sdk have running
  3. [temporary] install (com register regsvr32) directshowspy #2 built application, no need add code publishing graph
    • if code can detect spy presence can skip proppage.dll thing , generate extensive textual graph dumps code, connections, media types etc - see post details , c# code snippet
    • or, directshowspy-aware code might load spy explicitly , attach graph text information, in case no spy registration necessary (spy not production environment; registration requires administrative privileges otherwise unnecessary)
    • when registered, without proppage.dll, spy logs graph activity including topology information directshowspy.log file in either csidl_common_appdata or clsid_appdata directory.

Comments