Use of MPlayer in Ubuntu

Source: Internet
Author: User
Use of MPlayer (Universal player) in Ubuntu-general Linux technology-Linux technology and application information. The following is a detailed description. Introduction:
Http://www.mplayerhq.hu/design7/dload.html
Mplayer supports a large number of formats (of course, win32 decoder is required, so xine can support more formats) and uses a similar interface as WinDVD, you can change the Panel (skin replacement ).
Mplayer is a free multimedia file player.
According to the manual, Mplayer is currently the most supported multimedia file formats on the planet.

1. Install Mplayer

Sudo apt-get install mplayer-fonts

2. Configure Mplayer

Open the file:
Sudo cp/etc/mplayer. conf/etc/mplayer. conf_backup
Sudo gedit/etc/mplayer. conf

Player problem solving:

1. Sound, no image

Find the following line
...
# Specify default video driver (see-vo help for a list ).
Vo = x11
...

Replace the following line
# Specify default video driver (see-vo help for a list ).
Vo = xv

Go to the http://www.debian-multimedia.org/pool/main/w/w32codecs/ to download the deb package.

2. Full Screen failure

Find # zoom = yes, and then remove #.

3. Audio Output
# Specify default audio driver (see-ao help for a list ).

Ao = pulse, alsa,

Or ao = alsa,

4. Sound mixing tool (optional)
# Mixer =/dev/mixer

Remove #

5. Set the output frequency (optional)
# Resample the sound to 44100Hz with the lavcresample audio filter.

Af = lavcresample = 44100

We recommend that you use the default 44100 value. If you like low frequency, you can set it to 48000 or above. If you do not have any special interests, you can set it *
It should not be set here. The value here is the sampling rate, which has nothing to do with the high-frequency and low-frequency. If you must set it, we recommend that you select 48000.

6. Enable default cache (optional)
# Use 8 MB input cache by default.
Cache = 8192
#
# Prefills l 20% of the cache before starting playback.
Cache-min = 20.0
#
# Prefills l 50% of the cache before restarting playback after the cache emptied.
Cache-seek-min = 50

Use the default values for the remaining parts.
[Edit]
Faster startup

If the startup speed slows down, open mplayer and remove the check mark before the stop xscreensaver in preferences -- misc.
[Edit]
Install Decoder

Install the w32codecs Decoder (used to play multimedia files on common windows platforms such as wmv and rmvb; suppose you have added the ubuntu-cn source ).
Sudo apt-get install w32codecs

You can also download the latest decoding package on the Mplayer website by yourself. The URL is "linux x86" under the title of "Binary Codec Packages" in the http://www.mplayerhq.hu/design7/dload.html... ", such as Linux x86 20061022, download and decompress it to/usr/lib/codecs/or/usr/lib/win32.

For example
Sudo mkdir/usr/lib/codecs/
Cd/tmp
Wget-c http://www1.mplayerhq.hu/MPlayer... al-20071007.tar.bz2
Tar jxvf essential-20071007.tar.bz2
Sudo mv essential */usr/lib/codecs/

Note: To Play realplay files must download all-20071007.tar.bz2 under the http://www.mplayerhq.hu/MPlayer/releases/codecs/ can be, use the essential encoding package cannot play realplay files normally

If you want to install amd64, you need to install the w64codecs decoder. The command is
Sudo apt-get install w64codecs

If your source does not exist, you can download it from the official website. The Forum has netizens share the attachment, link for click to enter http://debian-multimedia.org/pool/main/
[Edit]
Configure Chinese subtitle display (optional)
Mkdir ~ /. Mplayer
Ln-sf/usr/share/fonts/truetype/arphic/uming. ttf ~ /. Mplayer/subfont. ttf
Gedit ~ /. Mplayer/gui. conf
Sub_cp = "cp936"
Font_text_scale = "4.000000"
Font_osd_scale = "4.000000"
Sub_fuzziness = 2

If the above method does not work, whether the GUI window or the command line is used to play Video Subtitles, try the following method.
For command line playback
~ /. Add the following content to the mplayer/config file:
Subcp = "cp936"
Font = "/usr/share/fonts/truetype/arphic/uming. ttf"
Subfont = "/usr/share/fonts/truetype/arphic/uming. ttf"
Right-click on MPlayer to play in the GUI window
Preferences-> Subtitle & OSD-> Encoding, select Simplified Chinese charset (CP936 ).
Preferences-> Font, enter/usr/share/fonts/truetype/arphic/uming. ttf at Font, and select Unicode at Encoding.
[Edit]
Install mplayer skin
The downloaded file is the compressed package named skin_name.tar.bz2: (the following operations are mainly performed in the Nautilus File Manager)
Decompress the downloaded tar.bz2 package to obtain the skin_name folder. Next, cut the folder to. mplayer/skins in the home directory. To hide the folder, ctrl + h is required for the hidden attribute. The mplayer skin list will be displayed as the_other_name
[Edit]
Install browser plug-ins
Sudo apt-get install mozilla-mplayer
Restart Firefox to make the mozilla-mplayer plug-in take effect

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.