English 中文(简体)
• 如何利用C# .Net收听录像?
原标题:How to capture screen to be video using C# .Net?

我知道有许多问题。

但是,我不想使用Windows介质9,因为它是一个问题,因此它不再得到支持。

我知道,一种可能性是掌握许多屏幕短片,并制作一个带有<条码>ffmpeg的录像,但我不想使用第三方的迫害。

是否只有<条码>。

最佳回答
问题回答

www.un.org/Depts/DGACM/index_spanish.htm Edit based on comment Feedback:

一位名叫baSSiL的开发商非常友好地共用一个储存库,拥有一个屏幕记录C#图书馆,以及一个显示如何利用它来捕捉屏幕和 mi的C#样本项目。

采用样本代码进行筛选,是直线的:

recorder = new Recorder(_filePath,
            KnownFourCCs.Codecs.X264, quality,
            0, SupportedWaveFormat.WAVE_FORMAT_44S16, true, 160);

_filePath is the path of the file I d like to save the video to.

你可以采用各种法典,包括AVI、JPEG、X264等。 就X264而言,我必须首先在我的机器上安装密码,而AVI则在盒子外工作。

Quality only comes into play when using AVI or MotionJPEG. The x264 codec manages its own quality settings.

The 0 above is the audio device I d like to use. The Default is zero.

它目前支持2个波式。 44100 at 16bit or stereo or one。

真正的参数表明,我希望将录音带编码为mp3格式。 我认为,在选择x264时,这是必要的,因为纸面上未经压缩的音频加在一起,对我来说不会起作用。

160台是录音打字的比值。

~~~~~~~

只停止记录

recorder.Dispose(); recorder = null;

一切都是公开的,因此,你可以把记录员的类别和变化层面、每秒的参数等ed。

~~~~~

为了接上这一图书馆,你将需要下载或从下面的哥布/代乐图书馆中抽取。 也可以使用NuGet:

Install-Package SharpAvi

www.un.org/Depts/DGACM/index_spanish.htm

Sharp AVI: https://sharpavi.codeplex.com/ or https://github.com/baSSiLL/SharpAvi

There is a sample project within that library that has a great screen recorder in it along with a menu for settings/etc.

I found Screna first from another answer on this StackoverFlow question but I ran into a couple issues involving getting Mp3 Lame encoder to work correctly. Screna is a wrapper for SharpAVI. I found by removing Screna and going off of SharpAvi s sample I had better luck.





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签