###########
# General #
###########
ontop # video player always on top
#no-taskbar-progress
osd-on-seek=no
osd-font-size=22
#osd-duration=100
keep-open=no
force-window=immediate
no-focus-on-open
geometry=50%x50%
save-position-on-quit
load-unsafe-playlists=yes
#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
#########
# 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=600 # how many seconds of audio/video to prefetch if the cache is active
demuxer-thread=yes
#demuxer-max-bytes=50MiB
demuxer-max-back-bytes=50MiB
demuxer-readahead-secs=600
###################################
# 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
network-timeout=1000
############
# Subtitle #
############
#Doi mau, kich co subtitle
#sub-color='#FFFF00' #subtitle color in rgb
#sub-shadow-color='#000000' #shadow color
#sub-font='Noto Sans' #set font
#sub-bold=yes
#sub-font-size=60
#sub-pos=95 #subtitle position 5 percent above the bottom of the screen
sub-fix-timing=yes
#########
# Video #
#########
hwdec=auto
#hwdec=auto-safe
profile=gpu-hq
deband=no
#Cho he may cui bap, CPU va GPU giam cuc nhieu
#tscale=nearest
#interpolation=no
#scale=bilinear
#cscale=bilinear
#dscale=bilinear
#sws-scaler=bilinear
#Cho he may khung, CPU va GPU tang doi lay video net hon
vo=gpu-next #Neu may khoe, card man hinh doi moi, tra gia bang CPU/GPU cao cho hinh anh dep
scale=ewa_lanczossharp
cscale=ewa_lanczossharp
#########
# Audio #
#########
#audio-file-auto=fuzzy # play external audio files with same name as video files
#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=100
########
# YTDL #
########
ytdl-format=bestvideo[container*=dash][height<=?2160]+bestaudio
ytdl-raw-options-append=no-check-certificates=
ytdl-raw-options-append=yes-playlist=
ytdl-raw-options-append=sub-langs=vi,vi-VN,vie,en,en-US,eng,live_chat
ytdl-raw-options-append=write-sub=
ytdl-raw-options-append=write-auto-sub=
ytdl-raw-options-append=add-metadata=
ytdl-raw-options-append=cookies-from-browser=firefox:C:\firefox-113.0.2\Profiles\default.default
ytdl-raw-options-append=mark-watched=