Sandy Bridge GPU编码问题 [英] Sandy Bridge GPU encoding problem

查看:72
本文介绍了Sandy Bridge GPU编码问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当时正在寻求使用Sandy Bridge GPU编码,但我的代码并不了解该类型。我猜我没有合适的Dlls。如何确认SP2 Dll?

I was looking to use the Sandy Bridge GPU Encoding but my code does not understand that devicetype. I'm guessing that I don't have the right Dlls. How can I confirm the SP2 Dlls?

此代码来自新文档不起作用

this code from the what's new docs does not work

 

H264EncodeDevices.EnableGpuEncoding = true;
$
foreach(H264EncodeDevice.Devices中的H264EncodeDevice设备)

{

//启用SandyBridge同时禁用Cuda 。$
//它们都可以同时运行。

if(device.DeviceType == H264DeviceType.SandyBridge)

device.Enabled = true ; $
其他

device.Enabled = false;

}

H264EncodeDevices.EnableGpuEncoding = true;
foreach (H264EncodeDevice device in H264EncodeDevices.Devices)
{
// Enables SandyBridge while disabling Cuda.
// They can both be run concurrently.
if (device.DeviceType == H264DeviceType.SandyBridge)
device.Enabled = true;
else
device.Enabled = false;
}



我在反射器中打开,看不到SandyBridge的枚举。我为编码器4安装了SP2 Pro。


I open in reflector and don't see the enum for SandyBridge. I have SP2 Pro installed for Encoder 4.

DLL信息

// Module Microsoft.Expression.Encoder.dll






 

 

推荐答案

文档错误,您应该使用H264DeviceType.IntelHDGraphics。

The documentation is wrong, you should be using H264DeviceType.IntelHDGraphics instead.

 


这篇关于Sandy Bridge GPU编码问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