转贴自:http://ddcspace.spaces.live.com/blog/cns!EAACF9754046F850!5152.entry
Windows XP,怎样取消资源管理器中视频文件的自动预览?
如何删除我的电脑里图片文件的自动预览?
在我的电脑里点击任何mp4扩展名的文件,浏览器窗口会有几秒钟假死,怎么解决?
参考网上(泛滥)的文章,很容易得出以下结论:
针对一般的影音文件,比如扩展名是avi mpg的文件(前者一般是用xvid等mp4格式编码,后者一般是MPEG2),还有Windows Media家族的,去掉自动预览:
在“运行”中输入命令
regsvr32 /u shmedia.dll
立即生效。
复原:
regsvr32 shmedia.dll
注意,像Realmedia FLV(Flash Video)之类的自成一家的文件格式,Windows XP本身就不提供预览功能,所以就是用上面提到的“复原”操作,也做不到对这些文件的支持。
去掉图片的自动预览:
注意,这样做以后不光是窗口左边的预览图没有了,而且你将不能正常使用“缩略图”浏览方式,也不能启动Windows XP自带的图片预览(查看)程序。
在“运行”中输入命令
regsvr32 /u shimgvw.dll
立即生效。
复原:
regsvr32 shimgvw.dll
复原我没有试过!应该可以。。 ---09.2.1更新:可以复原。。
下面是我自己的研究。关于MP4文件自动预览假死的问题,即便是采用了上面的方法也没法消除。搜索了互联网,感觉上最接近的文章是什么“新 招”,说什么系统会对整个媒体文件进行扫描和索引,因此解决方法是关闭“文件夹索引”功能。这根本是驴唇不对马嘴,风马牛不相及!媒体文件的索引和文件夹 索引是完完全全、彻彻底底的两码事,熟悉XP的人应该知道。
文章中提到的微软support.microsoft.com中的文章我也看过,其中一篇:
http://support.microsoft.com/kb/822430/
还有一篇见过多次,可是现在找不到了。文章没给出具体的做法,看来微软的人对此问题也有所避讳,这个原因看了下文也能有点知道了``再者, 此人说当媒体文件较大时会假死,强调了“较大”,可是我新建一个文本文件,扩展名再改成mp4,这样就得到一个完全空白的“MP4”文件,点击它,依然假 死数秒。因此,此人所述症状应该是因为shmedia.dll对媒体文件处理BUG(的确是因为“扫描”,但是我绝对不相信去掉文件夹索引就能解决问 题!)。
我用进程察看软件分析了explorer.exe加载的模块,当然已经去掉了shmedia.dll,已经没有什么关于媒体预览、媒体播 放的了;另一方面,用任务管理器进行实时监视,发现占用CPU资源的不是explorer.exe,而是一个叫 WLXQuickTimeControlHost.exe的进程,在点击的同时生成进程,狂占CPU,几秒钟后进程结束,很符合症状!顺藤摸瓜找到事情原 委——原来是Live Photo Gallary!
在“运行”中输入命令
regsvr32 /u "C:/Program Files/Windows Live/Photo Gallery/WLXQuickTimeControlHostPS.dll"
立即生效。
复原:
regsvr32 "C:/Program Files/Windows Live/Photo Gallery/WLXQuickTimeControlHostPS.dll"
复原我没有试过!应该可以。。 ---09.2.1更新:可以复原。。
为了验证我的做法,试着把这个进程的名字作为关键字,再加上“mp4”一起搜索,结果显示,不但是mp4文件,quicktime的MOV文件同样如此。
下面这个网页中给出了一个批处理命令的做法,值得参考:
http://au.answers.yahoo.com/question/index?qid=20080207052044AAppbTM
这样就大概知道了微软避讳此问题的原因,LIVE是新主力产品啊!!这样的暴力解决对微软肯定是不利的,估计官方的解决办法应该是升级程序。。。 ---现在看来我的估计是正确的..
How to remove preview for video files in Windows Explorer?
delete preview window for picture files
when selecting an .mp4 or .mov file, system hang and CPU usage reaches 100%.
to solve the first two problems, the best way is to disable preview function for explorer.exe.
(the following command lines are hot keywords in search engines!)
to disable preview for video file(avi,mpg,wmv etc) - type in "Run" box
regsvr32 /u shmedia.dll
effect immediately.
restore -
regsvr32 shmedia.dll
note: windows explorer only provides previews for those video files which are "popular" in windows, so NO previews for Realmedia, Matroska etc. at all!
to disable preview for picture file
warning: when this function disabled, you will not be able to use "thumbnail" method in windows explorer correctly, and Windows Picture and Fax Viewer will never run.
type in "Run" box
regsvr32 /u shimgvw.dll
effect immediately.
restore -
regsvr32 shimgvw.dll
"restore" not tested, but should be effective.
the third problem is a real problem! but I found the way to get rid of it eventually.
one possible way, using windows batch file processing -
http://au.answers.yahoo.com/question/index?qid=20080207052044AAppbTM
but i give you the easiest.
type in "Run" box
regsvr32 /u "C:/Program Files/Windows Live/Photo Gallery/WLXQuickTimeControlHostPS.dll"
effect immediately.
restore -
regsvr32 "C:/Program Files/Windows Live/Photo Gallery/WLXQuickTimeControlHostPS.dll"
"restore" not tested, but should be effective.
i can't give the detailed cause -- just because my English is bad...
以下内容于2008-8-7追加
今天打开电脑,自动更新提示我安装补丁。具体内容看support网站
http://support.microsoft.com/kb/955359/en-us
This problem occurs because the Windows XP process that is used to perform Quick Time thumbnail extraction can take a long time to complete. The slow interaction between Windows XP and the thumbnail provider for Quick Time movie files that is installed together with Windows Live Photo Gallery can cause Windows Explorer to stop responding.
估计大概就是修复了WLXQuickTimeControlHost.exe。
可是为什么7.18(济南暴雨一周年)那天发布的补丁我现在才看见!昨天还去过microsoft update,查过一遍了没有这个补丁啊。。
以下内容于2009-2-1追加:
添加关键字: Windows explorer.exe 媒体 文件 预览 死机
regsvr32还有一个参数 /s,可以让他在运行时不弹出对话框,也就是静默(silent)。
这样就可以写四个一句话的命令行脚本,分别达到对应目的:
命令行 / command line | 目的 / effect |
regsvr32 /u /s shimgvw.dll | 禁用图片自动预览 / to disable image preview |
regsvr32 /s shimgvw.dll | 启用图片自动预览 / to enable image preview |
regsvr32 /u /s shmedia.dll | 禁用视频自动预览 / to disable video preview |
regsvr32 /s shmedia.dll | 启用视频自动预览 / to enable video preview |
Comments (2 )
<script type="text/javascript">function ic_onTileErr(a){try{a.οnerrοr=null;a.οnlοad=null;a.className="cxp_ic_tile";a.src=a.getAttribute("errsrc");a.style.visibility=""}catch(b){}}function ic_onTileLoad(a){try{var c=a.width,b=a.height;a.className="cxp_ic_tile";var k=a.width,j=a.height,g,d,l=0,m=0;if(c==0&&b==0){var i=new Image;i.src=a.src;c=i.width;b=i.height}var h=a.currentStyle;if(c==1&&b==1||h&&h.width=="1px"&&h.height=="1px"){ic_onTileErr(a);return}var f=Math.round;if(c&&b&&c!=b)if(c>b){d=j;g=f(j*(c/b));l=-f((g-k)/2)}else{g=k;d=f(k*(b/c));m=-f((d-j)/2)}var e=a.style;if(d&&d){e.width=g+"px";e.height=d+"px";e.left=l+"px";e.top=m+"px"}a.style.visibility=""}catch(n){}}</script>
|
dtm 崔
wrote:
不了解维斯塔,不好意思。那边的Photo Gallery应该和XP用的不一样吧
Apr. 30
|
Dengke Hu
wrote:
如果是vista呢,如何处理?
Apr. 29
|
Trackbacks
- None