Page 1 of 6 123 ... LastLast
Results 1 to 10 of 60

Thread: The ultimate mplayer config file!!!!!

  1. #1
    Join Date
    Jul 2005
    Location
    Postdam, NY
    Beans
    119

    The ultimate mplayer config file!!!!!

    Mplayer is da bomb. But with a good config file it's much better. Take a look at mine and try it! Keep in mind, if you don't use mplayer from the terminal you don't know what you're emissing. That and this config is for the terminal version.

    To play a movie from the terminal just
    $ mplayer filename

    Go to a terminal
    (next step is only needed if you have never run mplayer before)
    $ mkdir .mplayer
    $ cd .mplayer
    $gedit config
    Paste in my code and save

    Anyone have their own?

     ~/.mplayer/config

    Code:
    #General setup
    
    ao="alsa"	#audio out
    mixer-channel="Master"
    srate=48000
    
    really-quiet="1" #Very very little console output
    
    vo="xv"	#video out
    zoom="1" #Allow sofware scaling if I use x11 for vo
    aid="1"	#audio channel
    sid="0"	#subtitle set
    
    #Display
    
    double="yes"	#double buffering(recommended for subtitles)
    monitoraspect="16:9"	#I'm on a widescreen laptop so keeps 4:3 content from stretching
    framedrop="1"	# For slow machines
    hardframedrop="0"  #Make sure hard frame drop is off but can turn on easily now
    
    #subtitle code
    #Truetype fonts rock! (sudo apt-get msttcorefonts)
    font=/usr/share/fonts/truetype/msttcorefonts/impact.ttf
    
    ffactor="10" #black outline
    sub-bg-alpha="0" #background color ala closed captions
    sub-bg-color="0" #black to white
    subfont-text-scale="3.7"	#truetype font scaling
    subfont-blur="1" #Slight blur
    
    #This sets the postprocessing into overdrive using all possible spare cpu cycles to make the movie look better
    autoq=100
    vf=pp=de,hqdn3d
    
    
    subpos="90"	#By default subtitles are too low
    subalign="2"
    
    #always keep mplayer on top
    ontop="1"
    
    #turns off xscreen saver...maybe
    stop-xscreensaver="yes"
    
    #Some extra stuff I am currently not using....
    #Fix A/V sync problems on files with bad MP3 VBR audio
    #mc="1"
    #autosync="10"
    #delay="0.5"
    
    #Updated 11/14/2005
    In my opinion, if you watch a lot of dubbed/subtitled movies, nothing beats mplayer
    Last edited by pizzach; November 14th, 2005 at 02:36 PM. Reason: Updated config file
    "So switching to if-then-else blocks might be good Computer Science theory, but using goto's is good Engineering. Since the Linux kernel is one designed to be used, rather than to demonstrate theory, sound engineering principles take priority."

  2. #2
    Join Date
    Dec 2004
    Location
    Finland
    Beans
    398

    Re: The ultimate mplayer config file!!!!!

    The best part about MPlayer is the superior subtitle rendering. And that needs to be configured.

    Here's my ~/.mplayer/config
    Code:
    # * Experimental stuff
    
    #======
    # Video
    #======
    
    # Set video driver.
    vo=xv
    
    # Use double-buffering. (Recommended for xv with SUB/OSD usage)
    double=yes
    
    #======
    # Audio
    #======
    
    # Set audio driver.
    ao=alsa
    
    # Set mixer channel
    mixer-channel=Master
    
    # Ajust volume differences. *
    a52drc=1
    
    # Fix A/V sync problems. *
    mc=0.2
    autosync=30
    
    
    #==========
    # Subtitles
    #==========
    
    # VobSubs
    #========
    
    # Align subs. (-1: as they want to align themselves)
    spualign=-1
    
    # Anti-alias subs. (4: best and slowest)
    spuaa=4
    
    # Set language.
    slang=fi,fin,en,eng
    
    # Text-based subtitles
    #=====================
    
    # Find subtitle files. (1: load all subs containing movie name)
    sub-fuzziness=1
    
    # Set font.
    font=/home/osmo/.fonts/microsoft/vista/Calibri.ttf
    
    # Set font encoding.
    subfont-encoding=unicode
    
    # Set subtitle file encoding.
    unicode=yes
    utf8=yes
    
    # Resample the font alphamap. (1: narrow black outline)
    ffactor=1
    
    # Set subtitle position. (100: as low as possible)
    subpos=100
    
    # Set subtitle alignment at its position. (2: bottom)
    subalign=2
    
    # Set font size. (2: proportional to movie width)
    subfont-autoscale=2
    
    # Set font blur radius. (default: 2)
    subfont-blur=2.0
    
    # Set font outline thickness. (default: 2)
    subfont-outline=2.0
    
    # Set autoscale coefficient. (default: 5)
    subfont-text-scale=4.4
    
    # OSD
    #====
    
    # Set autoscale coefficient. (default: 6)
    subfont-osd-scale=4.4
    
    #===========
    # Appearance
    #===========
    
    # Disable screensaver.
    stop-xscreensaver=yes
    
    # Position window. (50%:50%: center of screen)
    geometry=50%:50%
    
    # Skin
    skin=Glider
    I also use two python scripts, one for playing a movie with headphones and one for playing with 5.1 speakers. Those scripts handle the routing of the audio channels. Rather difficult to set up but very easy to use afterwards.

    Edit 20060305:
    Updated config file.
    Last edited by ow50; March 5th, 2006 at 01:55 AM.

  3. #3
    Join Date
    Jun 2005
    Location
    Albuquerque, New Mexico
    Beans
    272
    Distro
    Ubuntu Development Release

    Re: The ultimate mplayer config file!!!!!

    I also find that mplayer's keyboard navigation rocks!

    Mplayer Keyboard Navigation:

    Code:
        * <- and -> seeks backward/forward 10 seconds 
    
        * up and down seeks backward/forward 1 minute 
    
        * pgup and pgdown seeks backward/forward 10 minutes 
    
        * < and > backward and forward in playlist 
    
        * p or spacebar pause / unpause 
    
        * q or ESC stop playing and quit 
    
        * / and * or 9 and 0 to decrease/increase volume 
    
        * m mutes sound 
    
        * # cycles through available audio tracks 
    
        * f toggles fullscreen (see also -fs) 
    
        * T toggles stay-on-top (see also -ontop) 
    
        * b and j toggles through available subtitles 
    
    [edit]
    General Playback Options
    
    Once again, these are only a few of the many options available that most people might be looking for. See the MAN page for more details. Almost all of these descriptions are taken straight from the man.
    
        * -quiet to display less console output 
    
        * -v or -verbose to display more console output 
    
        * -loop <number> loops movie playback <number> times. 0 means forever. 
    
        * -playlist <filename> plays a filelist. May be required for some streaming video. 
    
        * -cache <kBytes> sets "how much memory (in kBytes) to use when precaching a file or URL. Especially useful on slow media." 
    
        * -cache-min <percentage> - "Playback will start when the cache has been filled up to <percentage> of the total." 
    
        * -channels <number> changes the number of playback channels. See the man for a lengthier explanation on how this one works. 
    
        *
              o 2 - stereo (default)
              o 4 - surround
              o 6 - full 5.1 
    
        * -forceidx - "Force index rebuilding. Useful for files with broken index (A/V desync, etc). This will enable seeking in files where seeking was not possible." 
    
        * -srate <Hz> - "Selects the output sample rate to be used (of course sound cards have limits on this)." 
    
        * -ss <time> - "Seek to given time position." In other words, starts playback at the specified time index. 
    
    mplayer movie.avi -ss 56
    
    Seeks to 56 seconds: 
     
    mplayer movie.avi -ss 01:10:00
    
    seeks to 1 hour 10 minutes:
    GC

  4. #4
    Join Date
    Jul 2005
    Location
    Postdam, NY
    Beans
    119

    Re: The ultimate mplayer config file!!!!!

    Hehe. I actually started this thread hoping to be able to read other people's config files and get ideas. I don't thing there are any other's on the forum and example documentation is hard to find. Though one more so far is still more than I expected for a "newbie os."

    That and maybe some other ubuntu users would get brave to try mplayer for what it is really worth. You don't use mplayer like totem or vlc respectively. Or like any windows/macinosh movie player respectively.

    I didn't have so much luck with these:
    a52drc=1
    mc=0x
    I've found in general mplayer's general settings roughly shoot right. Or I can use "+" or "-" to align the audio. It's too bad audio is so complicated.

    PLEASE. IF YOU USE MPLAYER POST YOUR CONFIG FILE. Really. Right now I'm once again wishing firefox didn't impliment backspace as back life stupid firefoix does.

    I'm drunk right now. So don't shoot me for my post please. windows r
    "So switching to if-then-else blocks might be good Computer Science theory, but using goto's is good Engineering. Since the Linux kernel is one designed to be used, rather than to demonstrate theory, sound engineering principles take priority."

  5. #5
    Join Date
    Jul 2005
    Location
    Postdam, NY
    Beans
    119

    Re: The ultimate mplayer config file!!!!!

    Kinda of sad, but after playing for a while. I find the best way to way to realign audio is by "-" or "+" when the movie is playing. I haven't found a movie where after realigning it about 200ms-300ms in either direction. Other methods seem to only kind of realign the audio. It's better at some times and not so better at others. I'm sure I'll figure it out eventually.
    "So switching to if-then-else blocks might be good Computer Science theory, but using goto's is good Engineering. Since the Linux kernel is one designed to be used, rather than to demonstrate theory, sound engineering principles take priority."

  6. #6
    Join Date
    Nov 2005
    Beans
    11

    Re: The ultimate mplayer config file!!!!!

    Hi,

    how can I can say that e.g. the streams in a special folder saved instead in a tmp folder.

    I did this changes in a config-file on my first ubuntu installation but I cant remember where.

    sherz

  7. #7
    Join Date
    Nov 2005
    Beans
    11

    Re: The ultimate mplayer config file!!!!!

    Quote Originally Posted by sherz
    Hi,

    how can I can say that e.g. the streams in a special folder saved instead in a tmp folder.

    I did this changes in a config-file on my first ubuntu installation but I cant remember where.

    sherz

    No Ideas ?

  8. #8
    Join Date
    May 2005
    Location
    Stuttgart
    Beans
    54

    Re: The ultimate mplayer config file!!!!!

    If your using the MPlayer Plug-In do the following steps.

    1. Fire up a Terminal and type (or paste):
    Code:
    sudo gedit /etc/mplayerplug-in.conf
    2. Add the following lines at the end:
    Code:
    download=1
    dload-dir=$HOME/downloads/trailer
    keep-download=1
    Replace $HOME/downloads/trailer with a folder of your choice. For the whole thing to work, this folder needs to exists. So go ahead and create it first.

  9. #9
    Join Date
    Nov 2005
    Beans
    11

    Re: The ultimate mplayer config file!!!!!

    Quote Originally Posted by Caboto
    If your using the MPlayer Plug-In do the following steps.

    1. Fire up a Terminal and type (or paste):
    Code:
    sudo gedit /etc/mplayerplug-in.conf
    2. Add the following lines at the end:
    Code:
    download=1
    dload-dir=$HOME/downloads/trailer
    keep-download=1
    Replace $HOME/downloads/trailer with a folder of your choice. For the whole thing to work, this folder needs to exists. So go ahead and create it first.
    Yeah thanks exactly !!

    Stephan

  10. #10
    Join Date
    Dec 2005
    Location
    Kyšice, Czech Republic
    Beans
    272
    Distro
    Ubuntu 6.06

    Re: The ultimate mplayer config file!!!!!

    would ther ebe any way to make mplayer load all subtitle files that are in the same folder as the movie itself?

    from command line, it is possible to use
    Code:
    mplayer movie_name.mkv -subfile "*.srt"
    but when I try to add something like subfile=*.srt to .mplayer/config, it gives this then:
    Code:
    Playing Elephant.avi.
    File not found: '~/*.srt'
    Failed to open ~/*.srt
    Cannot open subtitle stream: ~/*.srt
    
    
    Exiting... (End of file)
    any ideas?

Page 1 of 6 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •