Mplayer ��� linux ���������

MPlayer

MPlayer is a popular movie player for GNU/Linux. It has support for most video and audio formats and is thus highly versatile, even if it is mostly used for viewing videos.

Contents

Installation

Install the mplayer package, or mplayer-svn AUR for the development version.

Notable variants are:

Frontends/GUIs

Configuration

System-wide configuration files are located in the /etc/mplayer/ , whereas the user-local settings are stored in

/.mplayer/ directory. The default files in the /etc/mplayer/ are:

  • codecs.conf — Contains configuration of codecs.
  • example.conf — Is an example of mplayer.conf, which is not automatically created after installation.
  • input.conf — Contains configuration of a hotkeys.

A file config is created in the

/.mplayer/ directory by default.

Key bindings

System key bindings are configured via /etc/mplayer/input.conf . Personal key bindings are stored in

/.mplayer/input.conf . For a complete list of keyboard shortcuts look at mplayer(1) .

Tips and tricks

Hardware video acceleration

Enabling VDPAU

Append the following to either the system-wide ( /etc/mplayer/mplayer.conf ) or user-specific (

/.mplayer/config ) configuration files:

Enabling VA-API

This requires mplayer-vaapi AUR from the AUR.

  • -vo — Select vaapi video output driver
  • -va — Select vaapi video decoder driver

MPlayer based players:

  • gnome-mplayer : To enable hardware acceleration: Edit > Preferences > Player, then set Video Output to vaapi .
  • smplayer : To enable hardware acceleration: Options > Preferences > General > Video, then set Output driver to vaapi .

Translucent video with Radeon cards and Composite enabled

To get translucent video output in X you have to enable textured video in MPlayer:

Or add the following line to

You can use xvinfo to check which video modes your graphic card supports.

Watching streamed video

If you want to play a video stream (e.g an ASX link) use:

The -playlist option is necessary because these streams are actually playlists and cannot be played without it.

DVD playing

To play a DVD with MPlayer:

where N is the desired title number. Start at 1 and work up if unsure. To start at a specific chapter use the ‘-chapter’ flag. For example, adding ‘-chapter 5’ to the command starts the dvd playing at chapter five of the title.

Mplayer checks /dev/dvd by default. Tell it to use /dev/sr0 with the dvd-device option at the command line, or the dvd-device variable in

To play a DVD image file:

To enable the DVD menu use:

To enable mouse support in DVD menus use:

To find the audio language, start MPlayer with the -v switch to output audio IDs. An audio track is selected with -aid audio_id . Set a default audio language by editing

/.mplayer/config and adding the line alang=en for English.

With MPlayer, the DVD could be set to a low volume. To increase the maximum volume to 400%, use softvol=yes and softvol-max=400 . The startup volume defaults to 100% of software volume and the global mixer levels will remain untouched. Using the 9 and 0 keys, volume can be adjusted between 0 and 400 percent.

DVB-T Streaming

See DVB-T for more info.

JACK support

To have MPlayer audio output directed to JACK as its default behavior, edit

/.mplayer/config and add:

If you do not have JACK running all the time, you can have MPlayer output to JACK on an as-needed basis by invoking MPlayer from the command line as such:

Advanced Subtitles

In order to get Advanced SubStation Alpha (ass) or SubStation Alpha (ssa) formatted subtitles to display properly you need to either edit

/.mplayer/config and add:

or add -ass to the command line:

One possible indication of needing to enable this flag is if you get numbers appearing with your subtitles. This is caused by the positioning information being interpreted as something to be displayed. Mplayer will also complain about subtitles being either too long or having too many lines.

Enabling ass also enables any embedded fonts. As per the note in the mplayer’s man adding embeddedfonts=true is unneeded if fontconfig is version 2.4.2 or newer. Fontconfig will also be used to select which font to use when there are no embedded fonts. This may result in a different font being used than the OSD subtitle renderer.

Internet radio

Here is an example of a script for an easy start/stop of playing a predefined radio station. [1]

For more details on a running mplayer instance:

