Manjaro Difference between revisions of "Mplayer"

Difference between revisions of "Mplayer"

From Manjaro
imported>AHD
(Marked this version for translation)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== Overview ==
<languages/>
__TOC__
<translate>
== Overview == <!--T:1-->


Mplayer is a media file player which can decode nearly every media file out there. It can also use countless output drivers (like vpdau or pulseaudio)
<!--T:2-->
'''mplayer''' is a media file player which can decode nearly every media file out there. It can also use countless output drivers (like vpdau or pulseaudio)
Most of the time mplayer is in the background when you use frontends like gnome-mplayer, smplayer or gmusicbrowser.
Most of the time mplayer is in the background when you use frontends like gnome-mplayer, smplayer or gmusicbrowser.
Those frontend bring their own set of parameters with them but you still can set up mplayer with it's config file (~/.mplayer/config). The vastness of those options scare most people away but with a little bit of help you can set up mplayer as you have never seen a media player before.
Those frontend bring their own set of parameters with them but you still can set up mplayer with it's config file (~/.mplayer/config). The vastness of those options scare most people away but with a little bit of help you can set up '''mplayer''' easily.


= General options =
 
<!--T:3-->
{{note|mplayer has been mostly replaced in common use by '''mpv'''}}
 
 
= General options = <!--T:4-->
Default options which i found useful
Default options which i found useful
   [default]
   [default]
   ao=pulse
   ao=pulse
   lavdopts=threads=8
   vo=vdpau
   dr=1
   dr=1
   use-filedir-conf=1
   use-filedir-conf=1
Line 20: Line 29:
   vsync=1
   vsync=1
   ac=ffmpeg,ffmp3,mad,mp3acm,mpg321,
   ac=ffmpeg,ffmp3,mad,mp3acm,mpg321,
  ao=pulse
   srate=48000
   srate=48000
   format=s16le
   format=s16le
Line 30: Line 38:
   volume=50
   volume=50
   softvol-max=50
   softvol-max=50
  vo=vdpau
 
= Per file/protocol option =
 
Another great feature of mplayer is that it can use different settings according to your media file (extension or protocol)
= Per file/protocol option = <!--T:5-->
Another great feature of mplayer is that it can use different settings according to your media file (extension or protocol) Settings in this sections overrides the default config.
 
<!--T:6-->
Here's an example for mp3 files
Here's an example for mp3 files
   [extension.mp3]
   [extension.mp3]
Line 41: Line 52:
   lavdopts=threads=4
   lavdopts=threads=4


<!--T:7-->
The notable thing is the audio filter line (af=), This line  
The notable thing is the audio filter line (af=), This line  
   af=surround=15,center=4,channels=6,sub=60:5
   af=surround=15,center=4,channels=6,sub=60:5
decodes matrix encoded surround sound like Dolby Surround. You need a 5.1 speaker set for that to work.
decodes matrix encoded surround sound like Dolby Surround. You need a 5.1 speaker set for that to work.


<!--T:8-->
Here's the section for mkv files. Using the above line here would mess up the already 5.1 encoded sound.
Here's the section for mkv files. Using the above line here would mess up the already 5.1 encoded sound.
   [extension.mkv]
   [extension.mkv]
   profile-desc="for .mkv files"
   profile-desc="for .mkv files"
   cache=81920
   cache=81920
<!--T:9-->
The following is a protocol section for DVD decoding. (Not sure what it acutally does since i don't have any DVDs :P)
  [protocol.dvd]
  profile-desc="Profil für dvd://-Streams"
  alang=en
  vo=vdpau,gl:yuv=2:force-pbo,xv,
  vc=ffh264vdpau,ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,
 
  [protocol.dvdnav]
  profile-desc="Profil für dvdnav://-Streams"
  profile=protocol.dvd
  mouse-movements=yes
</translate>
[[Category:Contents Page{{#translation:}}]]

Latest revision as of 18:13, 7 September 2021

Other languages:
English • ‎русский

Overview

mplayer is a media file player which can decode nearly every media file out there. It can also use countless output drivers (like vpdau or pulseaudio) Most of the time mplayer is in the background when you use frontends like gnome-mplayer, smplayer or gmusicbrowser. Those frontend bring their own set of parameters with them but you still can set up mplayer with it's config file (~/.mplayer/config). The vastness of those options scare most people away but with a little bit of help you can set up mplayer easily.


Note
mplayer has been mostly replaced in common use by mpv


General options

Default options which i found useful

 [default]
 ao=pulse
 vo=vdpau
 dr=1
 use-filedir-conf=1
 noquiet=1
 msglevel=all=5
 noslices=1
 double=yes
 framedrop=0
 hardframedrop=0
 vsync=1
 ac=ffmpeg,ffmp3,mad,mp3acm,mpg321,
 srate=48000
 format=s16le
 channels=6
 cache=8192
 cache-min=50
 softvol=yes
 volstep=2
 volume=50
 softvol-max=50


Per file/protocol option

Another great feature of mplayer is that it can use different settings according to your media file (extension or protocol) Settings in this sections overrides the default config.

Here's an example for mp3 files

 [extension.mp3]
 profile-desc="for .mp3 files"
 af=surround=15,center=4,channels=6,sub=60:5
 ac=ffmp3,mad,nmp3acm,mpg321,a52,
 af-adv=force=5
 lavdopts=threads=4

The notable thing is the audio filter line (af=), This line

 af=surround=15,center=4,channels=6,sub=60:5

decodes matrix encoded surround sound like Dolby Surround. You need a 5.1 speaker set for that to work.

Here's the section for mkv files. Using the above line here would mess up the already 5.1 encoded sound.

 [extension.mkv]
 profile-desc="for .mkv files"
 cache=81920

The following is a protocol section for DVD decoding. (Not sure what it acutally does since i don't have any DVDs :P)

 [protocol.dvd]
 profile-desc="Profil für dvd://-Streams"
 alang=en
 vo=vdpau,gl:yuv=2:force-pbo,xv,
 vc=ffh264vdpau,ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,
 
 [protocol.dvdnav]
 profile-desc="Profil für dvdnav://-Streams"
 profile=protocol.dvd
 mouse-movements=yes
Cookies help us deliver our services. By using our services, you agree to our use of cookies.