Are you sure you can edit mplayer in Windows successfully?

Source: Internet
Author: User

Learn how to edit mplayer in windows. Refer to idea. Of course, we also need to introduce a good website: http://oss.netfarm.it/mplayer-win32.php, which can provide a lot of help here.

For more information about compiling environment configuration, see FFMPEG configuration introduction.

For the DirectX header file, I directly copied all the header files in the DX include file installed on my host to C: \ mingw \ include.

Start to download and install some mplayer compilation dependent software and lib and other stuff (these are the original, I just

Supplement)

1. FreeType (for OSD subtitles)
Home: http://www.gnu.org/software/libiconv/
Files required: libiconv-1.9.1.tar.gz
This file and the file mentioned below can be decompressed using WinRAR in windows. Unzip the libiconv-1.9.1 directory, for example, drive C, and double-click to open msys, enter
C: \ libiconv-1.9.1

 

Note: Open the libiconv-1.9.1 directory, you can also specify other directories as needed (the same below ). Press enter and enter:
./Configure -- prefix = C:/mingw -- disable-shared

Note: configure the code command, where -- prefix = C:/mingw indicates the specified directory command, and -- disable-shared indicates canceling the sharing. Press enter. After the execution is complete, enter:
Make

Note: Compile the command. Press enter. After the execution is complete, enter:
Make install

Note: Compile and install commands. If everything goes well after the execution is completed, no error is reported. So far, the installation of a software is complete. Similar to the steps below, I will write a little simpler.

 

2. FreeType2
Home: http://sourceforge.net/project/showfiles.php? Group_id = 3157
Files required: freetype-2.1.9.tar.bz2
Same as above, decompress and then
CD freetype-2.1.9
Note: This software does not need./configure (after verification, this is required./configure, direct make is wrong)

./Configure -- prefix = C:/mingw

Make
Make install

3. zlib
Home: http://www.gzip.org/zlib/
Files required: zlib-1.2.2.tar.bz2
Extract
CD zlib-1.2.1

./Configure -- prefix = C:/mingw

(Configure is not written here in many documents on the Internet. This will cause the following software to fail to be installed. The error is zlib not installed)
Make
Make install

 
4, libpng software home page: http://sourceforge.net/project/showfiles.php? Group_id = 5624
Required documents: libpng-1.2.8-config.tar.gz
Extract
CD libpng-1.2.8-config
./Configure -- prefix = C:/mingw -- disable-shared
Make
Make install

 
5. libjpeg software home page: http://www.ijg.org/
Required file: jpegsrc.v6b.tar.gz
Extract
CD jpeg-6b
./Configure -- prefix =/mingw/-- enable-static
Make
CP. libs/libjpeg. a c:/mingw/lib/
CP export Lib. h jconfig. h jmorecfg. h c:/mingw/include/

 

6. libregif
Home: http://armory.nicewarrior.org/projects/libregif/
Required files: libregif 4.1.6
Extract
CD libregif-4.1.5
./Configure -- prefix = C:/mingw
Make
Make install
Note: The connection is invalid. You can download it at http://oss.netfarm.it/mplayer-win32.php and decompress it to the corresponding folder.

7 NASM
Home: http://sourceforge.net/project/showfiles.php? Group_id = 6208
Required documents: nasm-0.98.39.tar.bz2
Extract
CD nasm-0.98.38
./Configure -- prefix = C:/mingw

Make
Mkdir C:/mingw/man/Man1 (add ~~ to this sentence ~~)
Make install
 

 

 

8. Lame
Home: http://lame.sourceforge.net/download/download.html
Required files: lame3.96.1.tar.gz
Extract
CD lame-3.96.1
./Configure -- prefix = C:/mingw -- disable-shared -- disable-decoder

Make
Make install

 

 

9. XviD
Home: http://www.xvid.org/downloads.html
Files required: xvidcore-1.0.3.tar.bz2 (http://downloads.xvid.org/downloads)
The latest version 1.1beta of this software is running on my machine. It seems that the compatibility of the original version is a bit problematic. You should use the old version 1.0.3.
Extract
CD xvidcore-1.0.3/build/generic
./Configure -- prefix = C:/mingw -- disable-shared

Make
Make install
Mv c:/mingw/lib/xvidcore. a c:/mingw/lib/libxvidcore.

 

 

10. x264
Home: http://subversion.tigris.org/servlets/Proj...ist? Folderid = 91
Required documents: svn-win32-1.1.4.zip
Decompress the package and copy all the files in the \ bin folder to the C: \ mingw \ bin folder.

11. Live
: Http://www.live555.com/liveMedia/public/
Required documents: live-latest.tar.gz
Extract
CD live
Genmakefiles mingw
Make

Mplayer Compilation:

Cd c/mplayer/1.0rc2

 

. /Configure -- prefix =/usr -- enable-static -- enable-qtx -- enable-real -- enable-FreeType -- enable-PNG -- enable-JPEG -- enable-GIF -- enable-TGA -- disable-mencoder -- enable-runtime-cpudetection -- disable-ssse3 -- extra-libs = "-mwindows"

Make

Make install

 

TIPS:

When it comes to using command line terminals such as msys, you must think it is not that convenient. Because it cannot be copied or pasted here. But you are wrong. It is also easy to copy and paste in msys.

Copy:Select the part you want to copy and click it with the left mouse button. Easy?

Paste:You only need to useShift + left mouse buttonYou can directly paste the text in the clipboard.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.