Skip to content

Commit

Permalink
Merge pull request #13 from the-database/v2
Browse files Browse the repository at this point in the history
V2
  • Loading branch information
the-database authored Jun 23, 2023
2 parents 0133571 + f6d1996 commit 11f019a
Show file tree
Hide file tree
Showing 54 changed files with 1,362 additions and 407 deletions.
Binary file removed 2x_AnimeJaNai_Standard_V1_Compact_net_g_120000.onnx
Binary file not shown.
Binary file not shown.
Binary file removed 2x_AnimeJaNai_Strong_V1_Compact_net_g_120000.onnx
Binary file not shown.
Binary file not shown.
Binary file not shown.
124 changes: 59 additions & 65 deletions README.md

Large diffs are not rendered by default.

Binary file removed demothumb1.png
Binary file not shown.
Binary file removed demothumb2.png
Binary file not shown.
Binary file removed demothumb3.png
Binary file not shown.
186 changes: 0 additions & 186 deletions doeverything.ps1

This file was deleted.

31 changes: 25 additions & 6 deletions input.conf
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ _ add audio-delay 0.1 #menu: Audio > Delay +0.1
_ add audio-delay -0.1 #menu: Audio > Delay -0.1

_ cycle sub #menu: Subtitle > Cycle/Next
v script-message cycle-commands "show-text upscale-off;apply-profile upscale-off" "show-text upscale-on;apply-profile upscale-on"
#v script-message cycle-commands "show-text upscale-off;apply-profile upscale-off" "show-text upscale-on;apply-profile upscale-on"
_ ignore #menu: Subtitle > -
z add sub-delay -0.1 #menu: Subtitle > Delay -0.1
Z add sub-delay 0.1 #menu: Subtitle > Delay +0.1
Expand Down Expand Up @@ -111,7 +111,9 @@ a script-message-to mpvnet show-audio-tracks #menu: View > Show Audio Tracks
Ctrl+8 script-message-to mpvnet show-subtitle-tracks #menu: View > Show Subtitle Tracks
Ctrl+c script-message-to mpvnet show-chapters #menu: View > Show Chapters
_ cycle border #menu: View > Toggle Border
b cycle deband
#b cycle deband
b set deband yes; change-list glsl-shaders set "~~/shaders/noise_static_luma.hook;~~/shaders/noise_static_chroma.hook"; show-text "enable deband"
ctrl+b set deband no; change-list glsl-shaders clr ""; show-text "disable deband"
_ cycle ontop #menu: View > Toggle On Top
t script-binding stats/display-stats-toggle #menu: View > Toggle Statistics
_ script-binding osc/visibility #menu: View > Toggle OSC Visibility
Expand Down Expand Up @@ -180,10 +182,10 @@ MBTN_Mid cycle pause
Stop stop
#Forward seek 60
#Rewind seek -60
#Wheel_Up add volume 2
#Wheel_Down add volume -2
#Wheel_Left add volume -2
#Wheel_Right add volume 2
Wheel_Up add volume 2
Wheel_Down add volume -2
Wheel_Left add volume -2
Wheel_Right add volume 2
Prev playlist-prev
Next playlist-next
MBTN_Forward playlist-next
Expand All @@ -205,3 +207,20 @@ Shift+Down no-osd seek -5 exact
#Ctrl+Wheel_Up no-osd seek 7
#Ctrl+Wheel_Down no-osd seek -7

Ctrl+0 show-text "2x_AnimeJaNai_V2 off"; apply-profile upscale-off;
! show-text "2x_AnimeJaNai_V2 Compact up to 4x on"; apply-profile upscale-on-compact4x;
@ show-text "2x_AnimeJaNai_V2 UltraCompact up to 4x on"; apply-profile upscale-on-ultracompact4x;
SHARP show-text "2x_AnimeJaNai_V2 SuperUltraCompact up to 4x on"; apply-profile upscale-on-superultracompact4x;
$ show-text "2x_AnimeJaNai_V2 Compact up to 2x on"; apply-profile upscale-on-compact2x;
% show-text "2x_AnimeJaNai_V2 UltraCompact up to 2x on"; apply-profile upscale-on-ultracompact2x;
^ show-text "2x_AnimeJaNai_V2 SuperUltraCompact up to 2x on"; apply-profile upscale-on-superultracompact2x;
Ctrl+1 show-text "2x_AnimeJaNai_V2 custom slot 1 on"; apply-profile upscale-on-1;
Ctrl+2 show-text "2x_AnimeJaNai_V2 custom slot 2 on"; apply-profile upscale-on-2;
Ctrl+3 show-text "2x_AnimeJaNai_V2 custom slot 3 on"; apply-profile upscale-on-3;
Ctrl+4 show-text "2x_AnimeJaNai_V2 custom slot 4 on"; apply-profile upscale-on-4;
Ctrl+5 show-text "2x_AnimeJaNai_V2 custom slot 5 on"; apply-profile upscale-on-5;
Ctrl+6 show-text "2x_AnimeJaNai_V2 custom slot 6 on"; apply-profile upscale-on-6;
Ctrl+7 show-text "2x_AnimeJaNai_V2 custom slot 7 on"; apply-profile upscale-on-7;
Ctrl+8 show-text "2x_AnimeJaNai_V2 custom slot 8 on"; apply-profile upscale-on-8;
Ctrl+9 show-text "2x_AnimeJaNai_V2 custom slot 9 on"; apply-profile upscale-on-9;

