如何使Visiofage运行



我在尝试从YouTube视频中复制屏幕捕获程序时遇到问题。图片是我得到的错误,并提供了我的代码。我不相信我的错误在我的代码中。我认为有一个文件我应该运行或添加到某个地方,但我不知道我需要做什么。

点击按钮1(启动按钮(时出现错误

程序在上发布时的错误

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using VisioForge.Types.OutputFormat;

namespace SCREEN_RECORDER_V2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
videoCapture1.Screen_Capture_Source = new
VisioForge.Types.Sources.ScreenCaptureSourceSettings()
{ FullScreen = true };
videoCapture1.Audio_PlayAudio = videoCapture1.Audio_RecordAudio = false;
videoCapture1.Output_Format = new VFAVIOutput();
videoCapture1.Output_Filename = Environment.GetFolderPath
(Environment.SpecialFolder.MyVideos) + "\output.avi";
videoCapture1.Mode = VisioForge.Types.VFVideoCaptureMode.ScreenCapture;
videoCapture1.Start();
}
private void button2_Click(object sender, EventArgs e)
{
videoCapture1.Stop();
}
}
}

根据我的测试,我在图中重现了你的问题。经过一些尝试,我可以成功地捕捉屏幕。

首先,您可以通过单击Base package->下载x64x86.exe;x64或x86。

其次,请以管理员身份运行以运行exe。

第三,请安装nuget软件包SDK redist base packagex86或x64以及Video Capture SDK redist packagex86或x64。

最后,发布程序后或直接点击按钮1开始录制。

最新更新