ScreenRecorder.Net
1.0.2
See the version list below for details.
dotnet add package ScreenRecorder.Net --version 1.0.2
NuGet\Install-Package ScreenRecorder.Net -Version 1.0.2
<PackageReference Include="ScreenRecorder.Net" Version="1.0.2" />
paket add ScreenRecorder.Net --version 1.0.2
#r "nuget: ScreenRecorder.Net, 1.0.2"
// Install ScreenRecorder.Net as a Cake Addin #addin nuget:?package=ScreenRecorder.Net&version=1.0.2 // Install ScreenRecorder.Net as a Cake Tool #tool nuget:?package=ScreenRecorder.Net&version=1.0.2
README
This package contains a .NET 8.0 wrapper on the native ScreenCapture library that uses Direct3D11CaptureFramePool do capture frames from your screen and do efficient GPU only video encoding of these captured frames.
Usage
Assume you have a .Net 8.0 WPF app containing an <Image x:Name="CapturedImage">
then you can fill it with a screen capture
like this:
using ScreenRecorder;
Capture c = new Capture();
await c.StartCapture(0, 0, 1024, 700);
CapturedImage.Source = c.CaptureImage();
You can also record a 20 second video of this region to a file using:
VideoEncoderProperties props = new VideoEncoderProperties()
{
bitrateInBps = 9000000,
frameRate = 60,
quality = VideoEncodingQuality.HD1080p,
seconds = 20
};
c.EncodingCompleted += OnEncodingCompleted;
c.EncodeVideo("d:\\temp\\test.mp4", props);
See https://github.com/lovettchris/wincam/tree/main/src/ScreenRecorder.Net
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net8.0-windows10.0.26100
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.