MPlayer (Česky)

From ArchWiki
Revision as of 05:08, 5 May 2010 by Stary (Talk | contribs) (Created page with 'Category:Audio/Video (Česky) Category:HOWTOs (Česky) Category:Česky {{i18n|MPlayer}} '''MPlayer''' je populární přehrávač videa pro GNU/Linux. Podporuje vše…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

MPlayer je populární přehrávač videa pro GNU/Linux. Podporuje všechny možné dostupné video a audio formáty a je velmi všestranný. Většina uživatelů jej používá pro přehrávání videa.

Instalace

Blíček Template:Package Official je dostupný v repozitáři [extra]:

# pacman -S mplayer

Poslední vývojová verze je v repozitáři AUR (Template:Package AUR) volitelně s podporou vícevláknového FFmpeg (experimentální) (Template:Package AUR).

Instalační tipy

Grafická prostředí

Existuje několik grafických prostředí pro MPlayer.

  • Qt: smplayer je v repozitáři extra. Jsou pro něj dostupná témata smplayer-themes.
  • Gtk+: pymp a gnome-mplayer jsou v repozitáři AUR a community v tomto pořadí.
  • gmplayer: toto prostředí již není v balíčku mplayer dostupné. Existuje alternativní balíček pro mplayer (mplayer-x) v AUR, ve kterém je gmplayer obsažen.

Integrace do prohlížeče

Pokud chcete, aby MPlayer přehrával video ve vašem oblíbeném internetovém prohlížeči, nainstalujte si toto:

Firefox

# pacman -S gecko-mediaplayer

Konqueror

# pacman -S kmplayer
Note: Také nabízí kompletní rozhraní pro MPlayer.

Použití

Konfigurace

Systémová konfigurace je uložena v souboru Template:Filename, uživatelská nastavení jsou v souboru Template:Filename. Příklad konfigurace je v souboru Template:Filename.

Příklad konfigurace:

Template:File

Translucent Video with radeon and Composite enabled

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

$ mplayer -vo xv:adaptor=1 <File>

Or add the following line to Template:Filename:

vo=xv:adaptor=1

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

Transparent SMPlayer in Gnome with Composite enabled

Have you noticed the transparent screen of smplayer when you are using compiz and maybe cairo-dock? Well it’s ridiculous that when you open your videos using SMplayer you can just hear audio and no video! Here’s how you fix this: [copy paste into terminal]

   sudo bash -c “cat > /usr/bin/smplayer.helper” <<EOF
   export XLIB_SKIP_ARGB_VISUALS=1
   exec smplayer.real “\$@”
   EOF
   sudo chmod 755 /usr/bin/smplayer.helper
   sudo mv /usr/bin/smplayer{,.real}
   sudo ln -sf smplayer.helper /usr/bin/smplayer

If you don’t use sudo then just use “su” to login as root and do the above!

Watching streamed video

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

$ mplayer -playlist link-to-stream.asx 

To play the stream, as these are playlists of streams and won't be playable by omitting the -playlist option.

Play mplayer with dvdnav support

If you want to use mplayer with dvdnav support to enable the menus of a dvd then use the following syntax:

$ mplayer -nocache dvdnav://

Stream mplayer audio to jackd

Edit Template:Filename and add:

ao=jack

Keybindings

This is a list of the most basic MPlayer keys.
Key Description
p Toggle pause/play.
Space Toggle pause/play.
Backspace Return to menu when using dvdnav.
Left Seek backward ten seconds.
Right Seek forward ten seconds.
Down Seek backward one minute.
Up Seek forward one minute.
< Go back in the playlist.
> Go forward in the playlist.
m Mute the sound.
0 Volume up.
9 Volume down.
f Toggle fullscreen mode.
o Toggle OSD state.
j Toggle subtitle visibility.
I Show filename.
1, 2 Adjust contrast.
3, 4 Adjust brightness.

Mplayer fails to open files with spaces

If you try to open a file with spaces (The Movie) and mplayer fails. Saying that it could not open the file (file:///The%20Movie), where all spaces are converted to %20.

Then edit Template:Filename to change the following line from:

Exec=mplayer %U

To:

Exec=mplayer %F

If you got frontend/GUI enter GUI name in Exec=GUI name %F.

External links