none
USB capture with YUYV/YUY2 format in Win10 V.1607 KB3189031

    Question

  • By using IAMStreamConfig::GetStreamCaps, I get 238 supported formats with Logitech Webcam C930e, including YUYV 1920x1080@30fps (the 225th format). However this format is not supported at all. It even cannot be setted in DSHOW capture pin property page. In the meanwhile, I notice that there are two dshow capture pins on this capture filter. One offers YUYV and MJPG supports. The other one offers H264 and an unknown format with inreadable name. I wonder if these are bugs of WIN10 latest update.

    Sorry for no snapshot here due to "Body text cannot contain images or links until we are able to verify your account."  It seems that my account will never be verified.

    Monday, September 05, 2016 5:03 AM

All replies

    • it is YUY2, not YUYV
    • property page to set format is a sort of abandoned thing, to make sure it's not supported you should rather try it from code
    • separate pin for H.264 is behavior by design - this is how it worked before the Anniversary update; I am under impression it's broken now though (nevertheless H.264 works through Media Foundation)

    Apparently, this media type cannot be handled by the camera directly, otherwise than with the help of Frame Server's decoding. That is, it's indeed a new thing. But in the same time the camera offers its own 1920x1080 YUY2 and hence it might be a collision/problem/bug in the middleware to distinguish between the native and synthetic formats. The quality of recent updates suggest that this sort of thing is quite possible.

    Capability: 225

    • AM_MEDIA_TYPE:
      • Data: 76 69 64 73 00 00 10 00 80 00 00 AA 00 38 9B 71 59 55 59 32 00 00 10 00 80 00 00 AA 00 38 9B 71 01 00 00 00 00 00 00 00 00 48 3F 00 80 9F 58 05 56 C3 CE 11 BF 01 00 AA 00 55 59 5A 00 00 00 00 00 00 00 00 00 00 00 00 58 00 00 00 00 00 00 00 80 4C A0 C7 1D 02 00 00
      • Format Data: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 FD 58 00 00 00 00 15 16 05 00 00 00 00 00 28 00 00 00 80 07 00 00 38 04 00 00 01 00 10 00 59 55 59 32 00 48 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      • .subtype: FourCC YUY2
      • .bFixedSizeSamples: 1
      • .bTemporalCompression: 0
      • .lSampleSize: 4,147,200
      • .cbFormat: 88
      • VIDEOINFOHEADER:
      • .rcSource: (0, 0) - (0, 0)
      • .rcTarget: (0, 0) - (0, 0)
      • .dwBitRate: 1492992000
      • .dwBitErrorRate: 0
      • .AvgTimePerFrame: 33 3333
      • BITMAPINFOHEADER:
      • .biSize: 40
      • .biWidth: 1920
      • .biHeight: 1080
      • .biPlanes: 1
      • .biBitCount: 16
      • .biCompression: 844715353 YUY2
      • .biSizeImage: 4,147,200
    • Unknown Capabilities:
      • Type: {F72A76A0-EB0A-11D0-ACE4-0000C0CC16BA}
      • Data: A0 76 2A F7 0A EB D0 11 AC E4 00 00 C0 CC 16 BA 00 00 00 00 80 07 00 00 38 04 00 00 80 07 00 00 38 04 00 00 80 07 00 00 38 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 07 00 00 38 04 00 00 80 07 00 00 38 04 00 00 80 07 00 00 38 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 15 16 05 00 00 00 00 00 15 16 05 00 00 00 00 00 00 00 00 00 00 00 00 00

    http://alax.info/blog/tag/directshow


    Monday, September 05, 2016 5:13 AM
  • Thanks for you quick reply.

    1, Sorry for my mix use between YUYV and YUY2. In my mind, they are the same thing. Sorry.

    2, If I set the capture format to be YUY2 1920x1080@30fps, the dshow graph did run. But only 5 fps. Bandwidth limitation ?

    3, What I don't understand is the other format which its name is something like ????.


    • Edited by Horson Monday, September 05, 2016 5:42 AM
    Monday, September 05, 2016 5:37 AM
  • It looks like incorrect behavior of recent KB3176938 fix from MS. They indeed re-exposed MJPG following public requests but they did not do it cleanly and there is a collision between native and synthetic YUY2 media types.

    What to do?

    • wait for next fix
    • disable frame server through registry, if possible
    • prefer MJPG media types and decode explicitly

    http://alax.info/blog/tag/directshow

    Monday, September 05, 2016 11:45 AM