简体   繁体   中英

C# webcam library

I need a webcam library (for C#) so that I can implement the following things:

  • show the video stream
  • save the stream to a file on disk
  • capture single images

I have searched for libraries and found some:

  • EasyWebcam
  • DirectShow.NET
  • avicap32 using P/Invoke
  • VFW

but I need some advice which one to use (maybe there are other libraries than I mentioned here).

From your experience, please recommend me a library so that I can implement the three functionalities.

If you need to be able to choose/specify camera resolution, frame rate, pixel format, be able to work with multiple cameras, capture sound and video into one composite stream, DirectShow is the only choice.

BTW, I mean DirectShow as API, not DirectShow.Net as library. You may need to patch/fix DirectShow.Net, since it's code quality is not very good.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM