how to make avstream minidriver can be shared between multiple app

Discussion in 'Windows Vista Drivers' started by Shu Rui Liu, Feb 12, 2008.

  1. Shu Rui Liu

    Shu Rui Liu Guest

    I try to write a avstream minidriver and make it can be used by multiple
    application at the same time. This is my first time to write driver. I have
    no idea to do that.
    I searched the web sites, study avstream sample (AVSHwS) and third party
    applications such as splitcam. I still have the following questions:

    1. Avstream spliter can automatically generate many pins. Other pins
    generated later can be used by other application at the same time ?

    2. Can I get video from other phyical camera in kernel model?
     
    Shu Rui Liu, Feb 12, 2008
    #1
    1. Advertisements

  2. Shu Rui Liu

    Tim Roberts Guest

    Why? What is the use model where this makes sense? Tell us what your
    overall goal is, and we can direct you into something that will work.
    How would they use it? Remember that AVStream drivers are used by
    applications by going through DirectShow, and each application is going to
    expect to talk to the filter. Who is going to be responsible for starting
    and stopping the stream? Who is going to send properties?

    It IS possible for a single filter to participate in more than one graph at
    a time, but only one instance at a time gets to own the hardware.
    That camera will have its own driver.
     
    Tim Roberts, Feb 14, 2008
    #2
    1. Advertisements

  3. Shu Rui Liu

    Shu Rui Liu Guest

    I actually want to write a virtual camera driver similar as
    splitcam(http://www.splitcamera.com/).

    I tried the filter-centric avstream sample in wdk, it can't be as video
    capture source for some applications such as adobe flash. flash don't
    support directshow -filter based capture source too. Adobe flash only
    support pin-centric driver.

    Can I directly get video from physical camera in kernel driver ?

    thanks
    LIU ShuRui
     
    Shu Rui Liu, Feb 14, 2008
    #3
  4. Maybe it is better to implement virtual camera in user mode? what is the
    need in going kernel mode for this?

    Even if VfW is obsolete, there is a way of doing the full DirectShow
    filter.
     
    Maxim S. Shatskih, Feb 14, 2008
    #4
  5. Shu Rui Liu

    Tim Roberts Guest

    Max is correct. You could do this all in user mode, by having a monitor
    application that talks to the real camera, and a DirectShow source filter
    that gets video from the monitor application.
    What part of Adobe Flash does video capture?

    Applications can't tell the difference between filter-centric and
    pin-centric KS drivers. What did you see when you tried this?
    Of course -- the driver is, after all, a "kernel streaming" driver -- but
    it's not going to be easy, and I'm convinced it's the wrong way to do this.
     
    Tim Roberts, Feb 17, 2008
    #5
  6. What part of Adobe Flash does video capture?

    Flash pages communicating with Flash Communication Server.
     
    Maxim S. Shatskih, Feb 17, 2008
    #6
    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.