Implementation of mplayer in Ubuntu

Source: Internet
Author: User
Tags configuration settings

 

  1. Linux
    X86
    Installation

  1. Required installation package

    1. All-20071007.tar
      (Unused)

    2. Windows-all-20071007

      Http://www1.mplayerhq.hu/MPlayer/releases/codecs/windows-essential-20071007.zip

    3. Mplayer-1.0rc2.tar

      1. HTTP
      :
      Http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2

    4. Essential-20071007.tar

       
      Http://www1.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2

    5. 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:

  1. 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

  1. 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

 

 

  1. Mplayer

    Install
  2.  

    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

 

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.