profile=svp
###########
# General #
###########
msg-module # prepend module name to log messages
msg-color # color log messages on terminal
term-osd-bar # display a progress bar on the terminal
#keep-open=yes # play the next file in folder, or exit
autofit-larger=70%x65% # resize window in case it's larger than W%xH% of the screen
cursor-autohide-fs-only # don't autohide the cursor in window mode, only fullscreen
cursor-autohide=1000 # autohide the curser after 1s
#script-opts=osc-layout=box,osc-seekbarstyle=bar
screenshot-format=png
screenshot-png-compression=8
screenshot-template='~/Desktop/%F (%P) %n'
#########
# Cache #
#########
cache=yes
cache-default=500000 # size in KB
cache-backbuffer=250000 # size in KB
cache-initial=0 # start playback when your cache is filled up with x kB
cache-secs=1200 # how many seconds of audio/video to prefetch if the cache is =
user-agent='Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 Vivaldi/1.96.1147.64'
#########
# Audio #
#########
audio-file-auto=fuzzy # external audio doesn't has to match the file name exactly to autoload
audio-pitch-correction=yes # automatically insert scaletempo when playing with higher speed
volume-max=200 # maximum volume in %, everything above 100 results in amplification
volume=50 # default volume, 100 = unchanged
################
# Video Output #
################
brightness=+5
contrast=+5
gamma=-0
saturation=20
#############
# Subtitles #
#############
sub-use-margins
sub-ass-force-margins
demuxer-mkv-subtitle-preroll # try to correctly show embedded subs when seeking
sub-auto=fuzzy # external subs don't have to match the file name exactly to autoload
sub-file-paths=ass:srt:sub:subs:subtitles # search for external subs in the listed subdirectories
embeddedfonts=yes # use embedded fonts for SSA/ASS subs
sub-fix-timing=no # do not try to fix gaps (which might make it worse in some cases)
sub-ass-force-style=Kerning=yes # allows you to override style parameters of ASS scripts
# the following options only apply to subtitles without own styling (i.e. not ASS but e.g. SRT)
sub-font="Source Sans Pro Semibold"
sub-font-size=20
sub-color="#FFFFFFFF"
sub-border-color="#FF262626"
sub-border-size=3.2
sub-shadow-offset=1
sub-shadow-color="#33000000"
sub-spacing=0.5
###################################
# Protocol Specific Configuration #
###################################
[svp]
vo=gpu
#opengl-early-flush=auto
opengl-early-flush=yes
opengl-pbo=yes
interpolation=yes
interpolation-threshold=0.001
tscale=oversample
tscale-antiring=0.7
#video-sync=display-resample-vdrop
video-sync=display-resample
framedrop=no
hr-seek-framedrop=no # Fixes audio desync
video-latency-hacks=yes
opengl-swapinterval=1
autosync=30
opengl-glfinish=yes
scale=ewa_lanczossharp
cscale=ewa_lanczossharp #ewa_lanczossoft
cscale-radius=10
dscale=catmull_rom
scale-antiring=0.0
cscale-antiring=0.0
dither-depth=no
correct-downscaling=yes
sigmoid-upscaling=yes
deband=yes
target-trc=gamma2.2
hwdec=vdpau-copy
hwdec-codecs=all
video-output-levels=full
hls-bitrate=max # use max quality for HLS streams
ytdl-format="bestvideo[ext=mp4][height<=?1080][fps<=30]+bestaudio[ext=m4a]"
no-input-default-bindings
no-correct-pts
correct-pts
video-aspect=16:9
resume-playback=no # Not compatible with SVP
input-ipc-server=/tmp/mpvsocket # Receives input from SVP