关于mplayer on Windows how to compile 资料

9.4. Windows

Yes, MPlayer runs on Windows under Cygwin and MinGW . It does not have an official GUI yet, but the command line version is completely functional. You should check out the MPlayer-cygwin mailing list for help and latest information. Official Windows binaries can be found on the download page . Installer packages and simple GUI frontends are available from external sources, we have collected then in the Windows section of our projects page .

If you wish to avoid using the command line, a simple trick is to put a shortcut on your desktop that contains something like the following in the execute section:

c:/path/to/

mplayer.exe %1

This will make MPlayer play any movie that is dropped on the shortcut. Add -fs for fullscreen mode.

Best results are achieved with the native DirectX video output driver (-vo directx ). Alternatives are OpenGL and SDL, but OpenGL performance varies greatly between systems and SDL is known to distort video or crash on some systems. If the image is distorted, try turning off hardware acceleration with -vo directx:noaccel . Download DirectX 7 header files to compile the DirectX video output driver. Furthermore you need to have DirectX 7 or later installed for the DirectX video output driver to work.

VIDIX now works under Windows as -vo winvidix , although it is still experimental and needs a bit of manual setup. Download dhahelper.sys or dhahelper.sys (with MTRR support) and copy it to the vidix/dhahelperwin directory in your MPlayer source tree. Open a console and type

make install-dhahelperwin

as Administrator. After that you will have to reboot.

For best results MPlayer should use a colorspace that your video card supports in hardware. Unfortunately many Windows graphics drivers wrongly report some colorspaces as supported in hardware. To find out which, try

mplayer -benchmark -nosound -frames 100 -vf format=colorspace

 movie


where colorspace can be any colorspace printed by the -vf format=fmt=help option. If you find a colorspace your card handles particularly bad -vf noformat=colorspace will keep it from being used. Add this to your config file to permanently keep it from being used.

There are special codec packages for Windows available on our download page to allow playing formats for which there is no native support yet. Put the codecs somewhere in your path or pass --codecsdir=c:/path/to/your/codecs (alternatively --codecsdir=/path/to/your/codecs only on Cygwin ) to configure . We have had some reports that Real DLLs need to be writable by the user running MPlayer , but only on some systems (NT4). Try making them writable if you have problems.

You can play VCDs by playing the .DAT or .MPG files that Windows exposes on VCDs. It works like this (adjust for the drive letter of your CD-ROM):

mplayer d:/mpegav/avseq01.dat

Alternatively, you can play a VCD track directly by using:

mplayer vcd://<track>

 -cdrom-device d:


DVDs also work, adjust -dvd-device for the drive letter of your DVD-ROM:

mplayer dvd://<title>

 -dvd-device d:


The Cygwin /MinGW console is rather slow. Redirecting output or using the -quiet option has been reported to improve performance on some systems. Direct rendering (-dr ) may also help. If playback is jerky, try -autosync 100 . If some of these options help you, you may want to put them in your config file.

Note

If you have a Pentium 4 and are experiencing a crash using the RealPlayer codecs, you may need to disable hyperthreading support.

9.4.1. Cygwin

You need to run Cygwin 1.5.0 or later in order to compile MPlayer .

DirectX header files need to be extracted to /usr/include/ or /usr/local/include/ .

Instructions and files for making SDL run under Cygwin can be found on the libsdl site .

9.4.2. MinGW

You need MinGW 3.1.0 or later and MSYS 1.0.9 or later. Tell the MSYS postinstall that MinGW is installed.

Extract DirectX header files to /mingw/include/ .

MOV compressed header support requires zlib , which MinGW does not provide by default. Configure it with --prefix=/mingw and install it before compiling MPlayer .

Complete instructions for building MPlayer and necessary libraries can be found in the MPlayer MinGW HOWTO .

Windows下的MPlayer是一个非常好用的媒体播放器。你可以从官方网站http://oss.netfarm.it/mplayer-win32.php下载到Windows版本的MPlayer。 下载后,你可以直接解压缩文件,并将其拷贝到你喜欢的目录下,比如D:\buildMyplayer\MPlayer-1.0rc4。 如果你想学习如何在Windows下编辑MPlayer,你可以参考http://blog.sina.com.cn/s/blog_465bdf0b010000o6.html这个网站。它提供了很多有用的信息和指导,可以帮助你更好地使用MPlayer。 另外,http://oss.netfarm.it/mplayer-win32.php也是一个很好的网站,你可以在这里找到更多关于MPlayer的帮助和资源。 总结起来,Windows下的MPlayer是一款功能强大且易于使用的媒体播放器,你可以从官方网站下载并按照需要进行配置和编辑。同时,还可以通过相关网站获取更多的帮助和资源。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [开源项目-Mplayerwindows下的编译总结](https://blog.csdn.net/duhaomin/article/details/18268497)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *3* [WindowsMPlayer编译详细步骤](https://blog.csdn.net/li_007/article/details/2057382)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值