13 changes: 0 additions & 13 deletions install.ps1

This file was deleted.

71 changes: 53 additions & 18 deletions mpv.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Uses GPU-accelerated video output by default.
vo=gpu
# Can cause performance problems with some GPU drivers and GPUs.
#profile=gpu-hq
profile=gpu-hq
gpu-context=auto
gpu-api=vulkan
vulkan-queue-count=3
Expand Down Expand Up @@ -51,32 +51,25 @@ profile-restore=copy-equal

# Sets volume to 100%.
volume=100

volume-max=100

# ===== Subtitles =====
# lower quality subs, if more performance needed
# remove below line to improve subtitle quality if performance is available
blend-subtitles=video

alang = 'jpn'
slang = 'eng'

ao = wasapi
audio-exclusive = yes
audio-channels=7.1,5.1,stereo

watch-later-options-clr

[upscale-off]
vf=""
[upscale-on]
vf=vapoursynth="~~/shaders/2x_SharpLines.vpy":buffered-frames=1:concurrent-frames=99
[default]

dither-depth=auto
deband=yes
deband-iterations=4
deband-threshold=100
deband-range=64
deband-grain=0
deband-threshold=48
deband-range=16
deband-grain=48
glsl-shader="~~/shaders/noise_static_luma.hook"
glsl-shader="~~/shaders/noise_static_chroma.hook"

screenshot-format=png
screenshot-directory=~~/screenshots/
Expand All @@ -88,5 +81,47 @@ input-ar-delay=500
# display images indefinitely
image-display-duration = 'inf'

profile=upscale-on
include=~~/custom.conf
# loop .gif animations
[extension.gif]
loop-file=inf

# loop .webm animations
[extension.webm]
loop-file=inf

[upscale-off]
vf=""
[upscale-on-1]
vf=vapoursynth="~~/shaders/animejanai_v2_1.vpy":buffered-frames=1:concurrent-frames=99
[upscale-on-2]
vf=vapoursynth="~~/shaders/animejanai_v2_2.vpy":buffered-frames=1:concurrent-frames=99
[upscale-on-3]
vf=vapoursynth="~~/shaders/animejanai_v2_3.vpy":buffered-frames=1:concurrent-frames=99
[upscale-on-4]
vf=vapoursynth="~~/shaders/animejanai_v2_4.vpy":buffered-frames=1:concurrent-frames=99
[upscale-on-5]
vf=vapoursynth="~~/shaders/animejanai_v2_5.vpy":buffered-frames=1:concurrent-frames=99
[upscale-on-6]
vf=vapoursynth="~~/shaders/animejanai_v2_6.vpy":buffered-frames=1:concurrent-frames=99
[upscale-on-7]
vf=vapoursynth="~~/shaders/animejanai_v2_7.vpy":buffered-frames=1:concurrent-frames=99
[upscale-on-8]
vf=vapoursynth="~~/shaders/animejanai_v2_8.vpy":buffered-frames=1:concurrent-frames=99
[upscale-on-9]
vf=vapoursynth="~~/shaders/animejanai_v2_9.vpy":buffered-frames=1:concurrent-frames=99
[upscale-on-compact4x]
vf=vapoursynth="~~/shaders/animejanai_v2_compact4x.vpy":buffered-frames=1:concurrent-frames=99
[upscale-on-ultracompact4x]
vf=vapoursynth="~~/shaders/animejanai_v2_ultracompact4x.vpy":buffered-frames=1:concurrent-frames=99
[upscale-on-superultracompact4x]
vf=vapoursynth="~~/shaders/animejanai_v2_superultracompact4x.vpy":buffered-frames=1:concurrent-frames=99
[upscale-on-compact2x]
vf=vapoursynth="~~/shaders/animejanai_v2_compact2x.vpy":buffered-frames=1:concurrent-frames=99
[upscale-on-ultracompact2x]
vf=vapoursynth="~~/shaders/animejanai_v2_ultracompact2x.vpy":buffered-frames=1:concurrent-frames=99
[upscale-on-superultracompact2x]
vf=vapoursynth="~~/shaders/animejanai_v2_superultracompact2x.vpy":buffered-frames=1:concurrent-frames=99

[default]
profile=upscale-on-1

Binary file not shown.
Binary file removed s1-original.png
Binary file not shown.
Loading

0 comments on commit 11f019a

Please sign in to comment.