mirror of
https://github.com/rydesun/dotfiles.git
synced 2025-12-26 22:55:00 +08:00
Update mpv config: change shaders and keymaps
This commit is contained in:
parent
c513ad3bbc
commit
a68d4c0d4d
4 changed files with 31 additions and 42 deletions
|
|
@ -1,27 +1,29 @@
|
|||
UP no-osd add volume 2; script-binding uosc/flash-volume
|
||||
DOWN no-osd add volume -2; script-binding uosc/flash-volume
|
||||
MBTN_MID cycle pause
|
||||
WHEEL_UP no-osd seek 3
|
||||
WHEEL_DOWN no-osd seek -3
|
||||
LEFT no-osd seek -5; script-binding uosc/flash-timeline
|
||||
RIGHT no-osd seek 5; script-binding uosc/flash-timeline
|
||||
WHEEL_UP no-osd seek 3; script-binding uosc/flash-timeline
|
||||
WHEEL_DOWN no-osd seek -3; script-binding uosc/flash-timeline
|
||||
MBTN_BACK no-osd add chapter -1
|
||||
MBTN_FORWARD no-osd add chapter 1
|
||||
MBTN_MID cycle pause
|
||||
|
||||
Alt+LEFT add video-pan-x 0.01
|
||||
Alt+RIGHT add video-pan-x -0.01
|
||||
Alt+UP add video-pan-y 0.01
|
||||
Alt+DOWN add video-pan-y -0.01
|
||||
|
||||
Alt+d script-binding uosc/delete-file-next
|
||||
|
||||
m no-osd cycle mute; script-binding uosc/flash-volume
|
||||
M script-binding uosc/menu
|
||||
p script-binding uosc/items
|
||||
o script-binding uosc/open-file
|
||||
> script-binding uosc/next
|
||||
< script-binding uosc/prev
|
||||
Alt+d script-binding uosc/delete-file-next
|
||||
|
||||
ctrl+r cycle_values video-rotate "90" "180" "270" "0"; set geometry 90%x95%+50%+50%
|
||||
Ctrl+r cycle_values video-rotate "90" "180" "270" "0"; set geometry 90%x95%+50%+50%
|
||||
|
||||
CTRL+1 apply-profile "common"; show_text glsl-shaders=${glsl-shaders}
|
||||
CTRL+2 apply-profile "anime"; show_text glsl-shaders=${glsl-shaders}
|
||||
|
||||
CTRL+8 apply-profile "append-shaders"; show_text glsl-shaders=${glsl-shaders}
|
||||
CTRL+9 apply-profile "append-shaders" restore; show_text glsl-shaders=${glsl-shaders}
|
||||
CTRL+0 change-list glsl-shaders clr ""; show_text glsl-shaders=
|
||||
Ctrl+1 apply-profile "common-shaders"; show_text glsl-shaders=${glsl-shaders}
|
||||
Ctrl+2 apply-profile "anime-lq-shaders"; show_text glsl-shaders=${glsl-shaders}
|
||||
Ctrl+0 change-list glsl-shaders clr ""; show_text glsl-shaders=
|
||||
|
|
|
|||
|
|
@ -37,30 +37,18 @@ screenshot-template="%F(%P)"
|
|||
video-sync=display-resample
|
||||
interpolation
|
||||
|
||||
# 会覆盖scale和cscale
|
||||
# 可选值common或者anime
|
||||
profile=common
|
||||
profile=fast
|
||||
|
||||
[common]
|
||||
profile-desc=普通视频
|
||||
# FSRCNNX着色器
|
||||
# https://github.com/igv/FSRCNN-TensorFlow/
|
||||
# 可选值common-shaders或者anime-lq-shaders
|
||||
profile=common-shaders
|
||||
|
||||
[common-shaders]
|
||||
# FSRCNNX: https://github.com/igv/FSRCNN-TensorFlow/
|
||||
glsl-shaders="~~/shaders/FSRCNNX_x2_8-0-4-1.glsl"
|
||||
|
||||
[anime]
|
||||
profile-desc=低清动画
|
||||
# FSRCNNX着色器
|
||||
# https://github.com/HelpSeeker/FSRCNN-TensorFlow/
|
||||
glsl-shaders="~~/shaders/FSRCNNX_x1_16-0-4-1_distort.glsl"
|
||||
|
||||
# 更多着色器,默认不启用
|
||||
[append-shaders]
|
||||
profile-desc=添加更多着色器
|
||||
profile-restore=copy-equal
|
||||
# 色度升频
|
||||
# https://gist.github.com/igv/a015fc885d5c22e6891820ad89555637
|
||||
glsl-shaders-append="~~/shaders/KrigBilateral.glsl"
|
||||
# 自适应锐化
|
||||
# https://gist.github.com/igv/8a77e4eb8276753b54bb94c1c50c317e
|
||||
sigmoid-upscaling=no
|
||||
glsl-shaders-append="~~/shaders/adaptive-sharpen.glsl"
|
||||
[anime-lq-shaders]
|
||||
glsl-shaders=
|
||||
# FSRCNNX: https://github.com/HelpSeeker/FSRCNN-TensorFlow/
|
||||
glsl-shader="~~/shaders/FSRCNNX_x1_16-0-4-1_distort.glsl"
|
||||
# 锐化: https://gist.github.com/igv/8a77e4eb8276753b54bb94c1c50c317e
|
||||
glsl-shader="~~/shaders/adaptive-sharpen.glsl"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
timeline_persistency=audio
|
||||
|
||||
top_bar=always
|
||||
top_bar_controls=no
|
||||
top_bar_alt_title=${filename}
|
||||
|
||||
use_trash=yes
|
||||
|
||||
|
|
|
|||
|
|
@ -4,23 +4,18 @@ config_dir=${XDG_CONFIG_HOME:-~/.config}/mpv/
|
|||
script_dir=${config_dir}/scripts/
|
||||
shader_dir=${config_dir}/shaders/
|
||||
|
||||
echo "Updating uosc..."
|
||||
echo "Installing scripts..."
|
||||
bash -c "$(curl -fL https://raw.githubusercontent.com/tomasklaen/uosc/HEAD/installers/unix.sh)"
|
||||
|
||||
curl -fL --create-dirs -o "${script_dir}/thumbfast.lua" \
|
||||
https://github.com/po5/thumbfast/raw/master/thumbfast.lua
|
||||
|
||||
echo "Updating shaders..."
|
||||
echo "Installing shaders..."
|
||||
curl -fL --create-dirs -o "${shader_dir}/FSRCNNX_x2_8-0-4-1.glsl" \
|
||||
https://github.com/igv/FSRCNN-TensorFlow/releases/download/1.1/FSRCNNX_x2_8-0-4-1.glsl
|
||||
|
||||
curl -fL --create-dirs -o "${shader_dir}/FSRCNNX_x1_16-0-4-1_distort.glsl" \
|
||||
https://github.com/HelpSeeker/FSRCNN-TensorFlow/releases/download/1.2_distort/FSRCNNX_x1_16-0-4-1_distort.glsl
|
||||
|
||||
curl -fL --create-dirs -o "${shader_dir}/KrigBilateral.glsl" \
|
||||
https://gist.github.com/igv/a015fc885d5c22e6891820ad89555637/raw
|
||||
|
||||
curl -fL --create-dirs -o "${shader_dir}/adaptive-sharpen.glsl" \
|
||||
https://gist.github.com/igv/8a77e4eb8276753b54bb94c1c50c317e/raw
|
||||
|
||||
echo "Done."
|
||||
Loading…
Add table
Add a link
Reference in a new issue