Set the properties of a DirectShow filter (not DMO filter) in code (no GUI)
-
Ok, so I have been trawling the web to try and find an answer to this, but to no avail. Basically, I have a DirectShow filter (well 2) which will allow me to configure a Hauppage WinTV USB adapter (though I doubt the specific filter is 100% relevant to answer the question) to use PAL (I) and to set the source as Composite In. So far, I have found ways to display a filter's property page, and to change the settings of a DMO filter, but not enumerate and change the properties of a non DMO source filter. The reason for needing to do this is that both filter options seem to reset with Windows, meaning that our source becomes NTSC and Tuner In, rather than Pal-I and Composite In. The filters are classed as a Video Capture Source (WinTV HVR-900H Capture) and a WDM Streaming Crossbar Device (WinTV HVR-900H Crossbar), but the ability to change any property of any filter sans a GUI will be a step in the right direction I am using a .Net wrapper to play with the filter graph through c#, but have limited knowledge of COM interop (thus the wrapper). Any answers in C++ are fine and dandy also, then I'll worry about how to convert them to C#, just in need of an example really. What's the easiest method to go about this?
-
Ok, so I have been trawling the web to try and find an answer to this, but to no avail. Basically, I have a DirectShow filter (well 2) which will allow me to configure a Hauppage WinTV USB adapter (though I doubt the specific filter is 100% relevant to answer the question) to use PAL (I) and to set the source as Composite In. So far, I have found ways to display a filter's property page, and to change the settings of a DMO filter, but not enumerate and change the properties of a non DMO source filter. The reason for needing to do this is that both filter options seem to reset with Windows, meaning that our source becomes NTSC and Tuner In, rather than Pal-I and Composite In. The filters are classed as a Video Capture Source (WinTV HVR-900H Capture) and a WDM Streaming Crossbar Device (WinTV HVR-900H Crossbar), but the ability to change any property of any filter sans a GUI will be a step in the right direction I am using a .Net wrapper to play with the filter graph through c#, but have limited knowledge of COM interop (thus the wrapper). Any answers in C++ are fine and dandy also, then I'll worry about how to convert them to C#, just in need of an example really. What's the easiest method to go about this?
-
Sorry, I thought as it was, in fact, relevant to the places I put it, that was acceptable. Was more through my frustration of trawling the web to no avail. Suprised no one else has asked this question before?
-
Sorry, I thought as it was, in fact, relevant to the places I put it, that was acceptable. Was more through my frustration of trawling the web to no avail. Suprised no one else has asked this question before?
-
Yep, read that and it said only not to put a link to your post in an inappropriate forum: "9.Please do not post links to your question in one forum from another, unrelated forum (such as the lounge)." I understand what you are saying though, but didn't know which of the forums to post in. I'll take note for next time. Any how, did you know which filter graph builder I should use to import the settings from the GRF file? I expect I'll figure which method to use from there.
-
Yep, read that and it said only not to put a link to your post in an inappropriate forum: "9.Please do not post links to your question in one forum from another, unrelated forum (such as the lounge)." I understand what you are saying though, but didn't know which of the forums to post in. I'll take note for next time. Any how, did you know which filter graph builder I should use to import the settings from the GRF file? I expect I'll figure which method to use from there.