This repository has been archived on 2021-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/home/.config/mpv/mpv.conf
2020-10-25 11:07:26 +01:00

90 lines
2.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# configure fonts
osd-font = 'DINW07-Medium'
sub-font = 'Gandhi Sans'
sub-bold = yes
sub-font-size = 44
sub-use-margins = no
sub-border-size = 2
# make vobsub/PGS subtitles look nicer
sub-gauss=0.5
sub-gray=yes
# dont correct pitch of audio
#audio-pitch-correction = no
# max volume
volume-max = 150
# downmix to stereo by default
audio-channels = stereo
# i18n
#alang = ger,de,deu,eng,en
#slang = ger,de,deu,eng,en
# allow seeking in streamed media
force-seekable
# enable hardware decoding when avaliable
hwdec = auto-safe
# do not show images only one second
image-display-duration = inf
# better quality (but not too high, otherwise too high frame drop)
profile = gpu-hq
deband = no
dither-depth = auto
# screenshots
screenshot-format = png
[musicvideo]
lavfi-complex = '[aid1]asplit=4[ao][a1][a2][a3];[a1]avectorscope=m=lissajous:s=640x600:draw=dot:r=25[avectorscope];[a2]aresample=44100,showwaves=s=1280x600:mode=p2p:colors=red|lightgreen:r=25[showwaves];[a3]showcqt=s=1920x600:axis=0:axis_h=0:r=25[showcqt];[showwaves][avectorscope]hstack=shortest=1[top];[top][showcqt]vstack=shortest=1,fps=25[vo]'
alpha = no
[musicvideo-1080]
lavfi-complex = '[aid1]asplit=4[ao][a1][a2][a3];[a1]avectorscope=m=lissajous:s=640x540:draw=dot:r=25[avectorscope];[a2]aresample=44100,showwaves=s=1280x540:mode=p2p:colors=red|lightgreen:r=25[showwaves];[a3]showcqt=s=1920x540:axis=0:axis_h=0:r=25[showcqt];[showwaves][avectorscope]hstack=shortest=1[top];[top][showcqt]vstack=shortest=1,fps=25[vo]'
alpha = no
[musicvideo-c64]
lavfi-complex = '[aid1]channelsplit=4.0[mono][c1][c2][c3];[mono]channelmap=mono,asplit=2[ao][a2];[c1][c2][c3]join=inputs=3:channel_layout=3.0[a1];[a1]aresample=44100,showwaves=s=1920x600:mode=p2p:colors=red|lightgreen|yellow:split_channels=1:r=25[showwaves];[a2]showcqt=s=1920x600:axis=0:axis_h=0:r=25[showcqt];[showwaves][showcqt]vstack=shortest=1,fps=25,format=rgba[vo]'
alpha = no
[hqencode]
ovc = libx264
ovcopts-add = crf=18
oac = flac
audio-format = s16
[rain]
lavfi-complex = 'amovie=https\\://s3.sbruder.de/cdn/rain.opus,volume=0.5[rain];[aid1][rain]amix=2:duration=shortest[ao]'
[lq]
scale = bicubic_fast
cscale = bicubic_fast
dscale = bicubic_fast
[hq]
scale = ewa_lanczossharp
dscale = ewa_lanczossharp
cscale = ewa_lanczossharp
glsl-shader=~~/shaders/mpv-prescalers/compute/nnedi3-nns256-win8x4.hook
glsl-shader=~~/shaders/mpv-prescalers/compute/ravu-zoom-r4-chroma.hook
[interpolate]
blend-subtitles = yes
video-sync = display-resample
interpolation = yes
tscale = box
tscale-window = sphinx
tscale-radius = 1.0
tscale-clamp = 0.0
[clear-speed]
# https://github.com/mpv-player/mpv/issues/4418#issuecomment-368272929
af-add = scaletempo=stride=28:overlap=.9:search=25