A simple Windows Forms (.NET 5) application to demonstrate how to record video and audio via a Logitech webcam using C#.
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.
- DirectShowLib.Standard 2.1.0;
- OpenCvSharp4 4.5.0.20201013;
- OpenCvSharp4.runtime.win 4.5.0.20201013;
- BasicAudio 2020.11.10.1;
- FFMpegCore 3.2.4;
- Azure.Storage.Blobs 12.7.0.
- How to Use a Webcam in C# with .NET Framework 4.0 and Microsoft Expression Encoder 4;
- Visual Studio C# VideoCapture;
- Memory Leak while converting Opencv Mat to .net BitMap;
- memory leak with videocapture, memory goes up with the function of read(image);
- openCV video saving in python;
- EMGU CV videowriter is unable to make video;
- WebCam Video Recording in MPEG using C# Desktop Application;
- GitHub: rosenbjerg/FFMpegCore
- Look at me! Windows Image Acquisition;
- Record audio in Windows Form C#;
- Multimedia Command Strings;
- How to Install FFmpeg on Windows;
- GitHub: BtbN/FFmpeg-Builds;
- Quickstart: Azure Blob storage client library v12 for .NET.
This library is distributed under the GPL-3.0 License found in the LICENSE file.