#
# MPlayer configuration file
#
# Configuration files are read system-wide from /usr/local/etc/mplayer.conf
# and per-user from ~/.mplayer/config, where per-user settings override
# system-wide settings, all of which are overrriden by the command line.
#
# The configuration file settings are the same as the command line
# options without the preceding '-'.
#
# See the CONFIGURATION FILES section in the man page
# for a detailed description of the syntax.
#
# Profiles should be placed at the bottom of the configuration file to ensure
# that settings wanted as defaults are not restricted to specific profiles.


##################
# video settings #
##################

# Screen size
screenw=640
screenh=480

# Specify default video driver (see -vo help for a list).
vo=fbdev

# Start in fullscreen mode by default.
fs=yes

# standard monitor size, with square pixels
monitoraspect=4:3

# video filter
vf=scale=640:-2,crop=640:480 # scale to 640, then crop video
sws=0                        # 0 - use fast bilinear scaling, 2 - bicubic scaling (better quality, but requires more CPU power)

##################
# audio settings #
##################

# Specify default audio driver (see -ao help for a list).
ao=alsa

# initial volume level
volume=20

# save volume level between sessions
save-volume=yes

# fix wrong playback speed for video files with mono audio streams
af=channels=2

##################
# other settings #
##################

# resume playback from last saved position
save-position=yes

# keep paused state (do not unpause on commands)
pausing=2

nofontconfig=yes
embeddedfonts=yes
msglevel=statusline=4
playing-msg=${NAME}
ass=yes
ass-border-color=000000AA
ass-color=FFFFFF00
ass-font-scale=1.5

# enable on-screen menu and playlists
menu=yes
menu-chroot=/mnt
menu-keepdir=yes
allow-dangerous-playlist-parsing=yes

# Drop frames to preserve audio/video sync.
framedrop = yes
mc=10

############
# Profiles #
############

# The options declared as part of profiles override global default settings,
# but only take effect when the profile is active.

#[protocol.dvdnav]
#vc=ffmpeg12,
#mouse-movements=yes
#nocache=yes

#[vo.vdpau]
#vc=ffmpeg2vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,ffodivxvdpau,
# Most video filters do not work with vdpau.
#vf-clr=yes


# OSD progress bar vertical alignment
#progbar-align=50

# You can also include other configuration files.
#include = /path/to/the/file/you/want/to/include
