mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2025-12-05 02:53:38 -08:00
205 lines
5.0 KiB
Plaintext
205 lines
5.0 KiB
Plaintext
user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
|
|
|
|
glsl-shaders=""
|
|
scale=spline36 # Fast, high-quality fallback
|
|
dither=fruit # Lightweight dithering
|
|
|
|
# Window & interface
|
|
ontop=yes
|
|
border=no
|
|
no-border
|
|
autofit=50% # Reasonable default size
|
|
|
|
# Audio (macOS-specific)
|
|
volume=75
|
|
ao=coreaudio # Native macOS audio
|
|
audio-stream-silence=no # FIXED: Prevents player behavior issues
|
|
audio-wait-open=0.1 # Faster audio startup
|
|
|
|
# Subtitle defaults
|
|
sub-font="JetBrainsMono Nerd Font"
|
|
sub-font-size=45
|
|
sub-auto=fuzzy
|
|
slang=en,eng
|
|
subs-with-matching-audio=no
|
|
sub-fix-timing=yes
|
|
sub-ass-override=scale
|
|
sub-gauss=1.0
|
|
sub-gray=yes
|
|
|
|
# Networking & streaming
|
|
ytdl-format=bestvideo+bestaudio/best
|
|
ytdl-raw-options=sub-langs=en.*,write-auto-subs=
|
|
ytdl-raw-options-append=sponsorblock-mark=all
|
|
ytdl-raw-options-append=sponsorblock-remove=sponsor,selfpromo,interaction
|
|
|
|
# Stats & UI colors (Catppuccin Macchiato)
|
|
background-color='#24273a'
|
|
osd-back-color='#181926'
|
|
osd-border-color='#181926'
|
|
osd-color='#cad3f5'
|
|
osd-shadow-color='#24273a'
|
|
script-opts-append=stats-border_color=30201e
|
|
script-opts-append=stats-font_color=f5d3ca
|
|
script-opts-append=stats-plot_bg_border_color=f8bdb7
|
|
script-opts-append=stats-plot_bg_color=30201e
|
|
script-opts-append=stats-plot_color=f8bdb7
|
|
|
|
##################
|
|
# Video/Graphics #
|
|
##################
|
|
|
|
vo=gpu-next
|
|
hwdec=videotoolbox # macOS hardware decoding
|
|
hwdec-codecs=all
|
|
gpu-api=vulkan
|
|
gpu-context=macvk # macOS-specific Vulkan context
|
|
|
|
# Vulkan optimizations (prevents crashes and memory leaks)
|
|
vulkan-queue-count=1 # FIXED: Prevents buffer overflow
|
|
vulkan-async-compute=no # FIXED: Improves stability
|
|
vulkan-async-transfer=no # FIXED: Reduces memory pressure
|
|
vulkan-swap-mode=fifo # Most compatible presentation mode
|
|
fbo-format=rgba8 # FIXED: Memory-safe format
|
|
|
|
# Video filtering & quality
|
|
vd-lavc-film-grain=cpu # FIXED: GPU grain not supported on macOS
|
|
vd-lavc-threads=0
|
|
vd-lavc-dr=yes # Keep frames on GPU
|
|
video-sync=display-resample # Smooth playback
|
|
|
|
# Scaling & interpolation
|
|
scale=ewa_lanczossharp
|
|
dscale=catmull_rom
|
|
cscale=ewa_lanczos
|
|
tscale=oversample
|
|
interpolation=yes
|
|
interpolation-threshold=0.5
|
|
sigmoid-upscaling=yes
|
|
temporal-dither=yes
|
|
|
|
# High-quality dithering
|
|
dither=error-diffusion
|
|
dither-depth=auto
|
|
error-diffusion=sierra-lite
|
|
|
|
# Antiring
|
|
scale-antiring=0.5
|
|
dscale-antiring=0.5
|
|
cscale-antiring=0.5
|
|
|
|
# Post-processing
|
|
deband=yes
|
|
deband-iterations=2
|
|
deband-threshold=24
|
|
deband-range=16
|
|
deband-grain=4
|
|
|
|
##################
|
|
# Screenshot #
|
|
##################
|
|
|
|
screenshot-format=webp
|
|
screenshot-webp-lossless=yes
|
|
screenshot-high-bit-depth=yes
|
|
screenshot-sw=no
|
|
screenshot-directory="/Volumes/sudacode/pictures/mpv"
|
|
screenshot-template="%f-%wH.%wM.%wS.%wT-#%#00n"
|
|
|
|
##################
|
|
# Session #
|
|
##################
|
|
|
|
save-position-on-quit
|
|
watch-later-dir="~~/.watch-later"
|
|
resume-playback=yes
|
|
save-watch-history
|
|
watch-history-path="~~/state/watch_history.jsonl"
|
|
input-ipc-server=/tmp/mpvsocket
|
|
|
|
##################
|
|
# Caching #
|
|
##################
|
|
|
|
cache=yes
|
|
demuxer-max-bytes=1GiB
|
|
demuxer-max-back-bytes=200MiB
|
|
cache-pause=no
|
|
cache-secs=30
|
|
demuxer-readahead-secs=30
|
|
|
|
############
|
|
# Profiles #
|
|
############
|
|
|
|
# Base high-quality preset (inherits above settings)
|
|
[base]
|
|
profile=gpu-hq
|
|
|
|
# Anime profile (ArtCNN is memory-heavy, use cautiously)
|
|
[anime]
|
|
profile-desc="Anime upscaling with ArtCNN"
|
|
profile-cond=filename:match("mkv$") and height <= 1080
|
|
glsl-shaders="~~/shaders/ArtCNN_C4F16.glsl" # Use F16 variant (lighter)
|
|
scale=ewa_lanczossharp
|
|
deband=yes
|
|
|
|
# Movies profile (no shaders, HDR support)
|
|
[movies]
|
|
profile-desc="Movies and TV shows"
|
|
profile-cond=width >= 1920 and filename:match("mkv$|mp4$")
|
|
glsl-shaders=""
|
|
scale=ewa_lanczos
|
|
target-peak=800
|
|
hdr-tone-mapping=bt.2390
|
|
|
|
# HDR profile
|
|
[hdr]
|
|
target-colorspace-hint=yes
|
|
tone-mapping-param=0.5
|
|
tone-mapping-max-boost=2.0
|
|
allow-delayed-peak-detect=yes
|
|
icc-profile-auto=yes
|
|
|
|
# SVP compatibility profile
|
|
[svp]
|
|
interpolation=no
|
|
input-ipc-server=/tmp/mpvsocket
|
|
hr-seek-framedrop=no
|
|
resume-playback=no
|
|
|
|
# Idle profile
|
|
[Idle]
|
|
profile-cond=p["idle-active"]
|
|
profile-restore=copy-equal
|
|
title=' '
|
|
keepaspect=no
|
|
|
|
# Japanese immersion profile
|
|
[immersion]
|
|
cookies=yes
|
|
cookies-file=/Volumes/sudacode/japanese/cookies.Japanese.txt
|
|
ytdl-raw-options=mark-watched=,write-auto-subs=,sub-langs=ja.*
|
|
ytdl-raw-options-append=cookies=/Volumes/sudacode/japanese/cookies.Japanese.txt
|
|
ytdl-raw-options-append=sponsorblock-mark=all
|
|
ytdl-raw-options-append=sponsorblock-remove=sponsor
|
|
ytdl-format=bestvideo+bestaudio/best
|
|
sub-auto=fuzzy
|
|
slang=ja,jpn,ja.hi,ja.*
|
|
alang=ja,jpn
|
|
vlang=ja,jpn
|
|
sub-font="Noto Sans CJK JP"
|
|
sub-font-size=42
|
|
sub-border-size=1.2
|
|
sub-shadow-color=0.0/0.0/0.0/0.6
|
|
sub-shadow-offset=3
|
|
|
|
# Anime subtitles profile
|
|
[anime-subs]
|
|
profile-cond=p["slang"] == "ja" or p["slang"] == "ja.hi"
|
|
sub-font="Noto Sans CJK JP"
|
|
sub-font-size=42
|
|
sub-border-size=1.2
|
|
sub-shadow-color=0.0/0.0/0.0/0.6
|
|
sub-shadow-offset=3
|