Transplantation of the Mplayer in Ubuntu11.04

Source: Internet
Author: User
HOST: Ubuntu11.04 Cross Compiler: arm-linux-gcc3.4.1 hardware platform: FL2440 software resources: libmad-0.15.1b.tar.gz,MPlayer-1.0rc2.tar.bz2 Download Software player and decoder http://www.mplayerhq.hu/MPlayer/releases/http://cdnetworks-kr-1.dl.sourceforg

HOST: Ubuntu 11.04

Cross-compiler: arm-linux-gcc 3.4.1

Hardware Platform: FL2440

Software resources: libmad-0.15.1b.tar.gz,MPlayer-1.0rc2.tar.bz2

Download Software player and Decoder

Http://www.mplayerhq.hu/MPlayer/releases/
Http://cdnetworks-kr-1.dl.sourceforge.net/project/mad/libmad/0.15.1b/libmad-0.15.1b.tar.gz

1.decompress libmad-0.15.1b.tar.gzand mplayer-1.0rc2.tar.bz2.

2. Enter libmad-0.15.1b:
(1) configure and generate Makefile :( -- prefix =/opt/arm/3.4.1/lib to specify the installation path of the final generated library file, CC =/opt/arm/3.4.1/bin/arm-linux-gcc specifies the path of the Cross-compilation tool)
Sudo. /configure -- enable-fpm = arm -- host = arm-linux -- disable-shared -- disable-debugging -- prefix =/opt/arm/3.4.1/lib CC =/opt/arm/ 3.4.1/bin/arm-linux-gcc

(2) Compile:
Sudo make

(3) installation:
Sudo make install

3. Enter MPlayer-1.0rc2:
(1) configuration, generate Makefile :( extraincdir =/opt/arm/3.4.1/lib/include and -- with-extralibdir =/opt/arm/3.4.1/lib specify the path of the installation library file in the previous step)

Sudo. /configure -- cc =/opt/arm/3.4.1/bin/arm-linux-gcc -- target = arm-linux -- enable-static -- prefix =/tmp/mplayer-rc2 -- disable-win32dll -- disable -dvdread -- enable-fbdev -- disable-mencoder -- disable-live -- disable-mp3lib -- enable-mad -- enable-libavcodec_a -- language = en_US -- disable-armv5te -- disable-armv6 -- with-extraincdir =/opt/arm/ 3.4.1/lib/include -- with-extralibdir =/opt/arm/3.4.1/lib -- host-cc = gcc -- enable-ossaudio

(2) Compile:
Sudo make

Mplayer is generated in the current directory.

Then execute./mplayer ***./mp4
However, due to hardware restrictions, audio and video synchronization may fail.

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.