ScreenRecorderLib 6.5.0
dotnet add package ScreenRecorderLib --version 6.5.0
NuGet\Install-Package ScreenRecorderLib -Version 6.5.0
<PackageReference Include="ScreenRecorderLib" Version="6.5.0" />
paket add ScreenRecorderLib --version 6.5.0
#r "nuget: ScreenRecorderLib, 6.5.0"
// Install ScreenRecorderLib as a Cake Addin #addin nuget:?package=ScreenRecorderLib&version=6.5.0 // Install ScreenRecorderLib as a Cake Tool #tool nuget:?package=ScreenRecorderLib&version=6.5.0
ScreenRecorderLib
A .NET library for screen recording in Windows, using native Microsoft Media Foundation for realtime encoding to h264 video or PNG images. This library requires Windows 8 or higher to function, as well as Visual C++ Redistributable x64 or x86 installed, depending on platform compiled for. This library also requires Media Foundation to work, which have to be installed from Server Manager if run on Windows Server, or from the respective "Media Feature Pack" if run on a Windows N or KN version.
Available on NuGet.
Basic usage:
This will start a video recording to a file, using the default settings:
using ScreenRecorderLib;
Recorder _rec;
void CreateRecording()
{
string videoPath = Path.Combine(Path.GetTempPath(), "test.mp4");
_rec = Recorder.CreateRecorder();
_rec.OnRecordingComplete += Rec_OnRecordingComplete;
_rec.OnRecordingFailed += Rec_OnRecordingFailed;
_rec.OnStatusChanged += Rec_OnStatusChanged;
//Record to a file
string videoPath = Path.Combine(Path.GetTempPath(), "test.mp4");
_rec.Record(videoPath);
}
void EndRecording()
{
_rec.Stop();
}
private void Rec_OnRecordingComplete(object sender, RecordingCompleteEventArgs e)
{
//Get the file path if recorded to a file
string path = e.FilePath;
}
private void Rec_OnRecordingFailed(object sender, RecordingFailedEventArgs e)
{
string error = e.Error;
}
private void Rec_OnStatusChanged(object sender, RecordingStatusEventArgs e)
{
RecorderStatus status = e.Status;
}
For more info and examples, see the quickstart guide, or check out the sample projects.
Donation
If this project is useful to you, please consider supporting the development with a donation 😃
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on ScreenRecorderLib:
Package | Downloads |
---|---|
Selenium.QuickStart
QuickStart your web testing automation focusing only on what is important, being productive. Once you set your solution to x86 or x64, inherit a class and change your app.config as you want, this will provide an automatic Selenium WebDriver setup and session management, ExtentReports (Including Klov) to save test execution results, screenshot, video recording and email sending functionalities built in and ready to use with parametrizations you can set through an app.config. For installing this package successfully, your solution should be set to x86 instead of AnyCPU. |
|
ScreenRecordingSDK
A .NET SDK for screen recording and uploading to AWS S3. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
6.5.0 | 0 | 1/22/2025 |
6.4.0 | 4,021 | 11/24/2024 |
6.3.0 | 4,762 | 9/27/2024 |
6.2.0 | 3,510 | 8/20/2024 |
6.1.0 | 4,252 | 6/4/2024 |
6.0.0 | 20,457 | 2/15/2024 |
5.4.0 | 7,995 | 11/17/2023 |
5.3.1 | 76,207 | 9/6/2023 |
5.3.0 | 79,216 | 6/23/2023 |
5.2.0 | 28,378 | 2/18/2023 |
5.1.4 | 18,462 | 9/15/2022 |
5.1.3 | 6,368 | 6/26/2022 |
5.1.2 | 13,263 | 4/23/2022 |
5.1.1 | 3,696 | 3/8/2022 |
5.1.0 | 6,873 | 2/8/2022 |
5.0.0 | 2,683 | 1/20/2022 |
3.2.0 | 7,537 | 1/20/2022 |
3.1.2 | 18,154 | 8/29/2021 |
3.1.1 | 51,934 | 2/4/2021 |
3.0.2 | 243,626 | 11/27/2020 |
3.0.1 | 1,228 | 11/23/2020 |
3.0.0 | 1,514 | 11/12/2020 |
2.9.1 | 1,467 | 11/3/2020 |
2.8.0 | 1,401 | 10/14/2020 |
2.7.0 | 1,284 | 10/5/2020 |
2.6.0 | 6,263 | 9/2/2020 |
2.5.0 | 4,284 | 7/30/2020 |
2.0.0 | 10,329 | 5/12/2020 |
1.9.0 | 2,241 | 3/19/2020 |
1.8.0 | 1,832 | 3/6/2020 |
1.7.0 | 46,289 | 1/28/2020 |
1.6.0 | 3,412 | 11/7/2019 |
1.5.0 | 13,052 | 10/4/2019 |
1.4.0 | 1,369 | 9/29/2019 |
1.3.0 | 1,778 | 9/15/2019 |
1.2.0 | 1,655 | 8/16/2019 |
1.1.13 | 2,179 | 5/23/2019 |
1.1.12 | 1,857 | 4/21/2019 |
1.1.11 | 1,622 | 3/25/2019 |
1.1.10 | 1,652 | 3/18/2019 |
1.1.7 | 1,650 | 1/23/2019 |
1.1.5 | 11,997 | 11/8/2018 |
1.1.4 | 3,273 | 10/21/2018 |
1.1.2 | 2,751 | 5/30/2018 |
1.1.1 | 128,476 | 5/6/2018 |
1.1.0 | 1,456 | 4/21/2018 |
1.0.9 | 5,253 | 4/10/2018 |
1.0.8 | 1,566 | 3/26/2018 |
1.0.7 | 1,437 | 3/20/2018 |
1.0.6 | 1,375 | 2/13/2018 |
1.0.5 | 1,419 | 2/9/2018 |
1.0.4 | 1,323 | 2/1/2018 |
1.0.3 | 1,360 | 1/20/2018 |
1.0.2 | 1,449 | 1/4/2018 |
1.0.1 | 1,348 | 1/1/2018 |
1.0.0 | 1,399 | 1/1/2018 |
• Fixed bug where wrong native dimensions for video sources were returned.
• Fixed improper scaling when recording single sources with output video dimensions configured to be larger than the source.
• Fix for bug in offset calculation when recording two screens and manually changing output size of the first.
• Fix for incorrect first frame rendered when immediately paused after recording starts.