Linux
X86
Installation
Required installation package
All-20071007.tar
(Unused)
Windows-all-20071007
Http://www1.mplayerhq.hu/MPlayer/releases/codecs/windows-essential-20071007.zip
Mplayer-1.0rc2.tar
1. HTTP
:
Http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2
Essential-20071007.tar
Http://www1.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
Abyss-1.7.tar
Http://www.mplayerhq.hu/MPlayer/skins/Abyss-1.6.tar.bz2
(2
) Decompress and prepare for installation (assuming you have all these tar files
Package in/root
Directory,
And your current working directory is in/root
).
Open the console and enter the following command
Decompress the source package
#> Tar jxvf
MPlayer-1.0rc2.tar.bz2
Extract decoder #> tar
Jxvf essential-20071007.tar.bz2
#> Unzip
Windows-essential-20071007.zip
Create/usr/local/mplayer/share
And its subdirectories
Codecs, win32codecs
.
Mkdir
/Usr/local/mplayer (
You can decide where you like to install it)
Mkdir/usr/local/mplayer/share
Mkdir usr/lib/codecs/
Mkdir
/Usr/lib/win32codecs
Copy all the decompressed decoders to the corresponding directory.
MV
Essential-20071007/*/usr/lib/codecs/
MV
Windows-essential-20071007/*/usr/lib/win32codecs
B
) Configuration
./Configure
-- Enable-Gui -- enable-menu -- prefix =/usr
-- Codecsdir =/usr/lib/codecs/-- win32codecsdir =/usr/lib/wincodecs/
-- Language = zh_cn -- confdir =/etc/mplayer -- disable-ivtv
A)
-- Prefix =/usr
Create an installation directory
B)
Usr/lib/codecs/
Decoder library directory
(1
) If the above configuration settings are incorrect:
The error message is: Error:
The GUI requires GTK devel packages (which were not found ).
Solution:
Sudo
Apt-Get install gtk2 +-Dev
Sudo
Apt-Get install gnome-core-devel
C)
Make
Error:
Storage size of 'sd' isn' t known
Sudo
Apt-Get install libxv-Dev
Add
-- Disable-ivtv
Solution:
In
File libvo/video_out.c, where
# Ifdef
Have_dxr2
Extern
Vo_functions_t video_out_dxr2;
# Endif
Extern
Vo_functions_t video_out_dxr3; // need to add open gate
# Ifdef
Have_ivtv
Extern
Vo_functions_t video_out_ivtv;
# Endif
Edit
It like this:
# Ifdef
Have_dxr2
Extern
Vo_functions_t video_out_dxr2;
# Endif
# Ifdef
Have_dxr3
Extern
Vo_functions_t video_out_dxr3; // added patch have_dxr3 because that
Is not compiling mplayer
# Endif
# Ifdef
Have_ivtv
Extern
Vo_functions_t video_out_ivtv;
# Endif
When playing
MP3
Audio control during music:
To wake up the audio sound card when you enable the player, run the following command:
Int
Soundfd
=
Open
(
"/Dev/apm_bios"
,
O_wronly
);
IOCTL
(
Soundfd
,
Apm_ioc_resume_audio
,
0 );
(2)
When music is disabled, run the following command:
Int
Soundfd
=
Open
(
"/Dev/apm_bios"
,
O_wronly
);
IOCTL
(
Soundfd
,
Apm_ioc_suspend_audio
,
0 );
II,
Mplyer
Arm
Version installation
The installed source code package and
X86
The source code package is the same.
2.
Install
Libmad-0.15.1b
1)
Configuration:
./Configure
-- Enable-FPM = arm -- disable-shared -- disable-debugging/
-- Prefix =/opt/QTE/mad
/
-- Host = arm-Linux
/
Cc =/usr/local/3.4.1/bin/ARM-Linux-gcc
2)
Make
3) make install
- Mplayer
Install
Configuration
./Configure
-- Host-CC = GCC -- cc =/usr/local/3.3.2/bin/ARM-Linux-gcc
-- Target = arm-Linux/
-- Enable-static
/
-- Prefix =/opt/mplayer
/
-- Disable-dvdread
/
-- Enable-fbdev
/
-- Disable-mencoder
/
-- Enable-mad
/
Disable-mp3lib
/
-- Disable-dvbhead
/
Disable-x11
/
-- Disable-Gui
/
-- With-extraincdir =/opt/QTE/
Mad
/Include
/
-- With-extralibdir =/opt/QTE/
Mad
/
LIB/
-- Disable-live
4.
Make
5.
Make install
If
Make
Install
The process appears as follows:
Libdvdcss. h: 51:
Error: 'path _ max 'undeclared here (not in a function)
When an error occurs, add the following to the corresponding location:
# Define
Path_max 260