Menu

BDA DTVViewer DirectShow Sample Windows 7

biswell
2009-10-27
2012-10-29
  • biswell

    biswell - 2009-10-27

    Hi,

    I have just tried running the BDA DTVViewer on Windows 7 and performed a tune
    for BBC News. The result is I get a black video window on the form and two
    floating Active Movie windows. I am looking into this at the moment but if
    anybody has details as to why this is happening please let me know.

    Many thanks
    Richard

     
  • biswell

    biswell - 2009-10-27

    The problem was caused by a change to the MPEG2 Demux filter on Windows 7. I
    was able to get this working by changing method ConnectFilters in class
    BDAGraphBuilder to the following:

    private void ConnectFilters()
    {
    int hr = 0;
    IPin pinIn = null;
    IPin pinOut = null;

    int pinsToRender = { 0, 2, 6 };

    for (int i = 0; i < pinsToRender.Length; i++)
    {
    try
    {
    pinOut = DsFindPin.ByDirection(mpeg2Demux, PinDirection.Output,
    pinsToRender_);

    if (i == 0)
    {

    this.bdaTIF.FindPin("IB Input", out pinIn);

    hr = this.graphBuilder.Connect(pinOut, pinIn);
    }
    else
    {
    hr = this.graphBuilder.Render(pinOut);
    }
    }
    finally
    {
    if (pinIn != null) {
    Marshal.ReleaseComObject(pinIn);
    }
    if (pinOut != null) {
    Marshal.ReleaseComObject(pinOut);
    }
    }
    }
    }

    Regards
    Richard Biswell
    Icknield Solutions Ltd
    _

     
  • Anonymous

    Anonymous - 2009-10-28

    thanks, that worked for me too. i had a similar solution but hadn't realised
    the TIF wasn't connecting when then pin was rendered.

     
  • anton winter

    anton winter - 2009-12-31

    hi,

    the solution didnt work for me for sound. the sound only comes out if i remap
    the PID from Pin 4 to Pin 7 whilest the graph is running.

    have you guys had this experience? if so how did u fix it?

     

Log in to post a comment.