ScreenRecorder.Net 1.0.9

There is a newer version of this package available.
See the version list below for details.
dotnet add package ScreenRecorder.Net --version 1.0.9                
NuGet\Install-Package ScreenRecorder.Net -Version 1.0.9                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ScreenRecorder.Net" Version="1.0.9" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ScreenRecorder.Net --version 1.0.9                
#r "nuget: ScreenRecorder.Net, 1.0.9"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ScreenRecorder.Net as a Cake Addin
#addin nuget:?package=ScreenRecorder.Net&version=1.0.9

// Install ScreenRecorder.Net as a Cake Tool
#tool nuget:?package=ScreenRecorder.Net&version=1.0.9                

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()
{
    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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.

Version Downloads Last updated
1.0.10 192 3/4/2025
1.0.9 95 2/26/2025
1.0.3 98 2/21/2025
1.0.2 86 2/20/2025
1.0.1 104 2/18/2025
1.0.0 94 2/18/2025