sskodje/ScreenRecorderLib
소개
Windows 화면 녹화를 위한 .NET 라이브러리입니다. 네이티브 Microsoft Media Foundation을 사용해 h264 동영상 또는 PNG 이미지로 실시간 인코딩합니다.
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalScreenRecorderLib
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 :)
관련 프로젝트 살펴보기
불러오는 중…
