2012-10-11 00:04:08 +00:00
|
|
|
# mpv input control file
|
2012-01-17 01:49:27 +00:00
|
|
|
#
|
|
|
|
# You are able to redefine default keyboard/joystick/mouse/LIRC bindings, or
|
|
|
|
# add new ones here.
|
2012-10-13 19:10:20 +00:00
|
|
|
# See DOCS/man/en/input.rst for possible commands that can be bound.
|
options: drop --opt:subopt option names
For all suboptions, "flat" options were available by separating the
parent option and the sub option with ":", e.g. "--rawvideo:w=123". Drop
this syntax and use "-" as separator. This means even suboptions are
available as normal options now, e.g. "--rawvideo-w=123". The old syntax
doesn't work anymore.
Note that this is completely separate from actual suboptions. For
example, "-rawvideo w=123:h=123" still works. (Not that this syntax is
worth supporting, but it's needed anyway, for for other things like vf
and vo suboptions.)
As a consequence of this change, we also have to add new "no-" prefixed
options for flag suboptions, so that "--no-input-default-bindings"
works. ("--input-no-default-bindings" also works as a consequence of
allowing "-input no-default-bindings" - they are handled by the same
underlying option.)
For --input, always use the full syntax in the manpage. There exist
suboptions other than --input (like --tv, --rawvideo, etc.), but since
they might be handled differently in the future, don't touch these yet.
M_OPT_PREFIXED becomes the default, so remove it. As a minor unrelated
cleanup, get rid of M_OPT_MERGE too and use the OPT_SUBSTRUCT() macro in
some places.
Unrelated: remove the duplicated --tv:buffersize option, fix a typo in
changes.rst.
2013-02-21 21:10:21 +00:00
|
|
|
# Also see mpv --input-cmdlist for other possible options.
|
2012-10-11 00:04:08 +00:00
|
|
|
# The file should be placed in the $HOME/.mpv directory.
|
2012-01-17 01:49:27 +00:00
|
|
|
#
|
options: drop --opt:subopt option names
For all suboptions, "flat" options were available by separating the
parent option and the sub option with ":", e.g. "--rawvideo:w=123". Drop
this syntax and use "-" as separator. This means even suboptions are
available as normal options now, e.g. "--rawvideo-w=123". The old syntax
doesn't work anymore.
Note that this is completely separate from actual suboptions. For
example, "-rawvideo w=123:h=123" still works. (Not that this syntax is
worth supporting, but it's needed anyway, for for other things like vf
and vo suboptions.)
As a consequence of this change, we also have to add new "no-" prefixed
options for flag suboptions, so that "--no-input-default-bindings"
works. ("--input-no-default-bindings" also works as a consequence of
allowing "-input no-default-bindings" - they are handled by the same
underlying option.)
For --input, always use the full syntax in the manpage. There exist
suboptions other than --input (like --tv, --rawvideo, etc.), but since
they might be handled differently in the future, don't touch these yet.
M_OPT_PREFIXED becomes the default, so remove it. As a minor unrelated
cleanup, get rid of M_OPT_MERGE too and use the OPT_SUBSTRUCT() macro in
some places.
Unrelated: remove the duplicated --tv:buffersize option, fix a typo in
changes.rst.
2013-02-21 21:10:21 +00:00
|
|
|
# mpv --input-test --pause dummy.mkv can be used to test which commands keys are
|
2012-10-13 19:10:20 +00:00
|
|
|
# bound to.
|
|
|
|
#
|
2013-06-02 22:13:09 +00:00
|
|
|
# If you wish to unbind a key, bind it to the 'ignore' command:
|
|
|
|
# KEY ignore
|
2012-01-17 01:49:27 +00:00
|
|
|
#
|
|
|
|
# Note that merely removing default key bindings from this file won't remove
|
2012-10-11 00:04:08 +00:00
|
|
|
# the default bindings mpv was compiled with, unless
|
options: drop --opt:subopt option names
For all suboptions, "flat" options were available by separating the
parent option and the sub option with ":", e.g. "--rawvideo:w=123". Drop
this syntax and use "-" as separator. This means even suboptions are
available as normal options now, e.g. "--rawvideo-w=123". The old syntax
doesn't work anymore.
Note that this is completely separate from actual suboptions. For
example, "-rawvideo w=123:h=123" still works. (Not that this syntax is
worth supporting, but it's needed anyway, for for other things like vf
and vo suboptions.)
As a consequence of this change, we also have to add new "no-" prefixed
options for flag suboptions, so that "--no-input-default-bindings"
works. ("--input-no-default-bindings" also works as a consequence of
allowing "-input no-default-bindings" - they are handled by the same
underlying option.)
For --input, always use the full syntax in the manpage. There exist
suboptions other than --input (like --tv, --rawvideo, etc.), but since
they might be handled differently in the future, don't touch these yet.
M_OPT_PREFIXED becomes the default, so remove it. As a minor unrelated
cleanup, get rid of M_OPT_MERGE too and use the OPT_SUBSTRUCT() macro in
some places.
Unrelated: remove the duplicated --tv:buffersize option, fix a typo in
changes.rst.
2013-02-21 21:10:21 +00:00
|
|
|
# --no-input-default-bindings
|
2012-01-17 01:49:27 +00:00
|
|
|
# is specified.
|
|
|
|
#
|
|
|
|
# Lines starting with # are comments. Use SHARP to assign the # key.
|
|
|
|
#
|
2012-09-22 12:54:57 +00:00
|
|
|
# Strings need to be quoted and escaped:
|
2013-06-02 22:13:09 +00:00
|
|
|
# KEY show_text "This is a single backslash: \\ and a quote: \" !"
|
2012-01-17 01:49:27 +00:00
|
|
|
#
|
|
|
|
# You can use modifier-key combinations like Shift+Left or Ctrl+Alt+x with
|
|
|
|
# modifiers Shift, Ctrl, Alt and Meta, but note that currently reading
|
2012-04-06 21:14:21 +00:00
|
|
|
# key combinations is only supported through the video windows of certain
|
2012-01-17 01:49:27 +00:00
|
|
|
# output drivers (not in output windows of other drivers or in a terminal).
|
2002-03-01 21:55:26 +00:00
|
|
|
|
2013-09-01 15:06:11 +00:00
|
|
|
# All lines in this file are commented. If you want to remap a key, copy the
|
|
|
|
# file to ~/.mpv/input.conf, and uncomment and edit the binding you want to
|
|
|
|
# change.
|
|
|
|
|
2013-11-06 19:27:19 +00:00
|
|
|
# Developer note:
|
|
|
|
# etc/input.conf from the mpv source tree is baked into the mpv binary, with
|
2013-11-22 12:00:26 +00:00
|
|
|
# all entries magically uncommented and parsed on initialization. Thus, this
|
2013-11-06 19:27:19 +00:00
|
|
|
# file defines the mpv default key bindings. If this file is read as normal
|
|
|
|
# config file, all lines starting with '#' are treated as comments (and this
|
|
|
|
# file, if unedited, doesn't define any bindings).
|
|
|
|
# Lines that have a space after the '#' are always ignored as real comments.
|
2013-09-01 15:06:11 +00:00
|
|
|
|
|
|
|
#MOUSE_BTN0 ignore # don't do anything
|
|
|
|
#MOUSE_BTN0_DBL cycle fullscreen # toggle fullscreen on/off
|
|
|
|
#MOUSE_BTN2 cycle pause # toggle pause on/off
|
|
|
|
#MOUSE_BTN3 seek 10
|
|
|
|
#MOUSE_BTN4 seek -10
|
|
|
|
#MOUSE_BTN5 add volume 1
|
|
|
|
#MOUSE_BTN6 add volume -1
|
2012-01-17 01:49:27 +00:00
|
|
|
|
2013-07-25 16:08:57 +00:00
|
|
|
# Mouse wheels, touchpad or other input devices that have axes
|
2013-08-07 20:20:10 +00:00
|
|
|
# if the input devices supports precise scrolling it will also scale the
|
|
|
|
# numeric value accordingly
|
2013-09-01 15:06:11 +00:00
|
|
|
#AXIS_UP seek 10
|
|
|
|
#AXIS_DOWN seek -10
|
|
|
|
#AXIS_LEFT seek 5
|
|
|
|
#AXIS_RIGHT seek -5
|
2013-07-25 16:08:57 +00:00
|
|
|
|
2013-09-01 15:06:11 +00:00
|
|
|
## Seek units are in seconds, but note that these are limited by keyframes
|
|
|
|
#RIGHT seek 10
|
|
|
|
#LEFT seek -10
|
|
|
|
#UP seek 60
|
|
|
|
#DOWN seek -60
|
2010-12-19 11:34:06 +00:00
|
|
|
# Do smaller, always exact (non-keyframe-limited), seeks with shift.
|
2012-09-25 01:25:44 +00:00
|
|
|
# Don't show them on the OSD (no-osd).
|
2013-09-01 15:06:11 +00:00
|
|
|
#Shift+RIGHT no-osd seek 1 - exact
|
|
|
|
#Shift+LEFT no-osd seek -1 - exact
|
|
|
|
#Shift+UP no-osd seek 5 - exact
|
|
|
|
#Shift+DOWN no-osd seek -5 - exact
|
|
|
|
#PGUP seek 600
|
|
|
|
#PGDWN seek -600
|
|
|
|
#+ add audio-delay 0.100 # this changes audio/video sync
|
|
|
|
#- add audio-delay -0.100
|
2013-10-31 22:25:55 +00:00
|
|
|
#[ multiply speed 0.9091 # scale playback speed
|
|
|
|
#] multiply speed 1.1
|
|
|
|
#{ multiply speed 0.5
|
|
|
|
#} multiply speed 2.0
|
2013-09-01 15:06:11 +00:00
|
|
|
#BS set speed 1.0 # reset speed to normal
|
|
|
|
#q quit
|
|
|
|
#Q quit_watch_later
|
|
|
|
#q {encode} quit
|
|
|
|
#ESC quit
|
|
|
|
#p cycle pause # toggle pause/playback mode
|
|
|
|
#. frame_step # advance one frame and pause
|
|
|
|
#, frame_back_step # go back by one frame and pause
|
|
|
|
#SPACE cycle pause
|
|
|
|
#> playlist_next # skip to next file
|
|
|
|
#ENTER playlist_next force # skip to next file or quit
|
|
|
|
#< playlist_prev # skip to previous file
|
|
|
|
#o osd # cycle through OSD mode
|
|
|
|
#I show_text "${filename}" # display filename in osd
|
|
|
|
#P show_progress
|
|
|
|
#z add sub-delay -0.1 # subtract 100 ms delay from subs
|
|
|
|
#x add sub-delay +0.1 # add
|
|
|
|
#9 add volume -1
|
|
|
|
#/ add volume -1
|
|
|
|
#0 add volume 1
|
|
|
|
#* add volume 1
|
|
|
|
#( add balance -0.1 # adjust audio balance in favor of left
|
|
|
|
#) add balance 0.1 # right
|
|
|
|
#m cycle mute
|
|
|
|
#1 add contrast -1
|
|
|
|
#2 add contrast 1
|
|
|
|
#3 add brightness -1
|
|
|
|
#4 add brightness 1
|
|
|
|
#5 add gamma -1
|
|
|
|
#6 add gamma 1
|
|
|
|
#7 add saturation -1
|
|
|
|
#8 add saturation 1
|
|
|
|
#d cycle framedrop # cycle through framedrop modes
|
2012-01-17 01:49:27 +00:00
|
|
|
# toggle deinterlacer; requires either vdpau output, -vf yadif or kerndeint
|
2013-09-01 15:06:11 +00:00
|
|
|
#D cycle deinterlace
|
|
|
|
#c cycle colormatrix
|
2012-01-17 01:49:27 +00:00
|
|
|
# Next 3 currently only work with --no-ass
|
2013-09-01 15:06:11 +00:00
|
|
|
#r add sub-pos -1 # move subtitles up
|
|
|
|
#t add sub-pos +1 # down
|
|
|
|
#v cycle sub-visibility
|
2012-01-17 01:49:27 +00:00
|
|
|
# stretch SSA/ASS subtitles with anamorphic videos to match historical
|
2013-09-01 15:06:11 +00:00
|
|
|
#V cycle ass-vsfilter-aspect-compat
|
|
|
|
#j cycle sub # cycle through subtitles
|
|
|
|
#J cycle sub down # ...backwards
|
|
|
|
#F cycle sub-forced-only
|
|
|
|
#SHARP cycle audio # switch audio streams
|
|
|
|
#_ cycle video
|
|
|
|
#TAB cycle program
|
|
|
|
#T cycle ontop # toggle video window ontop of other windows
|
|
|
|
#f cycle fullscreen # toggle fullscreen
|
|
|
|
#s screenshot # take a screenshot
|
|
|
|
#S screenshot video # ...without subtitles
|
|
|
|
#Alt+s screenshot - each-frame # automatically screenshot every frame
|
|
|
|
#w add panscan -0.1 # zoom out with -panscan 0 -fs
|
|
|
|
#e add panscan +0.1 # in
|
|
|
|
#POWER quit
|
|
|
|
#MENU cycle osd
|
|
|
|
#PLAY cycle pause
|
|
|
|
#PAUSE cycle pause
|
|
|
|
#PLAYPAUSE cycle pause
|
|
|
|
#STOP quit
|
|
|
|
#FORWARD seek 60
|
|
|
|
#REWIND seek -60
|
|
|
|
#NEXT playlist_next
|
|
|
|
#PREV playlist_prev
|
|
|
|
#VOLUME_UP add volume 1
|
|
|
|
#VOLUME_DOWN add volume -1
|
|
|
|
#MUTE cycle mute
|
|
|
|
#CLOSE_WIN quit
|
|
|
|
#CLOSE_WIN {encode} quit
|
|
|
|
#! add chapter -1 # skip to previous chapter
|
|
|
|
#@ add chapter 1 # next
|
|
|
|
#E cycle edition # next edition
|
|
|
|
#A cycle angle
|
|
|
|
#U stop
|
2002-03-01 21:55:26 +00:00
|
|
|
|
2013-09-01 15:06:11 +00:00
|
|
|
#l cycle quvi-format 1
|
|
|
|
#L cycle quvi-format -1
|
2013-06-27 16:21:07 +00:00
|
|
|
|
2012-01-17 01:49:27 +00:00
|
|
|
# TV
|
2013-09-01 15:06:11 +00:00
|
|
|
#h tv_step_channel 1
|
|
|
|
#k tv_step_channel -1
|
|
|
|
#n tv_step_norm
|
|
|
|
#u tv_step_chanlist
|
2002-03-01 21:55:26 +00:00
|
|
|
|
2013-06-02 22:52:40 +00:00
|
|
|
# Apple Remote section
|
2013-09-01 15:06:11 +00:00
|
|
|
#AR_PLAY cycle pause
|
|
|
|
#AR_PLAY_HOLD quit
|
|
|
|
#AR_CENTER cycle pause
|
|
|
|
#AR_CENTER_HOLD quit
|
|
|
|
#AR_NEXT seek 10
|
|
|
|
#AR_NEXT_HOLD seek 120
|
|
|
|
#AR_PREV seek -10
|
|
|
|
#AR_PREV_HOLD seek -120
|
|
|
|
#AR_MENU show_progress
|
|
|
|
#AR_MENU_HOLD cycle mute
|
|
|
|
#AR_VUP add volume 1
|
|
|
|
#AR_VUP_HOLD add chapter 1
|
|
|
|
#AR_VDOWN add volume -1
|
|
|
|
#AR_VDOWN_HOLD add chapter -1
|
2013-06-02 22:52:40 +00:00
|
|
|
|
2012-01-17 01:49:27 +00:00
|
|
|
# Joystick section
|
|
|
|
# WARNING: joystick support has to be explicitly enabled at
|
|
|
|
# compiletime with --enable-joystick
|
|
|
|
#
|
2006-11-30 08:47:29 +00:00
|
|
|
|
2013-09-01 15:06:11 +00:00
|
|
|
#JOY_AXIS0_PLUS seek 10
|
|
|
|
#JOY_AXIS0_MINUS seek -10
|
|
|
|
#JOY_AXIS1_MINUS seek 60
|
|
|
|
#JOY_AXIS1_PLUS seek -60
|
|
|
|
#JOY_BTN0 cycle pause
|
|
|
|
#JOY_BTN1 cycle osd
|
|
|
|
#JOY_BTN2 add volume 1
|
|
|
|
#JOY_BTN3 add volume -1
|
2006-11-30 08:47:29 +00:00
|
|
|
|
Add prelimimary (basic, possibly broken) dvdnav support
This readds a more or less completely new dvdnav implementation, though
it's based on the code from before commit 41fbcee. Note that this is
rather basic, and might be broken or not quite usable in many cases.
Most importantly, navigation highlights are not correctly implemented.
This would require changes in the FFmpeg dvdsub decoder (to apply a
different internal CLUT), so supporting it is not really possible right
now. And in fact, I don't think I ever want to support it, because it's
a very small gain for a lot of work. Instead, mpv will display fake
highlights, which are an approximate bounding box around the real
highlights.
Some things like mouse input or switching audio/subtitles stream using
the dvdnav VM are not supported.
Might be quite fragile on transitions: if dvdnav initiates a transition,
and doesn't give us enough mpeg data to initialize video playback, the
player will just quit.
This is added only because some users seem to want it. I don't intend to
make mpv a good DVD player, so the very basic minimum will have to do.
How about you just convert your DVD to proper video files?
2013-12-12 00:44:28 +00:00
|
|
|
# For dvdnav://
|
|
|
|
|
|
|
|
# dvdnav controls during playback
|
|
|
|
#ENTER {dvdnav} dvdnav menu # DVDNav MENU
|
|
|
|
# BS {dvdnav} dvdnav prev # DVDNav PREVIOUS menu (in the order chapter->title->root)
|
|
|
|
# dvdnav controls when showing menu (additionally to the controls above)
|
|
|
|
#UP {dvdnav-menu} dvdnav up # DVDNav UP
|
|
|
|
#DOWN {dvdnav-menu} dvdnav down # DVDNav DOWN
|
|
|
|
#LEFT {dvdnav-menu} dvdnav left # DVDNav LEFT
|
|
|
|
#RIGHT {dvdnav-menu} dvdnav right # DVDNav RIGHT
|
|
|
|
#ENTER {dvdnav-menu} dvdnav select # DVDNav SELECT (ok)
|
2013-12-12 23:19:17 +00:00
|
|
|
#MOUSE_BTN0 {dvdnav-menu} dvdnav mouse
|
|
|
|
#MOUSE_MOVE {dvdnav-menu} dvdnav mouse_move
|
Add prelimimary (basic, possibly broken) dvdnav support
This readds a more or less completely new dvdnav implementation, though
it's based on the code from before commit 41fbcee. Note that this is
rather basic, and might be broken or not quite usable in many cases.
Most importantly, navigation highlights are not correctly implemented.
This would require changes in the FFmpeg dvdsub decoder (to apply a
different internal CLUT), so supporting it is not really possible right
now. And in fact, I don't think I ever want to support it, because it's
a very small gain for a lot of work. Instead, mpv will display fake
highlights, which are an approximate bounding box around the real
highlights.
Some things like mouse input or switching audio/subtitles stream using
the dvdnav VM are not supported.
Might be quite fragile on transitions: if dvdnav initiates a transition,
and doesn't give us enough mpeg data to initialize video playback, the
player will just quit.
This is added only because some users seem to want it. I don't intend to
make mpv a good DVD player, so the very basic minimum will have to do.
How about you just convert your DVD to proper video files?
2013-12-12 00:44:28 +00:00
|
|
|
|
2012-01-17 01:49:27 +00:00
|
|
|
#
|
|
|
|
# Not assigned by default
|
|
|
|
# (not an exhaustive list of unbound commands)
|
|
|
|
#
|
2008-05-18 12:19:51 +00:00
|
|
|
|
2013-09-01 15:06:11 +00:00
|
|
|
# ? add sub-scale +0.1 # increase subtitle font size
|
|
|
|
# ? add sub-scale -0.1 # decrease subtitle font size
|
|
|
|
# ? sub_step -1 # immediately display next subtitle
|
|
|
|
# ? sub_step +1 # previous
|