###########
# General #
###########
# Custom config
#ontop # video player always on top
#no-taskbar-progress
osd-on-seek=no
osd-font-size=24
#osd-duration=100
keep-open=yes
force-window=immediate
no-focus-on-open
#autofit-larger=50%x50%
#autofit-smaller=50%x50%
geometry=50%x50%
#no-input-default-bindings
#########
# Cache #
#########
cache-pause
cache=yes
#cache-default=80000 # size in KB (80MB) -- Increase if you have buffering issues
#cache-backbuffer=80000 # size in KB
#cache-initial=0 # start playback when your cache is filled up with x kB
cache-secs=240 # how many seconds of audio/video to prefetch if the cache is active
demuxer-thread=yes
#demuxer-max-bytes=50MiB
demuxer-max-back-bytes=10MiB
demuxer-readahead-secs=240
network-timeout=100
###################################
# Protocol Specific Configuration #
###################################
stream-lavf-o-append=reconnect_on_http_error=4xx,5xx
stream-lavf-o-append=reconnect_delay_max=30
stream-lavf-o-append=reconnect_streamed=yes
stream-lavf-o-append=reconnect_on_network_error=yes
vo=gpu-next
hwdec=auto-safe
#uosc
# required so that the 2 UIs don't fight each other
osc=no
# uosc provides its own seeking/volume indicators, so you also don't need this
osd-bar=no
# uosc will draw its own window controls if you disable window border
border=no
ytdl-raw-options-append=no-check-certificates=
ytdl-raw-options-append=sub-langs=en,en-US,vi,vi-VN,vie,eng,ja,ja-JP,jap
ytdl-raw-options-append=write-auto-sub=
ytdl-raw-options-append=write-sub=