Mplayer porting on PC and arm

Source: Internet
Author: User

Mplayer is an open-source multimedia player released with the GNU General Public License. This software can be used in mainstream operating systems, such as Linux and other UNIX-like systems, Microsoft Windows systems, and Mac
OS X system. Mplayer is based on the command line interface. You can choose to install different graphic interfaces in each job system. Another major feature of mplayer is extensive output device support. It can work in X11, XV, DGA, OpenGL, svgalib, fbdev, aalib, directfb, you can also use GGI and SDL driver modes related to some low-level hardware (such as matrox, 3dfx and radeon, mach64, permedia3 ). Mplayer also supports hardware MPEG decoding card display, such as DVB, dxr3, and Hollywood +.

:

Http://www.mplayerhq.hu/design7/dload.html

Or:


I. Compile the mplayer for PC

# Tar jxvf MPlayer-1.0rc4.tar.bz2

# MvMPlayer-1.0rc4Mplayer_pc

# Cd MPlayer-1.0rc4

#./Configure

# Make

# Make install

Mplayer is installed in/usr/local/bin by default. You can start mplayer by hitting mplayer in any directory.

You can use./mplayer file. Name to play the specified video or audio.

2. Compile arm mplayer

# Tar zxvf MPlayer-1.0rc4.tar.gz

# MvMplayer_arm

# Cd mplayer_arm

#. /Configure -- Host-CC = GCC -- cc = arm-Linux-GCC -- target = armv4l -- enable-static -- disable-win32dll -- disable-dvdread-Internal -- disable-dvdnv -- disable-libdvdcss-Internal -- enable-fbdev -- disable-mencoder
-- Disable-live -- disable-mp3lib -- enable-mad -- enable-libavcodec_a -- language = zh_cn

# Make // mplayer executable will be generated under the current fileProgram

Make will have an error. You need to changeCode,

# Vim mplayer_src/libmp eg2/motion_comp_arm_s.s

Add:

# Ifndef have_pld

. Macro PLD Reg

. Endm

# Endif

Save and make again.

Note: Main configuration options

A. -- Host-CC = gcc

// It is used to compile some intermediate files that need to be executed on the host, such as codec-cfg. errors such as "codec-CFG cannot be run" are all due to the absence of this sentence.

B. -- cc = arm-Linux-GCC // specifies the cross compiler.

C, -- target = arm-armv4l // specify the compilation Platform

E. -- enable-static // set the static connection to save the trouble of taking a lot of database tests. We recommend that you add

F, -- prefix =/tmp/mplayer // specifies where the compiled executable file is stored. By default, it is placed in the folder where the source file is located.

G, -- disable-mp3lib -- enable-mad

// Disable the audio decoding library that comes with mplayer and use the mad decoding library. The CPU usage of the built-in decoding library is high. It has been verified that compilation can pass without this option, but there is no sound output

H, -- language = zh_cn // The compiled mplayer version help and prompt information are all Chinese

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.