AVStream: failed to connect TV tuner and TV audio decoder filters.

Discussion in 'Windows Vista Drivers' started by Edward Hsu, Sep 17, 2004.

  1. Edward Hsu

    Edward Hsu Guest

    Dear All,
    I implement a TV tuner, TV audio decoder and crossbar filters. I also
    implement PROPSETID_TUNER, PROPSETID_VIDCAP_CROSSBAR and
    PROPSETID_VIDCAP_TVAUDIO property set for them. My current status is that I
    could connect TV video pin of tuner filter to crossbar filter successfully.
    But I cannot connect TV audio outpin of tuner filter to TV audio inpin of TV
    audio filter.
    What value should I set to the TVAudioMedium fileld of
    KSPROPERTY_TUNER_CAPS_S structure if I want to connect TV audio outpin of
    tuner filter to TV audio filter (not crossbar filter)?
    PS : I have ever tried to set the GUID of TVAudioMedium to GUID_NULL and
    then my tuner audio outpin of tuner filter disappear.
    Any comments are welcome and very appreciated.
    Thanks,
    Edward
     
    Edward Hsu, Sep 17, 2004
    #1
    1. Advertisements

  2. Edward Hsu

    Max Paklin Guest

    Most likely reason is a mismatch between reported medium GUIDs.
    Open up GraphEdit and check what it shows as a medium GUID in Insert Filter
    dialog (you can browse filter and its pins).

    Internally TV Tuner must be making assumption that any pin must have its
    medium GUID to set to nonzero value (GUID_NULL is all zeros) so it ignores
    and doesn't expose the pin with "empty" medium.

    -- Max.
     
    Max Paklin, Sep 20, 2004
    #2
    1. Advertisements

  3. Edward Hsu

    Edward Hsu Guest

    I could only see the FriendlyName of TV tuner and audio decoder filters
    in InsertFilter dialog of GraphEdit. Do I need to setup some flags or
    parameters to show pin infos on it?

    Thanks,
    Edward
     
    Edward Hsu, Sep 21, 2004
    #3
  4. Edward Hsu

    Edward Hsu Guest

    I found a strange situation to display pin infos of TV tuner filter in
    InsertFilter dialog of GraphEdit. The pin infos will display on it if I
    register CLSID for ksproxy.ax.
    ************************************************
    [TVTuner.Interface.AddReg]
    HKR,,CLSID,,{17CCA71B-ECD7-11D0-B908-00A0C9223196}
    HKR,,FriendlyName,,%TVTuner.FriendlyName%
    ************************************************
    These pin infos will disappear if I register CLSID_CTVTunerFilter
    (kstvtune.ax).
    ************************************************
    [TVTuner.Interface.AddReg]
    HKR,,CLSID,,{266EEE40-6C63-11cf-8A03-00AA006ECB65}
    HKR,,FriendlyName,,%TVTuner.FriendlyName%
    ************************************************

    How could I register IAMTVTune (kstvtune.ax) interface and display pin
    infos on InsertFilter dialog of GraphEdit? Do you have any suggestion about
    my problem? Any comments are very appreciated.

    Thanks,
    Edward
     
    Edward Hsu, Sep 21, 2004
    #4
  5. Edward Hsu

    Max Paklin Guest

    TV tuners have to be handled by kstvtune.ax. Changing it to KS Proxy is
    asking for trouble. It won't work as kstvtune.ax implements basic tuning
    interfaces and ksproxy.ax doesn't.

    You do call KsRegisterFilterWithNoKSPins on your tuner filter, don't you?

    -- Max.


     
    Max Paklin, Sep 21, 2004
    #5
  6. Edward Hsu

    Edward Hsu Guest

    Hi Max,

    You are right. I forgot to call KsRegisterFilterWithNoKSPins routine.
    After called this routine, I could see pin's medium in InsertFilter dialog of
    GraphEdit. I checked the medium values for TV audio outpin of TV tuner filter
    and TV audio inpin of TV audio filter. They are same. But I still cannot
    connect these two pins. Do you have any other suggestions?

    Thanks,
    Edward

     
    Edward Hsu, Sep 21, 2004
    #6
  7. Edward Hsu

    Edward Hsu Guest

    Hi Max,

    I could connect TV audio outpin of TV tuner filter to TV audio inpin of
    TV audio filter after set InputMedium and OutputMedium fields of
    KSPROPERTY_TVAUDIO_CAPS_S structure. PS : In DDK document, it mentioned that
    InputMedium and OutputMedium fields are reserved for system use.

    Thanks,
    Edward

     
    Edward Hsu, Sep 21, 2004
    #7
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.