summaryrefslogtreecommitdiffstats
path: root/mplayer
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2008-12-05 15:33:14 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2008-12-05 15:33:14 +0100
commitcb44894f097b1cae9945e77fff857e16fe7ddad4 (patch)
treed9374e5d83c048cb3d8f713ee9af8e8c074da089 /mplayer
parenta437865b94b51e45cde1ffe02eaa9ee63f886ba7 (diff)
downloaddotfiles-cb44894f097b1cae9945e77fff857e16fe7ddad4.tar.gz
dotfiles-cb44894f097b1cae9945e77fff857e16fe7ddad4.tar.xz
dotfiles-cb44894f097b1cae9945e77fff857e16fe7ddad4.zip
add mplayer configs
Diffstat (limited to 'mplayer')
-rw-r--r--mplayer/config48
-rw-r--r--mplayer/input.conf128
-rw-r--r--mplayer/menu.conf72
3 files changed, 248 insertions, 0 deletions
diff --git a/mplayer/config b/mplayer/config
new file mode 100644
index 0000000..45042a8
--- /dev/null
+++ b/mplayer/config
@@ -0,0 +1,48 @@
+[default]
+## Video
+vo=xv # video driver
+fixed-vo=yes # fixed video system for all files
+zoom=1 # software scaling if using f.e. vo=x11
+fs=yes # fullscreen
+double=yes # double-buffering
+
+## Audio
+ao=pulse # audio driver
+#ao=jack
+mixer-channel=Master # mixer channel
+#softvol=yes # volume filter (no hw mixer control)
+
+## Subs
+# VobSubs
+spualign=-1 # align as they want themselves
+spuaa=4 # anit-alias subs (4: best/slowest)
+
+# Softsubs
+sub-fuzziness=1 # find subtitle files (1: load all files containing movie name)
+font=/usr/share/fonts/dejavu/DejaVuCondensedSans.ttf # font
+subfont-encoding=unicode # font encoding
+unicode=yes
+utf8=yes
+
+ffactor=1 # resample the font alphamap. (1: narrow black outline)
+subpos=97 # subtitle position (0-100)
+subalign=2 # subtitle align (2: bottom)
+subfont-autoscale=2 # font size (2: proportional to movie width)
+subfont-blur=2.0 # font blur radius (default: 2)
+subfont-outline=2.0 # font outline thickness (default: 2)
+subfont-text-scale=3.8 # autoscale coefficient (default: 5)
+sub-bg-alpha=0 # background color ala closed captions
+sub-bg-color=0 # black to white
+
+# OSD
+subfont-osd-scale=3.8 # autoscale coefficient (default: 6)
+
+#mouse-movements=1
+
+## Other
+input=file=/home/alex/.mplayer/slave # fifo input for slave commands
+prefer-ipv4=yes # prever ipv4 over ipv6 (speedup)
+dvd-device=/dev/dvd # device for reading dvd://
+stop-xscreensaver=yes # disable xscreensaver (only working with vo=x11)
+heartbeat-cmd="xscreensaver-command -deactivate > /dev/null 2>&1" # using heartbeat-cmd to stop xscrenesaver
+menu=yes # enable menu
diff --git a/mplayer/input.conf b/mplayer/input.conf
new file mode 100644
index 0000000..094e314
--- /dev/null
+++ b/mplayer/input.conf
@@ -0,0 +1,128 @@
+##
+## MPlayer input control file
+##
+## You are able to redefine default keyboard/joystick/mouse/LIRC bindings, or
+## add new ones here.
+## See DOCS/tech/slave.txt for possible commands that can be bound.
+##
+## The file should be placed in the $HOME/.mplayer directory.
+##
+
+RIGHT seek +10
+LEFT seek -10
+DOWN seek -60
+UP seek +60
++ audio_delay 0.100
+- audio_delay -0.100
+[ speed_mult 0.9091 # scale playback speed
+] speed_mult 1.1
+{ speed_mult 0.5
+} speed_mult 2.0
+BS speed_set 1.0 # reset speed to normal
+q quit
+p pause
+. frame_step
+SPACE pause
+> pt_step 1
+< pt_step -1
+o osd 1
+z sub_delay -0.1
+x sub_delay +0.1
+9 volume -1
+/ volume -1
+0 volume 1
+* volume 1
+1 contrast -1
+2 contrast 1
+3 brightness -1
+4 brightness 1
+5 hue -1
+6 hue 1
+7 saturation -1
+8 saturation 1
+d frame_drop
+r sub_pos -1
+t sub_pos +1
+#? sub_step +1 # immediately display next subtitle
+#? sub_step -1 # previous
+f vo_fullscreen
+T vo_ontop
+w panscan -0.1
+e panscan +0.1
+
+i osd_show_property_text "${filename}"
+
+h tv_step_channel 1
+l tv_step_channel -1
+n tv_step_norm
+b tv_step_chanlist
+
+##
+## GUI
+##
+
+#l gui_loadfile
+#t gui_loadsubtitle
+#a gui_about
+#s gui_stop
+#p gui_playlist
+#r gui_preferences
+#c gui_skinbrowser
+
+##
+## Joystick section
+## WARNING: joystick support has to be explicitly enabled at
+## compiletime with --enable-joystick
+##
+
+#JOY_RIGHT seek 10
+#JOY_LEFT seek -10
+#JOY_UP seek 60
+#JOY_DOWN seek -60
+#JOY_BTN0 pause
+#JOY_BTN1 osd
+#JOY_BTN2 volume 1
+#JOY_BTN3 volume -1
+
+##
+## OSD Menu movement keys
+##
+## If you are using only the keyboard it is enough to define one command (like
+## "menu up"), because then that single key will display the menu, which can
+## then be navigated with the cursor keys and ENTER.
+##
+## LIRC users should bind each "menu" command to a button on their remote.
+##
+## The set_menu command directly displays the (sub)menu specified as
+## its argument. Usage should be self-explanatory (although not likely
+## to be needed), after reading input.conf.
+##
+
+MOUSE_BTN0_DBL vo_fullscreen
+MOUSE_BTN1 set_menu main
+TAB set_menu main
+^ set_menu console0
+
+O osd 3
+
+# menu down
+# menu ok
+# menu cancel
+# menu hide
+# set_menu general_pref
+
+HOME dvdnav 1 # up
+END dvdnav 2 # down
+DEL dvdnav 3 # left
+PGDWN dvdnav 4 # right
+PGUP dvdnav 5 # menu
+INS dvdnav 6 # select
+
+A switch_audio
+S sub_select
+
+PGUP menu up
+PGDWN menu down
+HOME menu cancel
+END menu ok
+ESC menu hide
diff --git a/mplayer/menu.conf b/mplayer/menu.conf
new file mode 100644
index 0000000..a15e69c
--- /dev/null
+++ b/mplayer/menu.conf
@@ -0,0 +1,72 @@
+<filesel name="open_file"/>
+<filesel name="open_list" file-action="loadlist '%p'"
+ title="Open a playlist: %p" />
+
+<pt name="jump_to"/>
+
+<!-- console name="console0" height="80" vspace="0">Welcome to MPlayer</console -->
+
+<pref name="general_pref" title="General">
+ <e property="osdlevel" name="OSD level"/>
+ <e property="speed" name="Speed"/>
+</pref>
+
+<pref name="demuxer_pref" title="Demuxer">
+</pref>
+
+<pref name="osd_sub_pref" title="Subtitles">
+ <e property="sub" name="Subtitles"/>
+ <e property="sub_visibility" name="Visibility"/>
+ <e property="sub_forced_only" name="Forced sub only"/>
+ <e property="sub_alignment" name="Alignment"/>
+ <e property="sub_pos" name="Position"/>
+ <e property="sub_delay" name="Delay"/>
+</pref>
+
+<pref name="audio_pref" title="Audio">
+ <e property="volume" name="Volume"/>
+ <e property="mute" name="Mute"/>
+ <e property="audio_delay" name="Delay"/>
+</pref>
+
+<pref name="colors_pref" title="Colors">
+ <e property="gamma" name="Gamma"/>
+ <e property="brightness" name="Brightness"/>
+ <e property="contrast" name="Contrast"/>
+ <e property="saturation" name="Saturation"/>
+ <e property="hue" name="Hue"/>
+</pref>
+
+<pref name="video_pref" title="Video">
+ <e property="fullscreen" name="Fullscreen"/>
+ <e property="panscan" name="Panscan"/>
+ <menu menu="colors_pref" name="Colors ..."/>
+ <e property="ontop" name="Always on top"/>
+ <e property="rootwin" name="Root window"/>
+ <e property="framedropping" name="Frame dropping"/>
+ <e property="vsync" name="VSync"/>
+ </pref>
+
+<cmdlist name="pref_main" title="Preferences" ptr="<>" >
+ <e name="General ..." ok="set_menu general_pref"/>
+ <e name="Audio ..." ok="set_menu audio_pref"/>
+ <e name="Video ..." ok="set_menu video_pref"/>
+ <e name="Subtitles ..." ok="set_menu osd_sub_pref"/>
+ <e name="Back" ok="menu cancel"/>
+</cmdlist>
+
+<dvbsel title="Channellist" name="dvbsel" />
+
+<cmdlist name="main" title="MPlayer OSD menu" ptr="<>" >
+ <e name="Pause" ok="pause"/>
+ <e name="Prev/Next" ok="pt_step 1" cancel="pt_step -1"/>
+ <e name="Jump to ..." ok="set_menu jump_to"/>
+ <e name="Open ..." ok="set_menu open_file"/>
+ <e name="Open playlist ..." ok="set_menu open_list"/>
+<!-- <e name="DVB" ok="set_menu dvbsel"/>-->
+ <e name="Preferences" ok="set_menu pref_main"/>
+<!-- <e name="Console" ok="set_menu console0"/>-->
+ <e name="Quit" ok="quit"/>
+</cmdlist>
+
+