summary refs log tree commit diff
path: root/.config/mpv/config
blob: f53114ae83be78434d5373d355d77882d1f62e37 (plain) (blame)
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
# MPV Configuration
# clean up input config (helps with iina, gnome-mpv etc.)
# no-input-default-bindings
autoload-files=no
input-ipc-server=/var/run/user/1000/mpv 
autofit-larger=90%x90%

#
# Video
#
framedrop=vo
video-sync=display-resample
gpu-context=wayland
window-maximized=yes # prevent wayland problems with buffer resize

#
# Audio
#
alang=jpn,ja,eng,en,ger,de
volume-max=200
audio-channels=auto-safe
# bs2b filter
# af-add=lavfi=[bs2b=profile=jmeier] #default,cmoy

#
# Subtitles
#
slang=eng,en,ger,de
sub-font="Rosario"
sub-bold=yes
sub-ass-force-style=Kerning=yes

#
# OSD
#
osc=no
osd-bar=no
border=no
#
keep-open=yes
stop-screensaver=yes
cursor-autohide-fs-only
osd-font="Iosevka Sparkle"
# osd-font=monospace
osd-font-size=15
osd-scale-by-window=yes
osd-fractions=yes
geometry=50%x50%
hidpi-window-scale
load-stats-overlay=yes
load-osd-console=yes

#
# Misc.
#
screenshot-directory=~/Pictures/screenshots/mpv
screenshot-template='%tY%tm%td-%tH%tM%tS-%F-%p'
# screenshot-format=png
# screenshot-jpeg-quality=100
# user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:42.0) Gecko/20100101 Firefox/42.0"
# ytdl-format=bestvideo+bestaudio,best

#
# PROFILES
#

[anime]
profile-desc="Optimized for watching anime with ASS subtitles"
sub-auto=fuzzy
# deband=yes
# sub-border-size=2
# sub-font-size=45
# sub-margin-y=50
# sub-spacing=1

[cache]
profile-desc="Optimized for streaming web video"
cache=yes
cache-secs=36000
script=~/.config/mpv/scripts/mpv-plugin-streamcache/streamcache.lua
ytdl-format='bestvideo[ext=mp4]+bestaudio'

[3d]
profile-desc="Convert 3d to 2d"
hwdec=no
vf-add=stereo3d=sbs2l:mono

[webcam]
profile-desc="Optimized for showing internal webcam feed"
osc=no
profile=low-latency
# video-sync=display-desync # needed or external audio will fail
pulse-latency-hacks=yes
demuxer-lavf-o=input_format=mjpeg,video_size=848x480
# framedrop=no
# no-demuxer-thread
opengl-glfinish=yes
opengl-swapinterval=0
vf=hflip

[scale]
scale=ewa_lanczossharp
cscale=ewa_lanczossharp
dscale=ewa_lanczossharp
correct-downscaling=yes
sigmoid-upscaling=yes

[finesharp]
glsl-shaders="~~/shaders/finesharp/FineSharp.glsl"

[fsrcnnx]
profile=gpu-hq
glsl-shaders="~~/shaders/fsrcnnx/FSRCNNX_x2_8-0-4-1.glsl"