1
  1. I can get a list of resolutions supported by the capture device (from VideoInfoHeader and BmiHeader). But I can not figure out how to get a list of frame rates.
  2. Similarly, I'm looking for how to set a pixel format (for example uyvy422).

Is it possible to set this up using WPF-MediaKit?

Edit: I found that the pixel format I need is MediaSubType.UYVY (corresponding to uyvy422). But so far I do not know how to set it for the capture device.

Lupa
  • 62
  • 7
  • Not sure but [this](https://stackoverflow.com/questions/44659826/how-to-change-fps-size-in-wpfmediakit) might help – Software Dev Mar 14 '18 at 14:30
  • @zackraiyan Thanks a lot, helped me find [YUV Video Subtypes > MEDIASUBTYPE_UYVY](https://msdn.microsoft.com/en-us/library/windows/desktop/dd391027(v=vs.85).aspx), but I do not know how to set it in WPF-MadiaKit. Can it somehow through AMMediaType? – Lupa Mar 15 '18 at 10:56
  • i am a bit busy now but i'll try to post an answer later,hope that's ok for u :) – Software Dev Mar 15 '18 at 10:58
  • @zackraiyan Please do not forget me with the answer ;-) – Lupa Mar 20 '18 at 12:12
  • i am sorry...i almost forgot... :) – Software Dev Mar 20 '18 at 12:44
  • @zackraiyan I understand you do not have time :) Should you please at least some similar code that would help me understand how to set MediaSubType.UYVY into the capture device? – Lupa Mar 22 '18 at 12:15
  • i am sorry , i tried to figure this out but failed......sorry to keep u waiting :( .. I'll try my best to help u in future – Software Dev Mar 22 '18 at 12:28

0 Answers0