简体   繁体   English

设置质量的视频记录桌面屏幕窗口媒体编码器9 SDK

[英]Set quality video record desktop screen windows media encoder 9 SDK

I use windows media encoder 9 SDK in C# to record desktop screen . 我在C#中使用Windows Mediacoder 9 SDK record desktop screen But video quality is bad. 但是视频质量很差。

How to set video's quality? 如何设置视频质量?

Here's my code: 这是我的代码:

WMEncoderApp DesktopEncoderAppln = new WMEncoderApp();
DesktopEncoder = DesktopEncoderAppln.Encoder;
IWMEncSourceGroupCollection SrcGroupCollection = DesktopEncoder.SourceGroupCollection;
IWMEncSourceGroup SrcGroup = SrcGroupCollection.Add("SG_1");
IWMEncVideoSource2 VideoSrc = (IWMEncVideoSource2)SrcGroup.AddSource(WMENC_SOURCE_TYPE.WMENC_VIDEO);

why dont you create a pre-defined WM profile, where you can set your quality requirements, and in your C# code, load the so created profile with all the predefined settings using 为什么不创建一个预定义的WM配置文件,您可以在其中设置质量要求,并在C#代码中使用以下所有预定义设置来加载这样创建的配置文件:

WMEncProfile2()

Please look up the SDK documentation for more info abt using WMEncProfile2 请使用WMEncProfile2查找SDK文档以获取更多信息。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM