在 Windows XP 中的后台进程中捕获屏幕视频 C# .NET
我想创建一个后台低权限进程来捕获从Windows XP“登录”时间到“注销”时间的所有屏幕活动。它应该:
- 将视频渲染为某些格式,如 avi、wmv 或任何其他视频格式。
- “轻量级”(开销较低),因为许多其他进程也会与它一起运行,
- 输出文件大小最小的视频
我知道 CamStudio 和简易屏幕捕获视频程序, 但我不需要这样的软件。我需要 C# .NET 中的一个简单函数或模块,以便我可以根据我的需要集成、优化或自定义它。请不要推荐软件。
我知道如何捕获单个图像,如下所示:
private static void CaptureScreen()
{
Size s = Screen.PrimaryScreen.Bounds.Size;
Bitmap bmp = new Bitmap(s.Width, s.Height);
Graphics g = Graphics.FromImage(bmp);
g.CopyFromScreen(0, 0, 0, 0, s);
bmp.Save("C:\\d.jpg"); //location to save image
}
但我不知道如何获取某些 avi 或不同视频格式的视频。
这不是针对间谍软件的。我只想在登录后监控我的所有日常活动并将其保存在视频中。那么将来也许可以搜索录制的会话。
这些问题很相似,但不是我想要的:
Video capture SDKs and Frameworks for Windows
Windows 上用于视频捕获的 DirectShow 替代方案
< a href="https://stackoverflow.com/questions/3359789/video-capturing-uploading-processing-streaming-back-net-c">视频捕获+上传+处理+流回 - .NET & C#
I want to create a background low-privilege process that captures all my screen activity from my "log on" time to "log off" time of Windows XP. It should:
- render a video to some formats like avi, wmv, or any other video format.
- be "lightweight" (have low overhead) as many other processes would also be running with it
- output videos with minimal file size
I am aware of CamStudio and the Easy Screen Capture Video program,
but I don't need such software. I need a simple function or module in C# .NET so that I can integrate, optimize or customize it as per my needs. Please don't recommend software.
I know how to capture a single image as shown here:
private static void CaptureScreen()
{
Size s = Screen.PrimaryScreen.Bounds.Size;
Bitmap bmp = new Bitmap(s.Width, s.Height);
Graphics g = Graphics.FromImage(bmp);
g.CopyFromScreen(0, 0, 0, 0, s);
bmp.Save("C:\\d.jpg"); //location to save image
}
but I don't know how to get a video in some avi or different video formats.
This isn't for spyware. I just want to monitor all my daily activity once I log on and keep it in video. Then in the future it might be possible to search the recorded sessions.
These questions are similar but not what I am looking for:
Video capture SDKs and Frameworks for Windows
Alternatives to DirectShow for video capture on Windows
How to capture screen to be video using C# .Net?
Record Video of Screen using .NET technologies
Video Capturing + Uploading + Processing + Streaming back - .NET & C#
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从一系列图像创建视频流 (AVI)
我认为这可能是您最好的解决方案。存储所有 .jpg 并定期从命令行创建 avi。我不明白即时创建视频如何产生“轻量级”解决方案。
Create a Video Stream (AVI) from a Series of Images
I think this might be your best solution. Store all the .jpg's and create an avi from the command line at intervals. I don't see how creating video on the fly would produce a "lightweight" solution.