Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# webcam library [closed]

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.

like image 718
Alina Danila Avatar asked Jul 16 '11 18:07

Alina Danila


1 Answers

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.

like image 129
adontz Avatar answered Oct 18 '22 15:10

adontz