Is there any helper tool for creating graphedit files “on the fly” (programmatically)

故事扮演 提交于 2019-12-24 16:17:11

问题


I notice that avisynth can accept as input a "live directshow source" only through a graphedit file that includes that source in it. Is there any help tool out there to create a graphedit file on the fly, given you know a capture sources name (and/or the output format you want from that pin)?

ref: http://betterlogic.com/roger/2012/05/avisynth-live-capture

The graphedit file syntax is described here: http://msdn.microsoft.com/en-us/library/windows/desktop/dd388788(v=vs.85).aspx (though it doesn't mention how to discover the right values to put in there).


回答1:


The file format is in the neighboring section on MSDN: Saving a Filter Graph to a GraphEdit File . Having a filter graph AND filter there with support for persistence (IPeristStream interface and friends), the function SaveGraphFile on MSDN article will save graph into GraphEdit-loadable file.



来源:https://stackoverflow.com/questions/10609283/is-there-any-helper-tool-for-creating-graphedit-files-on-the-fly-programmatic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!