Compile Mplayer in RHEL6

Source: Internet
Author: User
The Mplayer compilation process in RedHatEnterpriseLinux6 is very disturbing. Here is a special record: # wgethttp: // www1.mplayerhq. hu/MPlayer/releases/secrets #./configure # make error: libmp code

The Mplayer compilation process in Red Hat Enterprise Linux 6 is very disturbing. Let's take a note:

First

# Wget http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc4.tar.bz2
# Tar-zxvf MPlayer-1.0rc4.tar.bz2
#./Configure
# Make

Error:

Libmp codecs/vd_mpng.c: In function 'pngreadfn ':
Libmp codecs/vd_mpng.c: 77: error: dereferencing pointer to incomplete type
Libmp codecs/vd_mpng.c: In function 'decode ':
Libmp codecs/vd_mpng.c: 114: error: dereferencing pointer to incomplete type
Libmp codecs/vd_mpng.c: 131: error: dereferencing pointer to incomplete type
Make: *** [libmp codecs/vd_mpng.o] Error 1

After searching for half a day, I finally got confused on Google. Baidu is a bit unappealing:

Bug 354965-media-video-mplayer fails to compile against media-libs-libpng-1_5_x

It turned out to be a BUG. You can only use the latest version.

# Svn checkout svn: // svn. mplayerhq. hu/mplayer/trunk mplayer
#./Configure

There is an error message
No FFmpeg checkout, press enter to download one with git or CTRL + C to abort
Solution:
You may need to install git client and press enter during the above warning time

Press enter to automatically install git to obtain FFmpeg.

#./Configure no way. Use configure again

Error

Error: yasm not found, use -- yasm = ''if you really want to compile

Description: YASM is not found.

# Git clone git: // github.com/yasm/yasm.git
Or
# Wget http://www.tortall.net/projects/yasm/releases/yasm-1.1.0.tar.gz

Install yasm and re-enter mplayer

# Make-j 2

My machine is E5300 dual-core


# Make install

Successful


# Svn update
# Ldconfig
# Mplayer -- help

Finished!

# Mencoder-of lavf-ovc lavc-lavcopts vcodec = flv: vbitrate = 500-lavfopts format = flv-srate 22050-oac mp3lame-lavcopts acodec = mp3: abitrate = 56 Gb/s. mpg-o PrettyGirlWillGotMarried. flv-ofps 16

Error
MPlayer was compiled without libmp 3lame support.

Lame Not Installed
# Wget http://sourceforge.net/projects/lame/files/lame/3.98.4/lame-3.98.4.tar.gz
# Tar-zxvf lame-3.98.4.tar.gz
# Cd lame-3.98.4
#./Configure -- enable-shared
# Make & make install

Re-compile the Mplayer.

Haha, compression rate 50%

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.