View Single Post
Old 2006-01-24, 18:22   Link #2
anime_layer
Senior Member
*Graphic Designer
 
 
Join Date: Feb 2003
Location: Zürich, Switzerland
Send a message via ICQ to anime_layer
5. Config

Configuration is a pretty personal thing that you can tweak as you like.

Add, edit or remove the lines in the config file, found in "~/.mplayer/config". If the config file doesn't exist, you'll have to create it first:
Code:
cd ~
mkdir .mplayer
nano config
Subtitles:
Without tweaking subtitles just don't look good in MPlayer but you can get them to look quite pretty.
First, you gonna need a suitable ttf font. You can find a set of working ones in /usr/X11R6/lib/X11/fonts/TFF (with an open Finder window hit Command - Shift - G and enter the path above to jump to the directory).
I chose Luxi Sans Bold (luxisb.ttf) and added some subtitle settings to make them look better:
Code:
ffactor=3
subfont-autoscale=2
subfont-text-scale=4
subfont-blur=1.1
subfont-outline=3
subalign=2
subfont-encoding=unicode
subpos=95
font=/usr/X11R6/lib/X11/fonts/TTF/luxisb.ttf
To automatically display subtitles, add following line:
Code:
slang = en
This worked good for me but there are cases when this might not work. You could also try this:
Code:
sid = 0
Video output
You can choose between Quartz (quartz) and CoreVideo (macosx) output drivers on OSX. CoreVideo is new and hiper technology in Tiger but I didn't notice any significant speed difference. The CoreVideo driver is still experimental and doesn't support video filters so I suggest using the Quartz driver.
Code:
vo = quartz
Filters
If you want to adjust contrast, brightness etc when playing, you have to add the eq2 filter:
Code:
vf = eq2
If you want postprocessing, use spp:
Code:
 vf = spp=3
3 is the quality level. You can set it from 0 (weakest) to 6 (strongest).

Note: The postprocessing filter produces strange disortions on my mac. You might have more luck...

You can also set both filters in a chain:
Code:
vf = spp=3,eq2
Misc
If you want MPlayer to go fullscreen when opening a movie:
Code:
fs = yes
On slow macs framedropping works wonders:
Code:
framedrop = yes
Cache is good for reading from CDs or streaming (8MB is a bit much for streaming, though ^^):
Code:
cache = 8192
__________________
MPlayer OSX Extended (en) | nimmermehr (de) | sttz (de) | last.fm
Life is a game whose first rule is: This is not a game, this is dead serious.

Last edited by anime_layer; 2006-02-11 at 16:49.
anime_layer is offline