Additional binary codecs

If you need to play media encoded with the cook, drvc or sipr codecs, you can install the «essentials» binary codec pack with the codecs64 AUR package. See http://www.mplayerhq.hu/design7/dload.html for more information.

Troubleshooting

MPlayer fails to open files with spaces

MPlayer can fail to open a file with spaces (e.g. ‘The Movie’) by saying that it could not open the file file:///The%20Movie (where all spaces are converted to %20 ). This can be fixed by editing /usr/share/applications/mplayer.desktop to changing the following line from:

If you use a frontend/GUI for MPlayer, enter its name in Exec=gui_name «%F» .

Читайте также:  Описание всех каталогов windows

MPlayer has black or strange colored font for OSD and Subtitles

There appears to be an issue with OSD and Subtitle colors when using vdpau output, which mplayer may be using by default. You can get around this issue by using xv instead of vdpau:

As a command line option:

Adding the following line to your

See the original forums thread for details.

SMPlayer: No video issue

SMPlayer may have trouble opening some MP4 (and probably FLV ) videos. If it plays only audio without any video, a possible fix is to add the following lines to your

If problem persists after doing so, it is because SMPlayer is keeping settings for that specific file. Deleting the settings for all the files that SMPlayer is keeping will solve this problem:

SMPlayer: fail to resume playback after pause

SMPlayer might stop playing a video after pausing it if your audio output driver is incorrectly set. You can fix this by specifically setting your audio driver. For example, if you use PulseAudio, this can be done by starting MPlayer with the -ao pulse argument or by adding the following to your

You can also change this from SMPlayer by going to Options > Preferences > General > Audio and setting the Output Driver option to pulse.

SMPlayer: no video when using transparency in GNOME

This problem may arise under GNOME when using Compiz to provide transparency: SMPlayer starts with a transparent screen with audio playing, but no video. To fix this, create (as root) a file with the contents:

Then do the following:

SMPlayer: OSD font too big / subtitle text too small

Since SMPlayer 0.8.2.1 (with MPlayer2 20121128-1), the ratio of the subtitle font to the OSD font is very strange. This can result in the OSD text filling the whole screen while the subtitles are very small and unreadable. This problem can be solved by adding:

or to the extra options passed to MPlayer from SMPlayer. These options are found in Options > Preferences > Advanced > Options for MPlayer. This can also be achieved by adding the following line to

Mplayer shows question marks for some characters on subtitle

If the codepage of the subtitles is utf8, try using:

You can find the codepage of the subtitles with:

Choppy audio CD playback

CDDA playback may be interrupted every few seconds as the CDROM spins down the CD. To get around this you need to cache or buffer in advance using the -cache option:

The :1 is to lower the CDROM speed for a constant spin and less noise.

Источник

Ubuntu Documentation

MPlayer is a powerful and versatile media player that can play all types of free media formats (see the FreeFormats page) as well as most ‘non-free’ media formats. A companion program called MEncoder can be used to encode or transform any audio or video stream that MPlayer can read.

Installing MPlayer

Streaming Video

MPlayer provides excellent streaming video support for Mozilla, Firefox, Epiphany and Konqueror. To enable support for streaming media install the package mozilla-mplayer.

Tips Tricks & Techniques

Audio Video Syncing on FLV files

To correct problems of audio and video being out of sync, edit or create the file

/.mplayer/config. Then add this text as a line anywhere in the file:

Supported Audio and Video Codecs

    Supported video codecs include:
      MPEG-1 (VCD) and MPEG-2 (SVCD/DVD/DVB) video

    MPEG-4 SP/ASP (for example, encoded with Div X, Xvi D or FFmpeg MPEG-4)

  • H.264 (MPEG-4 AVC)
  • Windows Media Video 7/8/9 (WMV1/2/3)

    Real Video 1.0, 2.0 (G2)

    Real Video 3.0 (RP8), 4.0 (RP9) (using Real libraries)

    Sorenson v1/v3 (SVQ1/SVQ3), Cinepak, RPZA and other Quick Time codecs

  • DV video
  • Intel Indeo 2, 3 (3.1, 3.2)

    Intel Indeo 4.1 and 5.0 (using x86 DLL or X Anim codecs)

  • VIVO 1.0, 2.0, I263 and other H.263(+) variants (using x86 DLL)
  • MJPEG, AVID, VCR2, ASV2 and other hardware formats
  • FLI/FLC

    Huff YUV

  • various old simple RLE-like formats
  • Supported audio codecs include:
    • MPEG layer 1, 2, and 3 (MP3) audio
    • AC3/A52 (Dolby Digital) audio (software or SP/DIF)
    • AAC (MPEG-4 audio)

      WMA (Div X Audio) v1, v2
      WMA 9 (WMAv3), Voxware audio, ACELP.net etc (using x86 DLLs)

      Real Audio: SIPRO (using Real libraries)

      Real Audio: DNET, Cooker, ATRAC3 and older codecs

      Quick Time: Qclp, Q-Design QDMC/QDM2, MACE 3/6 (using QT libraries), ALAC

    • Ogg Vorbis audio
    • VIVO audio (g723, Vivo Siren) (using x86 DLL)
    • alaw/ulaw, (ms)gsm, pcm, adpcm and other simple old audio formats
  • See also

    MPlayer Documentation at the MPlayer web site

    MPlayer (последним исправлял пользователь ckimes 2017-09-26 20:35:19)

    The material on this wiki is available under a free license, see Copyright / License for details
    You can contribute to this wiki, see Wiki Guide for details

    Источник

    Download

    Here you can find everything needed to get MPlayer up and running. The recommended way to install MPlayer is to compile from current SVN source. Look at the unofficial packages section of our projects page if you do not wish to compile from source and/or are looking for packages that may be more tightly integrated with your platform. You might also want to check out the other frontends since there is no further development and limited bug fixing for the included graphical user interface.

    Be advised that we do not support any unofficial packages, only the non-outdated official ones listed below. If you have trouble with unofficial packages, get support from the respective authors.

    For a complete MPlayer installation you will need sources, a set of binary codecs, and a skin if you want a graphical user interface.

    Quick compilation and installation instructions are contained in the README, the installation section of the documentation has more complete information.

    Source Code

    We provide nightly Subversion snapshots generated at six in the morning (GMT+1). They are generally stable and recommended. If you have issues with them report it, or use Subversion directly to get a more up-to-date or previous version, or wait for the next snapshot, it might be fixed by then.

    The Subversion snapshots are working directories complete with Subversion metadata (the result of ‘svn checkout’). The source snapshots are bare sources without Subversion metadata (the result of ‘svn export’).

    Subversion snapshot HTTP FTP
    source snapshot HTTP FTP

    The latest MPlayer release is 1.4, created on 18/04/2019, which includes an FFmpeg snapshot.
    We recommend to always use the latest SVN to get the all the new features and bugfixes, especially if the release date above looks old.

    MPlayer 1.4 release HTTP (xz compressed, 15 MB) FTP (xz compressed, 15 MB)

    The previous MPlayer release is 1.2.1, created on 24/01/2016, which includes FFmpeg 2.8.5.
    Use this version if you need compatibility with FFmpeg 2.8.x branch.

    MPlayer 1.2.1 release HTTP (xz compressed, 13 MB) FTP (xz compressed, 13 MB)

    We keep the old releases and ancient releases of MPlayer, in case anybody is interested.

    Downloading MPlayer from Subversion

    You can also get MPlayer via Subversion. Issue the following command to get the latest sources:

    A directory named mplayer will be created in the current directory. You can later update your sources by typing

    from within that directory.

    Our Subversion setup does not work over HTTP/HTTPS, nor will it in the future. If you have trouble accessing the Subversion repository, then in 99% of all cases a firewall on your side is the problem. Open TCP port 3690 or find a machine that can use the svn:// protocol directly. Another alternative is downloading a Subversion snapshot.

    Binaries

    MPlayer Windows builds HTTP
    UPDATED MPlayer Windows builds HTTP
    MPlayer Mac OS X Extended HTTP
    Fedora and CentOS/RHEL RPM packages from RPMFusion HTTP

    We offer Debian packages of a compact and up-to-date MPlayer for some architectures with minimal dependencies and including the GUI variant.

    Binary Codec Packages

    First of all, a big warning: These packages are useless for normal Windows players and will only work with MPlayer.

    Our binary codec packages add support for codecs that are not yet implemented natively, like newer RealVideo variants and a lot of uncommon formats. Note that they are not necessary to play most common formats like DVDs, MPEG-1/2/4, etc. See the codec status table for the daily-generated list of currently supported codecs.

    Choose the package that matches your processor and operating system. If your system cannot manage Linux libraries, choose the Windows package instead. On Windows MPlayer will try to use the codecs installed on your system. Our packages can save you the hassle of installing every known codec and using untested codec versions.

    Instructions for installing binary codecs can be found in the README or in the README.txt file that accompanies each codec package. If you want to verify the integrity of the codec packages, compare the MD5 sums. If you want to know what’s new in a codec package, check the ChangeLog.

    Old package versions, md5sums of all codecs and unsupported/broken codecs useful for development are kept in the codecs directory.

    Linux x86 20071007 HTTP FTP BITTORRENT
    Linux PPC 20071007 HTTP FTP
    Linux AMD64 20071007 HTTP FTP
    Linux Alpha 20061028 HTTP FTP
    Windows x86 20071007 HTTP FTP BITTORRENT
    Mac OS X x86 20060611 HTTP FTP
    Mac OS X PPC 20041107 HTTP FTP

    Skins

    Click on skin names for screenshots. Read the README or the GUI section of the documentation to find out how to install skins.

    We offer Debian packages of actively maintained skins. (If your favorite skin is missing, drop us a note in the user mailing list.)

    If you want to create your own MPlayer GUI skin, read the skin section of the documentation. If you are content with your skin and wish to have it added to the official skin collection, go over the Creating quality skins guide and submit the skin to us.

    Name Version Creator Description HTTP FTP
    Blue 1.13 Xenomorph new default MPlayer skin 3 HTTP FTP
    Blue-multilingual 1.13.7 Xenomorph, Ingo Brückl Blue, multilingual 1 HTTP FTP
    Blue-small 1.11 Xenomorph compact version 3 HTTP FTP
    Clearlooks 2.0 Ingo BrГјckl modern Clearlooks 2 HTTP FTP
    Clearlooks-multilingual 2.0.7 Ingo BrГјckl modern Clearlooks, multilingual 1 HTTP FTP
    Noskin 1.0 Ingo BrГјckl most minimal, like plain MPlayer (built-in part of the GUI since 2021-02-26) HTTP FTP
    standard 1.12 FRD (Viktor Bekesi) old default skin HTTP FTP
    Abyss 1.7 Xenomorph beautiful MPlayer skin HTTP FTP
    Ater 1.2 Laszlo Simon dark, cool-looking HTTP FTP
    pcland 1.1 Pcland.hu blue waves HTTP FTP
    Corelian 1.2 LUIGI plain look HTTP FTP
    neutron 1.6 Oliwier Ptak futuristic look HTTP FTP
    disappearer 1.2 Alban Hertroys very slim skin HTTP FTP
    plastic 1.3 FRD (Viktor Bekesi) plastic remote control skin HTTP FTP
    phony 1.2 Jurgen Pehrson desktop DVD player skin HTTP FTP
    mentalic 1.4 Oliwier Ptak sharp and shiny HTTP FTP
    proton 1.3 Pasquale Riccio silver, shiny HTTP FTP
    slim 1.3 FRD (Viktor Bekesi) small and cute HTTP FTP
    CornerMP 1.3 DC.Park WinAMP corner skin HTTP FTP
    CornerMP-aqua 1.5 DC.Park WinAMP corner skin HTTP FTP
    trium 1.4 Scognito based on a mobile phone HTTP FTP
    gnome 1.1 Scognito based on the GNOME logo HTTP FTP
    Orange 1.3 Ognian Vasilev clean, good looking HTTP FTP
    QPlayer 1.3 Quiana playful look HTTP FTP
    handheld 1.0 Andrew Carpenter remote control look HTTP FTP
    MidnightLove 1.7 Gabucino XMMS skin of Rei Ayanami HTTP FTP
    avifile 1.8 Toky (Balazs Vigvary) aviplay look HTTP FTP
    BlueHeart 1.6 Gabucino BlueHeart XMMS skin HTTP FTP
    WMP6 2.2 Gabucino Windows Media Player HTTP FTP
    xanim 1.8 Gabucino XAnim «feeling» 🙂 HTTP FTP
    Cyrus 1.3 Roberto J. Cyrus XMMS skin HTTP FTP
    xine-lcd 1.2 Gabucino xine LCD skin HTTP FTP
    AlienMind 1.2 Gabucino Alien Mind XMMS skin HTTP FTP
    hwswskin 1.3 hwsw.hu simple, Windows-ish HTTP FTP
    krystal 1.1 Gary Whitmore Jr. very colorful HTTP FTP
    softgrip 1.2 Sudrien strange design HTTP FTP
    new-age 1.0 Javipa clean and simple HTTP FTP
    DVDPlayer 1.1 Jiri Tyr jun. hardware player lookalike HTTP FTP
    Industrial 1.1 Nikola Pizurica Industrial GTK theme HTTP FTP
    OSX-Brushed 2.4 Ryan Northam iTunes lookalike HTTP FTP
    OSX-Mod 1.1 DogFaceMonk QuickTime lookalike HTTP FTP
    PowerPlayer 1.1 caparuni PowerDVD lookalike HTTP FTP
    Terminator3 1.1 Kiss Balint inspired by Terminator 3 HTTP FTP
    tvisor 1.2 Andre Kuehne simple, well-designed HTTP FTP
    ultrafina 1.2 Diego Biurrun XMMS ultrafina skin HTTP FTP
    XFce4 1.1 Nikola Pizurica default XFce4 theme HTTP FTP
    xmmplayer 1.5 nostrildamus XMMS lookalike HTTP FTP
    JiMPlayer 1.4 Attila Gyimesi round and colorful HTTP FTP
    QuickSilver 1.1 Charles Foucault QuickSilver WMP skin HTTP FTP
    smoothwebby 1.2 Andrew Weber blueish monochrome HTTP FTP
    webby 1.4 Andrew Weber bluegray monochrome HTTP FTP
    Canary 1.2 Veres Imre small, compact HTTP FTP
    CubicPlayer 1.1 Gabucino textmode like HTTP FTP
    divxplayer 1.3 Marcin Szumiela DivX player lookalike HTTP FTP
    hayraphon 1.0 michaell@uni.de bluegray monochrome HTTP FTP
    iTunes 1.2 unknown iTunes inspired HTTP FTP
    iTunes-mini 1.2 unknown iTunes inspired HTTP FTP
    mini 0.1 Fabian Franz browser plugin skin HTTP FTP
    moonphase 1.0 Dan «Jago» Naumov flat gray HTTP FTP
    mplayer_red 1.1 Burt.S. rusty machine HTTP FTP
    nativeRed 1.2 nativeridge red and black HTTP FTP
    netscape4 1.0 Gabucino Communicator 4.77 HTTP FTP
    sessene 1.0 ghostman clean and small HTTP FTP
    bluecurve 1.4 bleachie Red Hat bluecurve theme HTTP FTP
    changuito 0.3 jpoyarzun Gorilla GNOME theme HTTP FTP
    OpenDoh 1.2 siTe Industrial look-alike HTTP FTP
    plastik 2.0 Jesper Schultz KDE plastik theme HTTP FTP
    productive 1.0 Michael Zeising smooth and modern look HTTP FTP
    brushedGnome 1.2 Azrael brushed QPlayer HTTP FTP
    Linea 1.0 Radic Vesko black and white HTTP FTP
    clearplayer 0.10 Massimo Tisi ClearLooks GNOME theme HTTP FTP
    ICY 1.0 Phantom LORD Nero ShowTime skin HTTP FTP
    Dushku 1.2 funkydrummer Eliza Dushku HTTP FTP
    KDE 0.3 RГјdiger Kuhlmann uses KDE images HTTP FTP

    1 can display all glyphs of the Unicode Basic Multilingual Plane (BMP)
    2 can display all Basic Latin and Latin-1 Supplement glyphs, seven Latin Extended-A glyphs (Œ, œ, Š, š, Ÿ, Ž, ž) and the Euro Sign glyph (€)
    3 can only display Basic Latin glyphs, one Latin-1 Supplement glyph (ó) and eight Latin Extended-A glyphs (ą, ć, ę, Ł, ł, ń, ś, ż)

    Debian Packages

      Package: mplayer+gui
      Architecture: amd64
      Architecture: i386
      Description: The Movie Player
      This package contains both the plain MPlayer and the GUI variant of MPlayer.

    All audio and video codecs are provided by a built-in FFmpeg.

    The available output drivers are for ALSA (audio), XVideo (video) and the
    framebuffer device (video).

      Package: mplayer-skin-blue-multilingual
      Architecture: all
      Description: Blue skin (multilingual) for the MPlayer GUI
      The MPlayer GUI can be customized with various skins and needs at least
      one to be used comfortably and as intended.

      This package contains the Blue skin by Xenomorph. It is currently considered
      the default skin for MPlayer. It can display all glyphs of the Unicode Basic
      Multilingual Plane (BMP).

      Package: mplayer-skin-blue-small
      Architecture: all
      Description: Blue skin (small) for the MPlayer GUI
      The MPlayer GUI can be customized with various skins and needs at least
      one to be used comfortably and as intended.

      This package contains the small Blue skin by Xenomorph, a compact version of
      his Blue skin. It can only display Basic Latin glyphs, one Latin-1 Supplement
      glyph and eight Latin Extended-A glyphs.

      Package: mplayer-skin-blue
      Architecture: all
      Description: Blue skin for the MPlayer GUI
      The MPlayer GUI can be customized with various skins and needs at least
      one to be used comfortably and as intended.

      This package contains the Blue skin by Xenomorph. Although it is currently
      considered the default skin for the MPlayer GUI, it can only display Basic
      Latin glyphs, one Latin-1 Supplement glyph and eight Latin Extended-A glyphs.

      Package: mplayer-skin-clearlooks-multilingual
      Architecture: all
      Description: Clearlooks skin (multilingual) for the MPlayer GUI
      The MPlayer GUI can be customized with various skins and needs at least
      one to be used comfortably and as intended.

      This package contains the Clearlooks skin suitable for the Clearlooks
      GTK theme. It can display all glyphs of the Unicode Basic Multilingual
      Plane (BMP).

      Package: mplayer-skin-clearlooks
      Architecture: all
      Description: Clearlooks skin for the MPlayer GUI
      The MPlayer GUI can be customized with various skins and needs at least
      one to be used comfortably and as intended.

      This package contains the Clearlooks skin suitable for the Clearlooks
      GTK theme. It can display all Basic Latin and Latin-1 Supplement glyphs,
      seven Latin Extended-A glyphs and the Euro Sign glyph.

    Using MPlayer’s Debian package repository

    To connect to MPlayer’s Debian package repository, create (as superuser) a file /etc/apt/sources.list.d/mplayer.list with the following content:

    Now download MPlayer’s Debian package repository public key. Make sure that this key has the fingerprint 81A6 9856 E6FE 8556 91BC 9AFC 957E 566E 3A92 C61F, because only then it is authentic, and make the key known to the apt keyring afterwards:

    After a sudo apt update you can install packages from our Debian package repository by simply using sudo apt install and the package name.

    Источник

    Читайте также:  Pro mac windows com
    Оцените статью