-
Notifications
You must be signed in to change notification settings - Fork 0
/
input.conf
133 lines (109 loc) · 5.34 KB
/
input.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# https://mpv.io/manual/master/
q quit-watch-later 100
ESC quit 100
. playlist-next
, playlist-prev
? playlist-shuffle; show-text "Playlist shuffeled" 2500 1; print-text "Playlist shuffeled"
# osd modifiers: no-osd, osd-bar, osd-msg, osd-msg-bar
#Shift+RIGHT no-osd seek +1 exact
Shift+RIGHT seek +1 exact
#Shift+LEFT no-osd seek -1 exact
Shift+LEFT seek -1 exact
RIGHT seek +10
LEFT seek -10
UP seek +60
DOWN seek -60
PGUP seek +600
PGDWN seek -600
Shift+UP seek +600
Shift+DOWN seek -600
> frame_step # advance one frame and pause
= set speed 1 # reset speed set with [/]
[ add speed -0.25
] add speed +0.25
Alt+, add chapter -1 # skip to previous chapter
Alt+. add chapter 1 # next
#! add chapter -1 # previous (legacy)
#@ add chapter 1 # next (legacy)
#Alt+- add video-zoom -0.1
– add video-zoom -0.1 # alt-gr - (colemak)
#Alt++ add video-zoom 0.1
Alt+= add video-zoom 0.1 # alt + (w/o shift)
× add video-zoom 0.1 # alt-gr = (colemak)
Alt+] add video-rotate 90
» add video-rotate 90 # alt-gr ] (colemak)
Alt+[ add video-rotate -90
« add video-rotate -90 # alt-gr [ (colemak)
#Alt+LEFT add video-pan-x 0.1
ñ add video-pan-x 0.1 # alt-gr n (colemak)
#Alt+RIGHT add video-pan-x -0.1
í add video-pan-x -0.1 # alt-gr i (colemak)
#Alt+DOWN add video-pan-y -0.1
é add video-pan-y -0.1 # alt-gr e (colemak)
#Alt+UP add video-pan-y 0.1
ú add video-pan-y 0.1 # alt-gr u (colemak)
#Alt+Backspace set video-zoom 0; set video-pan-x 0; set video-pan-y 0; set video-rotate 0
~ set video-zoom 0; set video-pan-x 0; set video-pan-y 0; set video-rotate 0 # alt-gr \ (colemak)
o cycle osd-level
O show-progress
# toggle infinitiy loop (unbind original key: l)
l ignore
/ cycle-values loop-file "inf" "no"
# set a/b loop points (unbind original key: L)
L ignore
' ab-loop
Shift+d cycle framedrop
# == RUN COMMANDS ============================================================
# using bash for windows compatibility (e.g. install ubuntu linux subsystem)
# Delete: Add current file to 'delete me' file
DEL run "bash" "-c" "echo \"${path}\" >> /tmp/mpv-delete-me"; show-text "File marked for deletion ..." 2500 1; print-text "File ${path} marked for deletion in /tmp/mpv-delete-me"
# Delete: Delete current file
#DEL run "/bin/sh" "-c" "rm -f '${path}' '${path}'.bookmarks"
Shift+DEL run "bash" "-c" "rm -f \"${path}\" \"${path}.bookmarks\""; show-text "File deleted ..." 2500 1; print-text "File ${path}[.bookmarks] deleted"; playlist-next
# b: Add stream position to bookmark file (type = begin)
b run "bash" "-c" "echo '${time-pos}|${percent-pos}%|${stream-pos}|begin' >> \"${path}\".bookmarks"; show-text "Mark: Begin @${time-pos}" 2500 1; print-text "Bookmark begin @${time-pos} added to ${path}'.bookmarks"
# Shift+b: Add stream position to bookmark file (type = end)
B run "bash" "-c" "echo '${time-pos}|${percent-pos}%|${stream-pos}|end' >> \"${path}\".bookmarks"; show-text "Mark: End @${time-pos}" 2500 1; print-text "Bookmark end @${time-pos} added to ${path}'.bookmarks"
# ctrl-shift-b: Delete last bookmark from bookmark file
Ctrl+B run "bash" "-c" "sed -i '$ d' \"${path}\".bookmarks"; show-text "Last bookmark removed" 2500 1; print-text "Last bookmark removed from ${path}'.bookmarks"
# ctrl-shift-split: split file according to bookmarks (if any)
#Ctrl+Shift+s run "sh" "-c" "env DISPLAY=:0 x-terminal-emulator -x _b=\"${path}.bookmarks\"; [[ ! -f \"${_b}\" ]] && printf \"no bookmak file found, exiting\" && exit 1; ff_copy_mpv_boomarks '${path}'.bookmarks; print '> finished, press any key to continue'; read"
Ctrl+S run "bash" "-c" "~/bin/ff-copy-mpv-bookmarks -n \"${path}\".bookmarks"; show-text "Splitting file by bookmarks using ffmpeg" 2500 1
# F1: Open file in avidemux
#F1 run "avidemux" "${path}"
F1 run "avidemux2.7_qt5" "${path}"; show-text "Opening file in avidemux" 2500 1
# ctrl-c: copy relative / provided file path (single quoted) to clipboard
Ctrl+c run "bash" "-c" "printf \"%s\" \"${path}\" | xclip -selection clip-board"; show-text "Copied file path to clipboard" 2500 1
# ctrl-shift-c: copy absolute file path (single quoted) to clipboard
Ctrl+C run "bash" "-c" "printf \"%s%s\" \"$(realpath \"${path}\")\" | xclip -selection clip-board"; show-text "Copied absolute file path to clipboard" 2500 1
# == MOUSE ===================================================================
# left: play-pause
MOUSE_BTN1 cycle pause
# right: toggle fs
MOUSE_BTN2 cycle fullscreen
# hold right + double left: quit
#MOUSE_BTN2-MOUSE_BTN0_DBL quit
#MOUSE_BTN3 volume 2
#MOUSE_BTN3_DBL volume 2
#MOUSE_BTN3-MOUSE_BTN3_DBL volume 2
#MOUSE_BTN4 volume -2
#MOUSE_BTN4_DBL volume -2
#MOUSE_BTN4-MOUSE_BTN4_DBL volume -2
#MOUSE_BTN0-MOUSE_BTN3 seek +5
#MOUSE_BTN0-MOUSE_BTN3_DBL seek +5
#MOUSE_BTN0-MOUSE_BTN3-MOUSE_BTN3_DBL seek +5
#MOUSE_BTN0-MOUSE_BTN4 seek -5
#MOUSE_BTN0-MOUSE_BTN4_DBL seek -5
#MOUSE_BTN0-MOUSE_BTN4-MOUSE_BTN4_DBL seek -5
#MOUSE_BTN2-MOUSE_BTN3 seek +30
#MOUSE_BTN2-MOUSE_BTN3_DBL seek +30
#MOUSE_BTN2-MOUSE_BTN3-MOUSE_BTN3_DBL seek +30
#MOUSE_BTN2-MOUSE_BTN4 seek -30
#MOUSE_BTN2-MOUSE_BTN4_DBL seek -30
#MOUSE_BTN2-MOUSE_BTN4-MOUSE_BTN4_DBL seek -30
#MOUSE_BTN1-MOUSE_BTN3 seek +300
#MOUSE_BTN1-MOUSE_BTN3_DBL seek +300
#MOUSE_BTN1-MOUSE_BTN3-MOUSE_BTN3_DBL seek +300
#MOUSE_BTN1-MOUSE_BTN4 seek -300
#MOUSE_BTN1-MOUSE_BTN4_DBL seek -300
#MOUSE_BTN1-MOUSE_BTN4-MOUSE_BTN4_DBL seek -300