1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,19 @@ |
1 |
+# Defaults: <https://github.com/mpv-player/mpv/blob/master/etc/input.conf>. |
|
2 |
+ |
|
3 |
+## Pan/rotate |
|
4 |
+WHEEL_UP add video-pan-y +0.01 |
|
5 |
+WHEEL_DOWN add video-pan-y -0.01 |
|
6 |
+WHEEL_LEFT add video-pan-x +0.01 |
|
7 |
+WHEEL_RIGHT add video-pan-x -0.01 |
|
8 |
+Alt+w set panscan 0 |
|
9 |
+Alt+W set panscan 1 |
|
10 |
+Alt+r add video-rotate -2 |
|
11 |
+Alt+R add video-rotate +2 |
|
12 |
+Ctrl+r add video-rotate -90 |
|
13 |
+Ctrl+R add video-rotate +90 |
|
14 |
+ |
|
15 |
+## Categorize |
|
16 |
+# <https://mpv.io/manual/master/#list-of-input-commands> |
|
17 |
+# <https://mpv.io/manual/master/#property-list> |
|
18 |
+1 run sh -c "dir=\"$(dirname \"$1\")/$0\"; mkdir -p \"$dir\"; ln -sr \"$1\" \"$dir/$(basename \"$1\")\"" 1 ${path} |
|
19 |
+2 run sh -c "dir=\"$(dirname \"$1\")/$0\"; mkdir -p \"$dir\"; ln -sr \"$1\" \"$dir/$(basename \"$1\")\"" 2 ${path} |
0 | 20 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,17 @@ |
1 |
+## Playback |
|
2 |
+loop-playlist |
|
3 |
+ |
|
4 |
+## Input |
|
5 |
+native-keyrepeat |
|
6 |
+ |
|
7 |
+## Hardware decoding |
|
8 |
+# Allow CPU processing with video filters. |
|
9 |
+hwdec=auto-copy |
|
10 |
+ |
|
11 |
+## Streaming |
|
12 |
+ytdl-format="bestvideo[height<=?720][fps<=?30]+bestaudio/best[height<=?720][fps<=?30]" |
|
13 |
+script-opts=ytdl_hook-ytdl_path=yt-dlp |
|
14 |
+ |
|
15 |
+## Terminal |
|
16 |
+msg-level=all=warn,term-msg=status,statusline=status |
|
17 |
+term-playing-msg='${media-title}' |