Linux has been on and off for so long and has tried to install mplayer/kmplayer for many times. this time it really hurt me. cool CentOSyum installation, binary installation does not work, various dependencies... so I found an article about the same egg, and click the open link to download the mplayer source code compilation directly. download the source code package from the official website as follows:
Linux has been on and off for so long and has tried to install mplayer/kmplayer for many times.
This time it really hurt me.
Cool CentOS yum installation, binary installation does not work, various dependencies...
So I found an article about the same egg, and clicked to open the link.
Finally, download the mplayer source code compilation directly.
Download the source code package from the official website using the following command:
MPlayer-1.0rc3.tar.gz
Tar zxvf MPlayer-1.0rc3.tar.gz
Cd MPlayer-1.0rc3
./Configure -- prefix =/usr/local/mplayer -- enable-gui
At this step, the following occurs:
Yasm not found error
So install yasm (I don't know what this is. yum)
I am prompted to use git to download the FFmpeg source code. I just installed git and automatically pulled down the code.
Then
./Configure -- prefix =/usr/local/mplayer -- enable-gui
After completion
Make
Up to 10 minutes of compilation...
Make install
Cd to/usr/local/mplayer/bin.
Use the./mplayer file path and name to play the audio and video files
(The GUI must be installed with another skin to run. it hurts a lot .)