# written by fennek182
# version 2
# last change: Thu 2026-06-11

input-ipc-server=/tmp/mpvsocket
hr-seek-framedrop=no
hwdec=auto-copy
hwdec-codecs=all
resume-playback=no
volume-max=200
cache=yes
cache=auto
keep-open
ytdl-format=bestvideo+bestaudio/best

# set max cache size to 20 Gigabytes
demuxer-max-bytes=21474836480

# open window immediately (not waiting for yt-dlp)
force-window=immediate

# # for stupid fucking braindead audbile drm bs
demuxer-lavf-o=activation_bytes=162dfd19

# Can fix stuttering in some cases, in other cases probably causes it. Try it if you experience stuttering.
# opengl-early-flush=yes

# if using mpv_thumbnail_script
# https://github.com/TheAMM/mpv_thumbnail_script
# then mpv's built-in osc must be disabled
# osc=no


# ----------- old - delete

# use yt-dlp instead of youtube-dl since it's slow now (Oct 21)
# script-opts=ytdl_hook-ytdl_path=/usr/bin/yt-dlp

# catppuccin colors:
# Main mpv options
# osd-color='#cdd6f4'
# osd-shadow-color='#1e1e2e'

# ; # Stats script options
# ; # Options are on separate lines for clarity
# ; # Colors are in #BBGGRR format
# ; script-opts-append=stats-border_color=251818
# ; script-opts-append=stats-font_color=f4d6cd
# ; script-opts-append=stats-plot_bg_border_color=d5e294
# ; script-opts-append=stats-plot_bg_color=251818
# ; script-opts-append=stats-plot_color=d5e294
# ;
# ; # External script options
# ; # It is fine to leave these here even if one does not use these scripts because they are just ignored unless a script uses them
# ;
# ; # UOSC options
# ; script-opts-append=uosc-color=foreground=94e2d5,foreground_text=313244,background=1e1e2e,background_text=cdd6f4,curtain=181825,success=a6e3a1,error=f38ba8
