Windows Vista Forums

DirectShow
  1. #1


    teaser Guest

    DirectShow

    I'm pretty new to VB script (well, pretty new, I did some tutorials this
    morning; brought back some memories from the gwbasic days ) and what I want
    to do isn't very standard. I'm trying to access a webcam and show its preview
    stream in a window. I have an example from Microsoft
    (http://msdn.microsoft.com/en-us/library/ms787490.aspx) that uses DirectShow
    to does this. It's a program written in C++ code (and it works), but I'm
    trying to do it in VB script now. I'm quite sure it's possible since it's all
    COM.



    I know I need to use CreateObject, but I just don't know which object names
    to use to create an ICaptureGraphBuilder2 object for example. I also haven't
    got a clue where to find a listing of these object name. I've been googling
    all day for examples, but no luck Any help is appreciated!

      My System SpecsSystem Spec

  2. #2


    Alexander Mueller Guest

    Re: DirectShow

    teaser schrieb:

    > I'm pretty new to VB script (well, pretty new, I did some tutorials this
    > morning; brought back some memories from the gwbasic days ) and what I want
    > to do isn't very standard. I'm trying to access a webcam and show its preview
    > stream in a window. I have an example from Microsoft
    > (http://msdn.microsoft.com/en-us/library/ms787490.aspx) that uses DirectShow
    > to does this. It's a program written in C++ code (and it works), but I'm
    > trying to do it in VB script now. I'm quite sure it's possible since it's all
    > COM.
    A COM class needs an GUID but not necessarily a ProgID,
    this is one out of quite a number of reasons, why some things
    in COM can only be done with C++, but not with VB, C# or Java,
    and even less things can be done with VBS.

    Another reason is that VBS only supports automation datatypes
    which is a restricted subset of all types supported by COM.

    Yet another reason is that VBS requires IDispatch-support
    for any object, which again is optional for COM.
    In DirectShow only a small subset of classes do
    actually support IDispatch.



    > I know I need to use CreateObject, but I just don't know which object names
    > to use to create an ICaptureGraphBuilder2 object for example. I also haven't
    > got a clue where to find a listing of these object name. I've been googling
    > all day for examples, but no luck Any help is appreciated!
    I've never seen a VBS-project that does DirectShow
    Afaics DirectShow is a pure C++ API. There are some VB-hacks out
    though using VB-6 is generally deprecated by MS:
    http://msdn.microsoft.com/en-us/libr...52(VS.85).aspx

    You'll probably have a hard time using VB-6 instead of C++
    and VBS-DirectShow is literally impossible.


    MfG,
    Alex



      My System SpecsSystem Spec

  3. #3


    mayayana Guest

    Re: DirectShow

    > I've never seen a VBS-project that does DirectShow

    > Afaics DirectShow is a pure C++ API. There are some VB-hacks out
    > though using VB-6 is generally deprecated by MS:
    > http://msdn.microsoft.com/en-us/libr...52(VS.85).aspx
    >
    It looks like they're phasing out DirectShow, as it's not
    supported at all in .Net. Apparently the plan is to
    eventually remove DirectShow altogether. Lots of info.
    and links here, in case anyone is interested. But it's
    not clear, from what I read, whether or not the necessary
    support files are on Vista. -

    http://en.wikipedia.org/wiki/Directshow

    I get a kick out of the way "deprecated" is used. The
    FONT tag has been "deprecated" for many years now. (1998?)
    Yet it's still more dependably supported than equivalent
    CSS.



      My System SpecsSystem Spec

  4. #4


    teaser Guest

    Re: DirectShow

    "Alexander Mueller" wrote:

    > You'll probably have a hard time using VB-6 instead of C++
    > and VBS-DirectShow is literally impossible.
    Too bad, thanks for the help anyway.

      My System SpecsSystem Spec

  5. #5


    teaser Guest

    Re: DirectShow

    "mayayana" wrote:

    > > I've never seen a VBS-project that does DirectShow
    > > Afaics DirectShow is a pure C++ API. There are some VB-hacks out
    > > though using VB-6 is generally deprecated by MS:
    > > http://msdn.microsoft.com/en-us/libr...52(VS.85).aspx
    > >
    >
    > It looks like they're phasing out DirectShow, as it's not
    > supported at all in .Net. Apparently the plan is to
    > eventually remove DirectShow altogether. Lots of info.
    > and links here, in case anyone is interested. But it's
    > not clear, from what I read, whether or not the necessary
    > support files are on Vista. -
    >
    > http://en.wikipedia.org/wiki/Directshow
    >
    > I get a kick out of the way "deprecated" is used. The
    > FONT tag has been "deprecated" for many years now. (1998?)
    > Yet it's still more dependably supported than equivalent
    > CSS.
    >
    DirectShow is part of the Vista SDK, instead of a seperate SDK like it used
    to be. So I don't think they're phasing it out yet.

    That's exactly what the wiki article says btw:
    "The DirectShow development tools and documentation were originally
    distributed as part of the DirectX SDK, however, they are currently
    distributed as part of the Windows SDK (formerly known as the Platform SDK)."

      My System SpecsSystem Spec

DirectShow problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vob or Dvd won't use DirectShow or AC3 DrAg0n Sound & Audio 1 28 Oct 2008
DirectShow in DX 10 Ryan Vista General 6 01 Jun 2007
Directshow not working Archie Vista General 0 30 May 2007
DirectShow and Vista Matthew Ireland Vista General 0 11 Apr 2007
DirectShow filtergraph Shogun Avalon 5 05 May 2006