USB camera driver: stream class, AVStream, USBCAMD???

Discussion in 'Windows Vista Drivers' started by Julia Cip, May 5, 2005.

  1. Julia Cip

    Julia Cip Guest

    I have a question on developing device driver for a USB2.0 camera. When
    reading DDK document, I think stream class and AVStream should be the class
    driver models I choose from.

    The USB camera minidriver library (USBCAMD) in the DDK seems make the
    development much easier because it simplifies the development of USB bus
    camera drivers by managing all stream class driver and USB bus driver
    interfaces for the camera minidriver. However, it is a client of stream
    class driver (not the newer AVStream class). According to DDK, I should
    choose AVStream class. But I could not find any sample or reference related
    to USB camera.



    Any hint or suggestions would be very much appreciated!



    Thank you all.
     
    Julia Cip, May 5, 2005
    #1
    1. Advertisements

  2. Dear Ms. Cip:

    Have you thought about supporting the USB Video Class?
    No driver is required for USB Video Class devices on Microsoft Windows XP
    SP2.

    Related links:

    http://support.microsoft.com/default.aspx?scid=kb;en-us;828756
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/VidCapStrea
    m/hh/vidcapstream/uvcds_28967501-AFAC-40AB-9D0A-DAD36E1B2F87.xml.asp
    http://www.microsoft.com/whdc/device/stream/vidcap/UVCView.mspx
    http://www.usb.org/developers/devclass_docs#approved

    Hope this helps.

    Thank you,
    Dan Maddy
    Microsoft DDK Support

    This posting is provided "AS IS" with no warranties, and confers no rights.
     
    Dan Maddy [MSFT], May 7, 2005
    #2
    1. Advertisements

  3. Julia Cip

    Julia Cip Guest

    Thank you Dan,



    Thank you so much for your reply.

    I did read a little about USB Video Class. But I do not know how to
    interface our camera feature controls. To give more details, our cameras are
    more for professional use instead of just a webcam. We need to provide
    interface for customer to control the camera sensor for their special
    requirements.

    So, would you tell me if USB Video Class is suitable for us to use? I really
    appreciate your providing me the link. I will look into that.

    Again, I really need to choose a direction very soon, your help would be
    great help on being more efficient.



    Best regards,



    Julia
     
    Julia Cip, May 7, 2005
    #3
  4. Julia Cip

    Tim Roberts Guest

    Microsoft has done the world a disservice by issuing dire and contradictory
    warnings like this. Their position should probably be a lot softer.

    Remember that AVStream is based on stream class. Stream-class is not going
    away. A USBCAMD-based driver very likely has a decade of life left in it.
     
    Tim Roberts, May 8, 2005
    #4
  5. Julia Cip

    Max Paklin Guest

    Many recommend using USBCAMD for USB development under KS.
    There is no USB related AVStream based framework (aside from USB Video Class
    driver that is).

    -- Max.
     
    Max Paklin, May 9, 2005
    #5
  6. Julia Cip

    Max Paklin Guest

    Remember that AVStream is based on stream class. Stream-class is not
    AVStream isn't based on Stream Class.
    KS is the foundation that all kernel streaming is derived from. AVStream is
    the next gen of original KS 1.0, so you can consider AVStreaming being KS
    2.0 while Stream Class is small extension built on top of original KS 1.0.

    -- Max.
     
    Max Paklin, May 9, 2005
    #6
  7. Dan Maddy [MSFT], May 9, 2005
    #7
  8. Julia Cip

    Julia Cip Guest

    Can we continue this discussion? Here is where I get confused.
    Seems AVStream is the latest. But it is hard to find USB camera reference.

    Julia
     
    Julia Cip, May 10, 2005
    #8
  9. Julia Cip

    Julia Cip Guest

    This information is great! I think this is very helpful. I am looking into
    it.
    I have to say this extension unit is a great for custom device.

    Thank you very much!

    Julia
     
    Julia Cip, May 10, 2005
    #9
  10. Julia Cip

    Julia Cip Guest

    Could we continue the topic about the future of using A USBCAMD-based
    driver? I really want to know.

    Julia
     
    Julia Cip, May 10, 2005
    #10
  11. Julia Cip

    Max Paklin Guest

    That's what this newsgroup is for.
    Feel free to ask driver-related questions, but I must admit that my
    knowledge about USB is very limited so I don't think I would be able to help
    you with this.
    However there are plenty of knowledgeable USB folks in this group so
    hopefully somebody will step up and help you solve your problems.

    -- Max.
     
    Max Paklin, May 10, 2005
    #11
  12. Julia Cip

    Max Paklin Guest

    AVStream is the latest kernel streaming technology however it offers to USB
    framework so for KS USB development usbcamd may be a more convinient
    starting point. Especially if you are new to KS.

    On the other hand I know people who've done AVStream based USB drivers and
    are very happy with what AVStream has to offer.

    -- Max.
     
    Max Paklin, May 10, 2005
    #12
  13. Julia, a collegue of mine is working on a custom, professional USB video
    class camera. Others on this group are doing the same thing.

    If you can restrict your target to XP SP2, it works very well. It is *much*
    easier than USBCAMD route: just plug your camera, and it works, without any
    software on PC side.
    Then, you can add extensions for curtom properties (we'll try that).

    Have a look to NetChip (now www.plxtech.com); look at the Net2272
    developer's kit. The SDK comes with a video class firmware driver, in source
    form, *very* well written, and support is good.
    Beware: the dev. board talks to your "target" PC by PCI through a big amount
    of logic, and this slows down things, you can't do more than 640x480x15 fps,
    roughly.... but this is just a limitation of the dev. platform, not the chip
    itself or the driver.

    Yes but.... "IKsTopologyInfo, ISelector and IKsNodeControl are defined in
    Vidcap.h (Vidcap.idl), a new header file that will be published in the
    DirectX 9.2 SDK. The Microsoft DirectShow documentation contains the
    corresponding reference pages. "

    Dan, do we need to wait for DirectX 9.2 ?
     
    Antonio Pasini, May 11, 2005
    #13
  14. Julia Cip

    Julia Cip Guest

    Thank you! I am very happy to be with this group.

    Julia
     
    Julia Cip, May 11, 2005
    #14
  15. Julia Cip

    Julia Cip Guest

    Thank you for you infor. I think I am getting there.

    Julia
     
    Julia Cip, May 11, 2005
    #15
  16. Julia Cip

    Julia Cip Guest

    Thank you very much for your information.

    I just have a look at the recommended chip. It is well documented. There
    also lots of guidance for design. Tools seems are handy. There is high
    potential that we could just go for this.

    Do you know how long (how many people) did it take him to develop the camera
    based on Net Chip?

    I have to say thank you, as the more I am looking into this chip the more I
    feel confidence.



    Julia
     
    Julia Cip, May 11, 2005
    #16
  17. Julia Cip

    b.lu Guest

    Dear All,
    I'm using USBCAMD2 with USB2.0 High speed with an Isochronous Pipe.

    I transfer at maximum ISO rate (about 23 Mbytes/s) but with some
    difficults because of some PID mismatch errors caused by my hardware
    (look at my request about USBCAMD).

    I have no problem if I transfer at about 7MB/s so I think USBCAMD2 can
    be used for High speed.

    Blu.
     
    b.lu, May 11, 2005
    #17
  18. Using the give code, just recompiling, we saw the first stream of our images
    (taken from disk) in two days.

    The most difficult part was going from MJPEG --> uncompressed, and here
    plx-tech support was great.

    Now we're going from bulk --> iso.

    We estimate another full month of work, for a total of three, 1 people (I'm
    talking about firmware only, starting from the given example, adding our
    functionality).
     
    Antonio Pasini, May 13, 2005
    #18
  19. Julia Cip

    Julia Cip Guest

    Thanks Antonio.

     
    Julia Cip, May 16, 2005
    #19
  20. Dear All,

    This discussion is informative.

    i am involved in Video Mini- Driver Project for our own hardware.(external
    sound blaster -usb based)which captures _live video as well _audio.

    The exsisting stream class driver works well but not talking to_ Windows
    movie maker.\\ but works well other commercial video editing software.
    So we working on * AV stream mini driver* for it.

    1)It would great help to if you give ideas/suggestion from where i have
    to start.

    2) From discussion: i came to know " No driver is required for USB Video
    Class devices on Microsoft Windows XP SP2" - i.e Can my device act as
    transperent between usb web cam and PC.(with out
     
    chandra sekar, May 18, 2005
    #20
    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.