locked
IMFSourceReader::ReadSample fails on 1 camera RRS feed

  • Question

  • Hello,

    I'm using Media Foundation to record video from my camera's. But on one of my camera's a certain function doesn't work, and that is the IMFSourceReader::ReadSample function. It works great with my other camera (intergrated webcam) but the camera where this function fails with is a security camera which is connected to a RCA to USB adapter which I hook up with my computer. It works great with other webcam applications but not in mine. Might anyone know why?

    Thanks.


    -- END OF TRANSMISSION --
    Tuesday, August 10, 2010 10:56 PM

Answers

  • The likely explanation is that:

    1. The other apps are using DirectShow (much more common since capture is supported pre-Windows 7) rather than Media Foundation.

    2. The USB adapter's driver is not UVC 1.1 compliant.  That is required for it to work as a capture device in MF.


    Please use Vote As Helpful (green up arrow at top-left of posts) and Mark As Answer where appropriate.
    My dshow site is http://tmhare.mvps.org.
    • Marked as answer by MagniWare Friday, August 13, 2010 3:44 PM
    Wednesday, August 11, 2010 4:19 AM
  • On Wed, 11 Aug 2010 15:36:01 +0000, MagniWare wrote:

    Ok, that sounds true, but if the driver is not UVC 1.1 compliant, is it still possible to use other functions?

    If they work, yes, but no guarantees since such as device is not
    officially supported.

    Because all the other functions to start the device and get the media type do work. Also, is it possible to check if the device is UVC 1.1 compliant so that I can prevent the error?

    I don't know of any other method than empirically testing the device.


    Please use Vote As Helpful (green up arrow at top-left of posts) and Mark As Answer where appropriate.
    My dshow site is http://tmhare.mvps.org.
    • Marked as answer by MagniWare Friday, August 13, 2010 3:44 PM
    Friday, August 13, 2010 2:37 PM

All replies

  • The likely explanation is that:

    1. The other apps are using DirectShow (much more common since capture is supported pre-Windows 7) rather than Media Foundation.

    2. The USB adapter's driver is not UVC 1.1 compliant.  That is required for it to work as a capture device in MF.


    Please use Vote As Helpful (green up arrow at top-left of posts) and Mark As Answer where appropriate.
    My dshow site is http://tmhare.mvps.org.
    • Marked as answer by MagniWare Friday, August 13, 2010 3:44 PM
    Wednesday, August 11, 2010 4:19 AM
  • Ok, that sounds true, but if the driver is not UVC 1.1 compliant, is it still possible to use other functions? Because all the other functions to start the device and get the media type do work. Also, is it possible to check if the device is UVC 1.1 compliant so that I can prevent the error?

     

    Thanks.


    -- END OF TRANSMISSION --
    Wednesday, August 11, 2010 3:36 PM
  • On Wed, 11 Aug 2010 15:36:01 +0000, MagniWare wrote:

    Ok, that sounds true, but if the driver is not UVC 1.1 compliant, is it still possible to use other functions?

    If they work, yes, but no guarantees since such as device is not
    officially supported.

    Because all the other functions to start the device and get the media type do work. Also, is it possible to check if the device is UVC 1.1 compliant so that I can prevent the error?

    I don't know of any other method than empirically testing the device.


    Please use Vote As Helpful (green up arrow at top-left of posts) and Mark As Answer where appropriate.
    My dshow site is http://tmhare.mvps.org.
    • Marked as answer by MagniWare Friday, August 13, 2010 3:44 PM
    Friday, August 13, 2010 2:37 PM
  • Ok, thanks then. ;)
    -- END OF TRANSMISSION --
    Friday, August 13, 2010 3:44 PM