2014-08-11 21:32:37 +00:00
|
|
|
# mpv keybindings
|
2012-01-17 01:49:27 +00:00
|
|
|
#
|
2014-08-11 21:32:37 +00:00
|
|
|
# Location of user-defined bindings: ~/.config/mpv/input.conf
|
2012-01-17 01:49:27 +00:00
|
|
|
#
|
2014-08-11 21:32:37 +00:00
|
|
|
# Lines starting with # are comments. Use SHARP to assign the # key.
|
|
|
|
# Copy this file and uncomment and edit the bindings you want to change.
|
2012-01-17 01:49:27 +00:00
|
|
|
#
|
2014-08-11 21:32:37 +00:00
|
|
|
# List of commands and further details: DOCS/man/input.rst
|
|
|
|
# List of special keys: --input-keylist
|
|
|
|
# Keybindings testing mode: mpv --input-test --force-window --idle
|
2012-01-17 01:49:27 +00:00
|
|
|
#
|
2014-08-11 21:32:37 +00:00
|
|
|
# Use 'ignore' to unbind a key fully (e.g. 'ctrl+a ignore').
|
2012-01-17 01:49:27 +00:00
|
|
|
#
|
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
|
2014-08-11 21:32:37 +00:00
|
|
|
# the modifiers Shift, Ctrl, Alt and Meta (may not work on the terminal).
|
|
|
|
#
|
|
|
|
# The default keybindings are hardcoded into the mpv binary.
|
|
|
|
# You can disable them completely with: --no-input-default-bindings
|
2013-09-01 15:06:11 +00:00
|
|
|
|
2013-11-06 19:27:19 +00:00
|
|
|
# Developer note:
|
2014-08-11 21:32:37 +00:00
|
|
|
# On compilation, this file is baked into the mpv binary, and all lines are
|
|
|
|
# uncommented (unless '#' is followed by a space) - thus this file defines the
|
|
|
|
# default key bindings.
|
2013-09-01 15:06:11 +00:00
|
|
|
|
2014-02-25 21:09:20 +00:00
|
|
|
# If this is enabled, treat all the following bindings as default.
|
|
|
|
#default-bindings start
|
|
|
|
|
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
|
2014-09-21 13:41:33 +00:00
|
|
|
#MOUSE_BTN5 add volume 2
|
|
|
|
#MOUSE_BTN6 add volume -2
|
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
|
2014-08-11 11:37:18 +00:00
|
|
|
#RIGHT seek 5
|
|
|
|
#LEFT seek -5
|
2013-09-01 15:06:11 +00:00
|
|
|
#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).
|
2015-03-04 16:21:02 +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
|
2014-11-19 22:03:42 +00:00
|
|
|
# Skip to previous/next subtitle (subject to some restrictions; see manpage)
|
|
|
|
#Ctrl+LEFT no-osd sub_seek -1
|
|
|
|
#Ctrl+RIGHT no-osd sub_seek 1
|
2014-08-09 00:24:10 +00:00
|
|
|
#PGUP add chapter 1 # skip to next chapter
|
|
|
|
#PGDWN add chapter -1 # skip to previous chapter
|
|
|
|
#Shift+PGUP seek 600
|
|
|
|
#Shift+PGDWN seek -600
|
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
|
2014-09-15 21:22:21 +00:00
|
|
|
#ESC set fullscreen no
|
2014-06-13 00:03:14 +00:00
|
|
|
#ESC {encode} quit
|
2013-09-01 15:06:11 +00:00
|
|
|
#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
|
2014-11-15 22:10:28 +00:00
|
|
|
#ENTER playlist_next # skip to next file
|
2013-09-01 15:06:11 +00:00
|
|
|
#< playlist_prev # skip to previous file
|
2014-08-03 19:06:53 +00:00
|
|
|
#O osd # cycle through OSD mode
|
|
|
|
#o show_progress
|
2013-09-01 15:06:11 +00:00
|
|
|
#P show_progress
|
2014-08-03 19:06:53 +00:00
|
|
|
#I show_text "${filename}" # display filename in osd
|
2013-09-01 15:06:11 +00:00
|
|
|
#z add sub-delay -0.1 # subtract 100 ms delay from subs
|
|
|
|
#x add sub-delay +0.1 # add
|
2014-08-11 21:40:35 +00:00
|
|
|
#ctrl++ add audio-delay 0.100 # this changes audio/video sync
|
|
|
|
#ctrl+- add audio-delay -0.100
|
2014-09-21 13:41:33 +00:00
|
|
|
#9 add volume -2
|
|
|
|
#/ add volume -2
|
|
|
|
#0 add volume 2
|
|
|
|
#* add volume 2
|
2013-09-01 15:06:11 +00:00
|
|
|
#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
|
2014-08-07 22:43:14 +00:00
|
|
|
# toggle deinterlacer (automatically inserts or removes required filter)
|
2013-09-01 15:06:11 +00:00
|
|
|
#D cycle deinterlace
|
|
|
|
#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
|
2015-03-08 14:57:25 +00:00
|
|
|
# switch between applying no style overrides to SSA/ASS subtitles, and
|
|
|
|
# overriding them almost completely with the normal subtitle style
|
|
|
|
#u cycle_values ass-style-override "force" "no"
|
2013-09-01 15:06:11 +00:00
|
|
|
#j cycle sub # cycle through subtitles
|
|
|
|
#J cycle sub down # ...backwards
|
|
|
|
#SHARP cycle audio # switch audio streams
|
|
|
|
#_ cycle video
|
|
|
|
#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
|
2015-03-04 16:21:02 +00:00
|
|
|
#Alt+s screenshot each-frame # automatically screenshot every frame
|
2013-09-01 15:06:11 +00:00
|
|
|
#w add panscan -0.1 # zoom out with -panscan 0 -fs
|
|
|
|
#e add panscan +0.1 # in
|
2015-01-26 02:03:19 +00:00
|
|
|
# cycle video aspect ratios; "-1" is the container aspect
|
|
|
|
#A cycle_values video-aspect "16:9" "4:3" "2.35:1" "-1"
|
2013-09-01 15:06:11 +00:00
|
|
|
#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
|
2014-09-21 13:41:33 +00:00
|
|
|
#VOLUME_UP add volume 2
|
|
|
|
#VOLUME_DOWN add volume -2
|
2013-09-01 15:06:11 +00:00
|
|
|
#MUTE cycle mute
|
|
|
|
#CLOSE_WIN quit
|
|
|
|
#CLOSE_WIN {encode} quit
|
|
|
|
#E cycle edition # next edition
|
2014-11-19 22:03:42 +00:00
|
|
|
#l ab_loop # Set/clear A-B loop points
|
2014-08-22 14:18:09 +00:00
|
|
|
#ctrl+c quit
|
2013-06-27 16:21:07 +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
|
2014-09-21 13:41:33 +00:00
|
|
|
#AR_VUP add volume 2
|
2013-09-01 15:06:11 +00:00
|
|
|
#AR_VUP_HOLD add chapter 1
|
2014-09-21 13:41:33 +00:00
|
|
|
#AR_VDOWN add volume -2
|
2013-09-01 15:06:11 +00:00
|
|
|
#AR_VDOWN_HOLD add chapter -1
|
2013-06-02 22:52:40 +00:00
|
|
|
|
2014-03-30 02:42:49 +00:00
|
|
|
# For dvdnav:// and bdnav://
|
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
|
|
|
|
2014-03-30 02:42:49 +00:00
|
|
|
# navigation controls during playback
|
|
|
|
#ENTER {discnav} discnav menu # DISCNAV MENU
|
|
|
|
# BS {discnav} discnav prev # DISCNAV PREVIOUS menu (in the order chapter->title->root)
|
|
|
|
# navigation controls when showing menu (additionally to the controls above)
|
|
|
|
#UP {discnav-menu} discnav up # DISCNAV UP
|
|
|
|
#DOWN {discnav-menu} discnav down # DISCNAV DOWN
|
|
|
|
#LEFT {discnav-menu} discnav left # DISCNAV LEFT
|
|
|
|
#RIGHT {discnav-menu} discnav right # DISCNAV RIGHT
|
|
|
|
#ENTER {discnav-menu} discnav select # DISCNAV SELECT (ok)
|
|
|
|
#MOUSE_BTN0 {discnav-menu} discnav mouse
|
|
|
|
#MOUSE_MOVE {discnav-menu} discnav 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
|
|
|
|
2014-06-25 18:29:05 +00:00
|
|
|
# For tv://
|
|
|
|
#h cycle tv-channel -1 # previous channel
|
|
|
|
#k cycle tv-channel +1 # next channel
|
|
|
|
|
2014-08-07 21:55:09 +00:00
|
|
|
#
|
|
|
|
# Legacy bindings (may or may not be removed in the future)
|
|
|
|
#
|
|
|
|
#! add chapter -1 # skip to previous chapter
|
|
|
|
#@ add chapter 1 # next
|
|
|
|
|
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
|
2014-05-18 20:22:33 +00:00
|
|
|
# ? cycle_values window-scale 0.5 2 1 # switch between 1/2, 2x, unresized window size
|
2014-08-03 19:06:53 +00:00
|
|
|
# ? cycle colormatrix
|
2014-08-07 22:43:14 +00:00
|
|
|
# ? add audio-delay 0.100 # this changes audio/video sync
|
|
|
|
# ? add audio-delay -0.100
|
|
|
|
# ? cycle angle # switch DVD/Bluray angle
|
|
|
|
# ? add balance -0.1 # adjust audio balance in favor of left
|
|
|
|
# ? add balance 0.1 # right
|
|
|
|
# ? cycle sub-forced-only # toggle DVD forced subs
|
|
|
|
# ? cycle program # cycle transport stream programs
|
|
|
|
# ? stop # stop playback (quit or enter idle mode)
|