I connected to the running graph using GraphEdit and found the media type on the input to the Color Space Converter is ARGB32, while its output is RGB565. (The error message was "there is no common media type between these pins" in the exception.) I put a Color Space Converter between them, and that got the graph to build, but resulted in a black renderer window. The first attempt refused to connect the pins because they couldn't agree on a media type. Now I'm trying to build a Monitor Window graph which starts with a bridge source filter, feeding into a renderer. Consequently, I've got Color Space Converter filters between the Smart Tee and the bridge filters on the assumption they will be enforcing the desired video format. One of the things I discovered along the way is that Color Space Converter filters are needed between the Smart Tee and renderers for the video to work. However, since none of the rendering windows are attached, I really don't know. The architecture looks like this:Īssisted by this post (among other resources), I've gotten GMFBridge working to where the source graphs and processing graph are constructed and connected when the program starts, and the three graphs are theoretically running. I'm trying to build a DirectShow application with multiple cameras that may be connected, disconnected, or attached to preview monitors at arbitrary times, leaving the application's central processing graph running.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |