goh-chunlin / WebcamWinForm

A simple Windows Forms application to demonstrate how to record video and audio via a webcam using C#.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebcamWinForm

.NET 5 Build CodeQL License: GPL v3 Donate

A simple Windows Forms (.NET 5) application to demonstrate how to record video and audio via a Logitech webcam using C#.

Objective

In 2017, inspired by "How to use a web cam in C# with .NET Framework 4.0 and Microsoft Expression Encoder 4", a project on Code Project by Italian software developer Massimo Conti, I built a simple demo to show how we can connect C# Windows Form with a webcam to record both video and audio.

In 2020, .NET 5 is officially announced by Microsoft. Many libraries that I used earlier are no longer working. Hence, I took the chance to upgraded this project to use .NET 5 together with other new libraries.

The recorded media will be saved as a MP4 file locally. The file will also be uploaded to Microsoft Azure Storage at the same time in a container named "webcam-videos", hence the user interface asks for the connection string to the Azure Storage.

The webcam that I have tested with is Logitech HD Webcam C270.

Important Nuget Packages

References

License

This library is distributed under the GPL-3.0 License found in the LICENSE file.

About

A simple Windows Forms application to demonstrate how to record video and audio via a webcam using C#.

License:GNU General Public License v3.0


Languages

Language:C# 100.0%