Skip to content

Instantly share code, notes, and snippets.

@jnozsc
Last active June 26, 2023 04:03
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnozsc/99f62fd24b501ef78e8f to your computer and use it in GitHub Desktop.
Save jnozsc/99f62fd24b501ef78e8f to your computer and use it in GitHub Desktop.
mpv.conf
# place this file in ~/.mpv/
# gpu high profile with even more quality scalers
profile=gpu-hq
scale=ewa_lanczossharp
cscale=ewa_lanczossharp
dscale=mitchell
# color
icc-profile-auto
# motion smooth
video-sync=display-resample
interpolation=yes
tscale=box
tscale-window=quadric
tscale-clamp=0.0
tscale-radius=1.025
# osc use box
script-opts=osc-layout=box
# autocrop
# script-opts-append=autocrop-auto=yes
# autocrop-auto=yes
# subtitle name fuzzy matching
sub-auto=fuzzy
# use utf-8 and chinese as default charset
sub-codepage=utf8:gb18030
# use Noto Sans CJK SC as the mpv and subtitle's font family
osd-font='Noto Sans CJK SC'
sub-font='Noto Sans CJK SC'
# If the video is larger than 90% of the screen width or 80% of the screen height, make the window smaller until either its width is 90% of the screen, or its height is 80% of the screen.
autofit-larger=90%x80%
# HEVC hardware decoder
hwdec=auto
# try to fix retina scale
hidpi-window-scale=yes
# Deactivates the automatic graphics switching and forces the dedicated GPU.
macos-force-dedicated-gpu=yes
# hdr, well not work
#target-peak=450
#tone-mapping=mobius
@xudefilm
Copy link

看起来很靠谱的样子,用用看。

Copy link

ghost commented Jun 25, 2023

Does HDR work now?

@xudefilm
Copy link

xudefilm commented Jun 26, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment