Difference between revisions of "MPlayer"
m (codeline -> ic) |
m (→Configuration: added new lines to make it more readable) |
||
(39 intermediate revisions by 18 users not shown) | |||
Line 1: | Line 1: | ||
− | [[Category: | + | [[Category:Player]] |
− | + | [[cs:MPlayer]] | |
+ | [[el:MPlayer]] | ||
[[fr:MPlayer]] | [[fr:MPlayer]] | ||
− | + | [[it:MPlayer]] | |
+ | [[ru:MPlayer]] | ||
+ | [[es:MPlayer]] | ||
+ | [[uk:MPlayer]] | ||
+ | [[zh-CN:MPlayer]] | ||
'''MPlayer''' is a popular movie player for GNU/Linux. It has support for pretty much every video and audio format out there and is hence very versatile, even though most people use it for viewing videos. | '''MPlayer''' is a popular movie player for GNU/Linux. It has support for pretty much every video and audio format out there and is hence very versatile, even though most people use it for viewing videos. | ||
==Installation== | ==Installation== | ||
− | |||
− | |||
− | |||
− | |||
− | + | MPlayer can be installed by three different packages from the [[official repositories]]: | |
+ | * {{Pkg|mplayer}}: the standard package. | ||
+ | * {{Pkg|mplayer-vaapi}}: a VAAPI-enabled version of MPlayer. | ||
+ | * {{Pkg|mplayer2}} a [http://www.mplayer2.org/ fork of MPlayer] with several new features. | ||
− | + | Development versions are also available in the [[AUR]]: | |
+ | * {{AUR|mplayer-svn}} | ||
+ | * {{AUR|mplayer2-git}} | ||
− | + | For differences between the two see [http://www.mplayer2.org/differences/ MPlayer2 vs MPlayer]. | |
==Additional installation tips== | ==Additional installation tips== | ||
Line 21: | Line 27: | ||
===Frontends/GUIs=== | ===Frontends/GUIs=== | ||
There are several GUIs for MPlayer. | There are several GUIs for MPlayer. | ||
− | * Qt: {{ | + | * {{App|[[Wikipedia:SMPlayer|SMPlayer]]|A middleweight Qt front-end for MPlayer with additional patches.|http://smplayer.sourceforge.net/|{{Pkg|smplayer}}}} |
− | * | + | * {{App|UMPlayer|A SMPlayer fork with extra features (CSS themes, YouTube integration, ShoutCast support, etc.).|http://www.umplayer.com/|{{AUR|umplayer}}}} |
− | + | * {{App|GNOME-MPlayer|A simple GTK-based GUI for MPlayer.|http://kdekorte.googlepages.com/gnomemplayer|{{Pkg|gnome-mplayer}}}} | |
+ | * {{App|Pymp|A PyGTK frontend for MPlayer.|http://jdolan.dyndns.org/trac/wiki/Pymp|{{AUR|pymp}}}} | ||
+ | * {{App|KMPlayer|A video player plugin for Konqueror and basic MPlayer/Xine/ffmpeg/ffserver/VDR frontend for KDE.|http://kmplayer.kde.org/|{{AUR|kmplayer}}}} | ||
+ | * {{App|Xt7-Player|A graphical user interface for MPlayer written in Gambas, with a huge list of features.|http://xt7-player.sourceforge.net/xt7forum/|{{AUR|xt7-player}}}} | ||
===Browser integration=== | ===Browser integration=== | ||
Line 31: | Line 40: | ||
====Firefox==== | ====Firefox==== | ||
− | + | A browser plugin is available in the [[official repositories]] with the {{Pkg|gecko-mediaplayer}} package. | |
− | {{Note| Depends on gnome-mplayer, which provides a complete frontend to MPlayer.}} | + | {{Note|Depends on {{Pkg|gnome-mplayer}}, which provides a complete frontend to MPlayer.}} |
====Konqueror==== | ====Konqueror==== | ||
− | + | A plugin for Konqueror can be found in the [[AUR]] with the {{AUR|kmplayer}} package. | |
+ | |||
+ | {{Note|{{AUR|kmplayer}} Also provides a complete frontend to MPlayer.}} | ||
− | {{ | + | ====Chromium==== |
+ | |||
+ | The {{Pkg|gecko-mediaplayer}} plugin for Firefox also works in [[Chromium]]. | ||
==Usage== | ==Usage== | ||
===Configuration=== | ===Configuration=== | ||
− | System-wide configuration is located in {{ | + | System-wide configuration is located in {{ic|/etc/mplayer/mplayer.conf}}, whereas the user-local settings are stored in {{ic|~/.mplayer/config}}. The file {{ic|/etc/mplayer/example.conf}} is a good starting point. |
An example configuration: | An example configuration: | ||
− | {{ | + | {{hc|/etc/mplayer/example.conf|2= |
# default configuration that applies to every file | # default configuration that applies to every file | ||
[default] | [default] | ||
+ | |||
# use X11 for video output | # use X11 for video output | ||
vo=xv | vo=xv | ||
− | # use | + | |
+ | # use alsa for audio output | ||
ao=alsa | ao=alsa | ||
# ao=oss # Use OSS4 | # ao=oss # Use OSS4 | ||
+ | |||
+ | # multithreaded decoding of H264/MPEG-1/2 (valid: 1-8) | ||
+ | lavdopts=threads=2 | ||
+ | |||
# prefer using six channels audio | # prefer using six channels audio | ||
channels = 6 | channels = 6 | ||
+ | |||
# scale the subtitles to the 3% of the screen size | # scale the subtitles to the 3% of the screen size | ||
subfont-text-scale = 3 | subfont-text-scale = 3 | ||
+ | |||
# never use font config | # never use font config | ||
nofontconfig = 1 | nofontconfig = 1 | ||
+ | |||
# add black borders so the movies have the same aspect ratio of the monitor | # add black borders so the movies have the same aspect ratio of the monitor | ||
# for wide screen monitors | # for wide screen monitors | ||
vf-add=expand=::::1:16/9:16 | vf-add=expand=::::1:16/9:16 | ||
+ | |||
# for non wide screen traditional monitors | # for non wide screen traditional monitors | ||
#vf-add=expand=::::1:4/3:16 | #vf-add=expand=::::1:4/3:16 | ||
Line 84: | Line 107: | ||
}} | }} | ||
− | === | + | ===Key Bindings=== |
− | : | + | :This is a list of the most basic MPlayer keys. For a complete list of keyboard shortcuts look at {{ic|man mplayer}}. |
{| | {| | ||
− | ! width= | + | ! width=85 align=left | Key |
! align=left | Description | ! align=left | Description | ||
|- | |- | ||
− | | p | + | | {{Keypress|p}} |
| Toggle pause/play. | | Toggle pause/play. | ||
|- | |- | ||
− | | Space | + | | {{Keypress|Space}} |
| Toggle pause/play. | | Toggle pause/play. | ||
|- | |- | ||
|- | |- | ||
− | | Backspace | + | | {{Keypress|Backspace}} |
| Return to menu when using dvdnav. | | Return to menu when using dvdnav. | ||
|- | |- | ||
− | | | + | | {{Keypress|←}} |
| Seek backward ten seconds. | | Seek backward ten seconds. | ||
|- | |- | ||
− | | | + | | {{Keypress|→}} |
| Seek forward ten seconds. | | Seek forward ten seconds. | ||
|- | |- | ||
− | | | + | | {{Keypress|↓}} |
| Seek backward one minute. | | Seek backward one minute. | ||
|- | |- | ||
− | | | + | | {{Keypress|↑}} |
| Seek forward one minute. | | Seek forward one minute. | ||
|- | |- | ||
− | | < | + | | {{Keypress|<}} |
| Go back in the playlist. | | Go back in the playlist. | ||
|- | |- | ||
− | | > | + | | {{Keypress|>}} |
| Go forward in the playlist. | | Go forward in the playlist. | ||
|- | |- | ||
− | | m | + | | {{Keypress|m}} |
| Mute the sound. | | Mute the sound. | ||
|- | |- | ||
− | | 0 | + | | {{Keypress|0}} |
| Volume up. | | Volume up. | ||
|- | |- | ||
− | | 9 | + | | {{Keypress|9}} |
| Volume down. | | Volume down. | ||
|- | |- | ||
− | | f | + | | {{Keypress|f}} |
| Toggle fullscreen mode. | | Toggle fullscreen mode. | ||
|- | |- | ||
− | | o | + | | {{Keypress|o}} |
| Toggle OSD state. | | Toggle OSD state. | ||
|- | |- | ||
− | | | + | | {{Keypress|v}} |
| Toggle subtitle visibility. | | Toggle subtitle visibility. | ||
|- | |- | ||
− | | | + | | {{Keypress|I}} |
| Show filename. | | Show filename. | ||
|- | |- | ||
− | | 1, 2 | + | | {{Keypress|1}}, {{Keypress|2}} |
| Adjust contrast. | | Adjust contrast. | ||
|- | |- | ||
− | | 3, 4 | + | | {{Keypress|3}}, {{Keypress|4}} |
| Adjust brightness. | | Adjust brightness. | ||
|- | |- | ||
− | | j | + | | {{Keypress|j}} |
| Cycle through the available subtitles. | | Cycle through the available subtitles. | ||
|- | |- | ||
− | | # | + | | {{Keypress|#}} |
| Cycle through the available audio tracks. | | Cycle through the available audio tracks. | ||
|} | |} | ||
Line 157: | Line 180: | ||
===Automatic Resuming Where You Left Off=== | ===Automatic Resuming Where You Left Off=== | ||
− | The [[AUR]] contains an elegant perl wrapper-script which will allow autoresuming from the point at which playback was stopped {{ | + | The [[AUR]] contains an elegant perl wrapper-script which will allow autoresuming from the point at which playback was stopped {{AUR|mplayer-resumer}}. |
Usage is trivial: simply call the wrapper-script in place of mplayer. | Usage is trivial: simply call the wrapper-script in place of mplayer. | ||
Line 167: | Line 190: | ||
'''RATIONALE''' | '''RATIONALE''' | ||
− | Watching 90% of a video and stopping causes you to return to the beginning again the next time you watch it. Remembering where you were in the video and resuming at that position is a much nicer behavior for the user. By default, mplayer spits out timecode information that tells you where you are in the video, to the tenth of a second. | + | Watching 90% of a video and stopping causes you to return to the beginning again the next time you watch it. Remembering where you were in the video and resuming at that position is a much nicer behavior for the user. By default, mplayer spits out timecode information that tells you where you are in the video, to the tenth of a second. MPlayer also supports a seek feature on the command-line. We can make use of these features to write an mplayer wrapper that will remember the last position in a video file and resume to it on playback. |
'''DESIGN LIMITATION''' | '''DESIGN LIMITATION''' | ||
Line 173: | Line 196: | ||
If the video file to be played is on a read-only filesystem, or otherwise lives in a location that cannot be written to, resume will fail. This is because the current implementation uses a file parallel to the video file to store the timecode. | If the video file to be played is on a read-only filesystem, or otherwise lives in a location that cannot be written to, resume will fail. This is because the current implementation uses a file parallel to the video file to store the timecode. | ||
− | ===Enabling VDPAU (modern | + | ===Enabling VDPAU (modern Nvidia cards only)=== |
− | For a complete list of VDPAU capable hardware, see | + | For a complete list of VDPAU capable hardware, see [http://en.wikipedia.org/wiki/PureVideo#Table_of_PureVideo_.28HD.29_GPUs this table]. Ensure the {{Pkg|nvidia}} driver is installed and consider one of the following two methods to automatically enable VDPAU for playback. |
==== 1. Using a conf file ==== | ==== 1. Using a conf file ==== | ||
− | Append the following to either the system-wide or user-specific config files | + | Append the following to either the system-wide ({{ic|/etc/mplayer/mplayer.conf}}) or user-specific ({{ic|~/.mplayer/config}}) config files: |
vo=vdpau, | vo=vdpau, | ||
− | vc=ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau | + | vc=ffh264vdpau,ffmpeg12vdpau,ffodivxvdpau,ffwmv3vdpau,ffvc1vdpau, |
− | {{Note|The trailing commas are important!}} | + | {{Note|The trailing commas are important! They tell MPlayer to fall back on other drivers and codecs should the specified ones not be found.}} |
− | {{Warning|The ffodivxvdpau is only supported by the most recent series of | + | {{Warning|The ffodivxvdpau is only supported by the most recent series of Nvidia hardware. Consider omitting it based on your specific hardware. See [[NVIDIA#Enabling_Pure_Video_HD_.28VDPAU.2FVAAPI.29|the Nvidia page]] for more information.}} |
==== 2. Using a wrapper script ==== | ==== 2. Using a wrapper script ==== | ||
− | The [[AUR]] contains a trivial bash script called {{ | + | The [[AUR]] contains a trivial bash script called {{AUR|mplayer-vdpau-auto}} that detects which video codec to use and when to use VDPAU as the video output. |
===Translucent Video with radeon and Composite enabled=== | ===Translucent Video with radeon and Composite enabled=== | ||
Line 196: | Line 219: | ||
$ mplayer -vo xv:adaptor=1 <File> | $ mplayer -vo xv:adaptor=1 <File> | ||
− | Or add the following line to {{ | + | Or add the following line to {{ic|~/.mplayer/config}}: |
vo=xv:adaptor=1 | vo=xv:adaptor=1 | ||
Line 202: | Line 225: | ||
You can use xvinfo to check which video modes your graphic card supports. | You can use xvinfo to check which video modes your graphic card supports. | ||
− | === | + | === SMPlayer No Video Issue === |
− | + | SMPlayer may have trouble opening mp4 (and probably flv) videos. If it plays only audio without video here is the fix: | |
Open your {{Ic|~/.mplayer/config}} file and add | Open your {{Ic|~/.mplayer/config}} file and add | ||
Line 214: | Line 237: | ||
$ rm -rf ~/.config/smplayer/file_settings | $ rm -rf ~/.config/smplayer/file_settings | ||
− | === | + | === SMPlayer fails to resume playback after pause === |
− | + | SMPlayer might stop playing a video after pausing it if your audio output driver is set wrong. If PulseAudio is used start mplayer with the "-ao pulse" argument or edit your {{Ic|~/.mplayer/config}} file and add | |
ao=pulse | ao=pulse | ||
− | In | + | In SMPlayer you have to change your "Output-driver" under "General" - "Audio" in the options. |
===Transparent SMPlayer in Gnome with Composite enabled=== | ===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 | + | 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 | sudo bash -c "cat > /usr/bin/smplayer.helper" <<EOF | ||
Line 234: | Line 257: | ||
sudo ln -sf smplayer.helper /usr/bin/smplayer | sudo ln -sf smplayer.helper /usr/bin/smplayer | ||
− | If you | + | If you don't use sudo then just use "su" to login as root and do the above! |
===Watching streamed video=== | ===Watching streamed video=== | ||
Line 261: | Line 284: | ||
===Stream mplayer audio to jackd=== | ===Stream mplayer audio to jackd=== | ||
− | + | To have mplayer audio output directed to [[JACK]] as its default behavior, edit {{ic|~/.mplayer/config}} and add: | |
ao=jack | ao=jack | ||
− | === | + | If you don't 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: |
+ | |||
+ | {{ic|$ mplayer -ao jack [path]/filename}} | ||
+ | |||
+ | === 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. | 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 {{ | + | Then edit {{ic|/usr/share/applications/mplayer.desktop}} to change the following line from: |
Exec=mplayer %U | Exec=mplayer %U | ||
Line 277: | Line 304: | ||
Exec=mplayer "%F" | Exec=mplayer "%F" | ||
− | If you | + | If you have a frontend/GUI enter GUI name in Exec=gui_name "%F". |
==External links== | ==External links== | ||
* [http://www.mplayerhq.hu/ Official MPlayer website] | * [http://www.mplayerhq.hu/ Official MPlayer website] | ||
* [http://www.keyxl.com/aaa2fa5/302/MPlayer-keyboard-shortcuts.htm List of shortcut keys] | * [http://www.keyxl.com/aaa2fa5/302/MPlayer-keyboard-shortcuts.htm List of shortcut keys] |
Revision as of 19:14, 12 November 2012
zh-CN:MPlayer MPlayer is a popular movie player for GNU/Linux. It has support for pretty much every video and audio format out there and is hence very versatile, even though most people use it for viewing videos.
Contents
- 1 Installation
- 2 Additional installation tips
- 3 Usage
- 4 Tips and Tricks
- 4.1 Automatic Resuming Where You Left Off
- 4.2 Enabling VDPAU (modern Nvidia cards only)
- 4.3 Translucent Video with radeon and Composite enabled
- 4.4 SMPlayer No Video Issue
- 4.5 SMPlayer fails to resume playback after pause
- 4.6 Transparent SMPlayer in Gnome with Composite enabled
- 4.7 Watching streamed video
- 4.8 Play mplayer with dvdnav support
- 4.9 Seek forward/backward in a downloading file
- 4.10 Increase the total volume
- 4.11 Stream mplayer audio to jackd
- 4.12 MPlayer fails to open files with spaces
- 5 External links
Installation
MPlayer can be installed by three different packages from the official repositories:
- mplayer: the standard package.
- mplayer-vaapi: a VAAPI-enabled version of MPlayer.
- mplayer2 a fork of MPlayer with several new features.
Development versions are also available in the AUR:
- mplayer-svnAUR
- mplayer2-gitAUR
For differences between the two see MPlayer2 vs MPlayer.
Additional installation tips
Frontends/GUIs
There are several GUIs for MPlayer.
- SMPlayer — A middleweight Qt front-end for MPlayer with additional patches.
- UMPlayer — A SMPlayer fork with extra features (CSS themes, YouTube integration, ShoutCast support, etc.).
- GNOME-MPlayer — A simple GTK-based GUI for MPlayer.
- Pymp — A PyGTK frontend for MPlayer.
- KMPlayer — A video player plugin for Konqueror and basic MPlayer/Xine/ffmpeg/ffserver/VDR frontend for KDE.
- Xt7-Player — A graphical user interface for MPlayer written in Gambas, with a huge list of features.
Browser integration
If you want to let MPlayer control video viewing in your favorite web browser, install the following:
Firefox
A browser plugin is available in the official repositories with the gecko-mediaplayer package.
Konqueror
A plugin for Konqueror can be found in the AUR with the kmplayerAUR package.
Chromium
The gecko-mediaplayer plugin for Firefox also works in Chromium.
Usage
Configuration
System-wide configuration is located in /etc/mplayer/mplayer.conf
, whereas the user-local settings are stored in ~/.mplayer/config
. The file /etc/mplayer/example.conf
is a good starting point.
An example configuration:
/etc/mplayer/example.conf
# default configuration that applies to every file [default] # use X11 for video output vo=xv # use alsa for audio output ao=alsa # ao=oss # Use OSS4 # multithreaded decoding of H264/MPEG-1/2 (valid: 1-8) lavdopts=threads=2 # prefer using six channels audio channels = 6 # scale the subtitles to the 3% of the screen size subfont-text-scale = 3 # never use font config nofontconfig = 1 # add black borders so the movies have the same aspect ratio of the monitor # for wide screen monitors vf-add=expand=::::1:16/9:16 # for non wide screen traditional monitors #vf-add=expand=::::1:4/3:16 #profile for up-mixing two channels audio to six channels # use -profile 2chto6ch to activate [2chto6ch] af-add=pan=6:1:0:.4:0:.6:2:0:1:0:.4:.6:2 #profile to down-mixing six channels audio to two channels # use -profile 6chto2ch to activate [6chto2ch] af-add=pan=2:0.7:0:0:0.7:0.5:0:0:0.5:0.6:0.6:0:0 # Disable screensaver. heartbeat-cmd="xscreensaver-command -deactivate &" # stop xscreensaver stop-xscreensaver="yes" # stop gnome-screensaver
Key Bindings
- This is a list of the most basic MPlayer keys. For a complete list of keyboard shortcuts look at
man mplayer
.
Key | Description |
---|---|
Template:Keypress | Toggle pause/play. |
Template:Keypress | Toggle pause/play. |
Template:Keypress | Return to menu when using dvdnav. |
Template:Keypress | Seek backward ten seconds. |
Template:Keypress | Seek forward ten seconds. |
Template:Keypress | Seek backward one minute. |
Template:Keypress | Seek forward one minute. |
Template:Keypress | Go back in the playlist. |
Template:Keypress | Go forward in the playlist. |
Template:Keypress | Mute the sound. |
Template:Keypress | Volume up. |
Template:Keypress | Volume down. |
Template:Keypress | Toggle fullscreen mode. |
Template:Keypress | Toggle OSD state. |
Template:Keypress | Toggle subtitle visibility. |
Template:Keypress | Show filename. |
Template:Keypress, Template:Keypress | Adjust contrast. |
Template:Keypress, Template:Keypress | Adjust brightness. |
Template:Keypress | Cycle through the available subtitles. |
Template:Keypress | Cycle through the available audio tracks. |
Tips and Tricks
Automatic Resuming Where You Left Off
The AUR contains an elegant perl wrapper-script which will allow autoresuming from the point at which playback was stopped mplayer-resumerAUR.
Usage is trivial: simply call the wrapper-script in place of mplayer. Example:
$ mplayer-resumer [options] [path/]filename
If this script is restarted within $tdiff (default 5 seconds) then it will delete the file used to keep track of the videos resume position.
RATIONALE
Watching 90% of a video and stopping causes you to return to the beginning again the next time you watch it. Remembering where you were in the video and resuming at that position is a much nicer behavior for the user. By default, mplayer spits out timecode information that tells you where you are in the video, to the tenth of a second. MPlayer also supports a seek feature on the command-line. We can make use of these features to write an mplayer wrapper that will remember the last position in a video file and resume to it on playback.
DESIGN LIMITATION
If the video file to be played is on a read-only filesystem, or otherwise lives in a location that cannot be written to, resume will fail. This is because the current implementation uses a file parallel to the video file to store the timecode.
Enabling VDPAU (modern Nvidia cards only)
For a complete list of VDPAU capable hardware, see this table. Ensure the nvidia driver is installed and consider one of the following two methods to automatically enable VDPAU for playback.
1. Using a conf file
Append the following to either the system-wide (/etc/mplayer/mplayer.conf
) or user-specific (~/.mplayer/config
) config files:
vo=vdpau, vc=ffh264vdpau,ffmpeg12vdpau,ffodivxvdpau,ffwmv3vdpau,ffvc1vdpau,
2. Using a wrapper script
The AUR contains a trivial bash script called mplayer-vdpau-autoAUR that detects which video codec to use and when to use VDPAU as the video output.
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 ~/.mplayer/config
:
vo=xv:adaptor=1
You can use xvinfo to check which video modes your graphic card supports.
SMPlayer No Video Issue
SMPlayer may have trouble opening mp4 (and probably flv) videos. If it plays only audio without video here is the fix:
Open your ~/.mplayer/config
file and add
[extension.mp4] demuxer=mov
If problem persists after doing so, it is because of smplayer is keeping settings for that specific file. Deleting file settings of smplayer will fix this.
$ rm -rf ~/.config/smplayer/file_settings
SMPlayer fails to resume playback after pause
SMPlayer might stop playing a video after pausing it if your audio output driver is set wrong. If PulseAudio is used start mplayer with the "-ao pulse" argument or edit your ~/.mplayer/config
file and add
ao=pulse
In SMPlayer you have to change your "Output-driver" under "General" - "Audio" in the options.
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.
If you want to use mplayer with dvdnav support to enable the menus of a dvd then use the following syntax:
$ mplayer -nocache dvdnav://
Seek forward/backward in a downloading file
If you want to be able to seek forward and backward in a video file which is still downloading whilst watching it, add the following to your config file.
idx=yes
Increase the total volume
If the maximal volume provided by the sound settings is not loud enough, you can increase the volume by mplayer itself. Activate softvol and set a maximal level which has to range between 10 and 10000.
softvol=1 softvol-max=600
Stream mplayer audio to jackd
To have mplayer audio output directed to JACK as its default behavior, edit ~/.mplayer/config
and add:
ao=jack
If you don't 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:
$ mplayer -ao jack [path]/filename
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 /usr/share/applications/mplayer.desktop
to change the following line from:
Exec=mplayer %U
To:
Exec=mplayer "%F"
If you have a frontend/GUI enter GUI name in Exec=gui_name "%F".