Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Graphics
  4. Set the properties of a DirectShow filter (not DMO filter) in code (no GUI)

Set the properties of a DirectShow filter (not DMO filter) in code (no GUI)

Scheduled Pinned Locked Moved Graphics
csharpcomtutorialquestionc++
6 Posts 2 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RobstaHendricks
    wrote on last edited by
    #1

    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?

    L 1 Reply Last reply
    0
    • R RobstaHendricks

      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?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Please don't spam the forums - ask your question once only in the appropriate forum.

      R 1 Reply Last reply
      0
      • L Lost User

        Please don't spam the forums - ask your question once only in the appropriate forum.

        R Offline
        R Offline
        RobstaHendricks
        wrote on last edited by
        #3

        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?

        L 1 Reply Last reply
        0
        • R RobstaHendricks

          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?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          RobstaHendricks wrote:

          I thought as it was, in fact, relevant to the places I put it, that was acceptable.

          No, it just means people get somewhat annoyed at reading the same question multiple times. Check this[^] out for the gudelines on how to use the forums correctly.

          R 1 Reply Last reply
          0
          • L Lost User

            RobstaHendricks wrote:

            I thought as it was, in fact, relevant to the places I put it, that was acceptable.

            No, it just means people get somewhat annoyed at reading the same question multiple times. Check this[^] out for the gudelines on how to use the forums correctly.

            R Offline
            R Offline
            RobstaHendricks
            wrote on last edited by
            #5

            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.

            L 1 Reply Last reply
            0
            • R RobstaHendricks

              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.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Sorry, I don't know the answer to your query, just hope someone else with the relevant knowledge sees the post.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups