播放视频 - axWindowsMediaPlayer - 为什么我设置所需的硬件加速级别? [英] Playing Videos - axWindowsMediaPlayer - Why do I set required Hardware acceleration level?

查看:241
本文介绍了播放视频 - axWindowsMediaPlayer - 为什么我设置所需的硬件加速级别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个Windows窗体,我在其上放置了一个Windows Media Player控件,在Win 7 64位机器上开发,针对任何中央处理器。



我可以在Win 7机器上无缝播放视频文件。但是,当在Win XP SP3机器上测试相同的应用程序时,视频播放被破坏并变黑。



在Win XP SP3上,视频播放是不正确(变黑),直到我在显示属性 - >下将硬件加速滑块从完整切换为无。设置标签 - >高级按钮 - >排查标签。



现在,我的查询是



1.为什么我必须这样做在XP机器上?我问这个,因为XP机器上安装的W.Media Player版本9正常播放相同的视频文件。



2.什么是硬件加速?这是否必须以最低硬件要求做某事?



3.我可以使用c#4.0以编程方式切换此设置吗?如果是这样,怎么样?是推荐吗?



我知道,我提出了很多问题。 :)



提前感谢您的耐心:)非常感谢任何帮助。

Hi,

I have a Windows form on which I have a Windows Media Player control placed on it, developed on a Win 7 64 bit machine targeted to any CPU.

I can play video files on it seamlessly on my Win 7 machine. However, when the same application is tested on an Win XP SP3 machine, the video play back is broken and blackens out.

On Win XP SP3, the video playback is improper(blackened) until I toggle the Hardware acceleration slider to "none" from "full" under Display properties-> Settings Tab -> Advanced button -> Troubleshoot tab.

Now, My queries are

1. Why do I have to do this setting On XP machine ? I ask this as the installed W.Media Player version 9 on the XP machine plays the same video file normally.

2. What is hardware acceleration ? Do this have to do something with minimum hardware requirements ?

3. Can I toggle this setting Programatically using c# 4.0 ? if so, how ? is it recommended ?

I know, I put in a lot of questions. :)

Thanks in advance for your patience :) Any help is greatly appreciated.

推荐答案

Windows Media Player ActiveX的行为与普通的媒体播放器不同。



硬件加速意味着视频帧不是由CPU绘制的,而是由GPU绘制的。在较新的系统上,GPU也有助于解码视频,但此功能至少需要DirectX 10 GPU和Windows Vista。



我不确定你是否可以改变这是以编程方式,但你可以在注册表中查看:

在regedit中导出机器注册表,切换设置,再次导出,差异两个文件,现在你得到了设置,使用< a href =https://msdn.microsoft.com/en-us/library/Microsoft.Win32.Registry%28v=vs.110%29.aspx>注册表类更改注册表的方法选项如果需要。
The Windows Media Player ActiveX behaves differently than the normal Media Player.

Hardware Acceleration means that the video frames are not drawn by the CPU, but instead of the GPU. On newer systems the GPU also helps in decoding the video, but this feature requrires a DirectX 10 GPU and Windows Vista at least.

I'm not sure you can change this programatically, but you can look in the registry:
Make an export of the machine registry in regedit, toggle the setting, export again, diff the two files, now you got the setting, use the Registry class's methoods to change the registry option if needed.


这篇关于播放视频 - axWindowsMediaPlayer - 为什么我设置所需的硬件加速级别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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