@
shadownet #22
给你参考
# Video
# Defaults for all profiles
profile=opengl-hq
tscale=linear
hwdec=videotoolbox
[high-quality]
profile-desc=cond:is_desktop() and get('width', math.huge) < 3840
scale=ewa_lanczossharp
cscale=ewa_lanczossoft
dscale=mitchell
scale-antiring=0.7
cscale-antiring=0.7
dither-depth=auto
correct-downscaling=yes
sigmoid-upscaling=yes
deband=yes
[mid-quality]
profile-desc=cond:(is_laptop() and not on_battery() and get('width', math.huge) < 1920) or (is_desktop() and get('width', math.huge) >= 3840)
scale=spline36
cscale=bilinear
dscale=mitchell
scale-antiring=1.0
cscale-antiring=1.0
dither-depth=auto
correct-downscaling=yes
sigmoid-upscaling=yes
deband=yes
[low-quality]
profile-desc=cond:is_laptop() and (on_battery() or get('width', math.huge) >= 1920)
scale=bilinear
cscale=bilinear
dscale=bilinear
scale-antiring=0.0
cscale-antiring=0.0
dither-depth=no
correct-downscaling=no
sigmoid-upscaling=no
deband=no
[60FPS]
profile-desc=cond:is_laptop() and get('container-fps', 0) >= 59
scale=bilinear
cscale=bilinear
[4K]
profile-desc=cond:get('width', -math.huge) >= 3840
vd-lavc-threads=32
[4K-inverted]
profile-desc=cond:get('width', -math.huge) < 3840
vd-lavc-threads=0
[default]
# force starting with centered window
geometry=50%:50%
# don't allow a new window to have a size larger than 90% of the screen size
autofit-larger=90%x90%
autofit-smaller=30%x30%
# OS X only. Black out other displays when going fullscreen
#fs-black-out-screens
# Volume
audio-file-auto=fuzzy # external audio doesn't has to match the file name exactly to autoload
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 # default volume, 100 = unchanged
# OSD
osd-bar-h=2.8
osd-border-size=2
osd-color='#CCFFFFFF'
osd-border-color='#99000000'
osd-duration=2000
osd-font='PingFangSC-Regular'
osd-font-size=28
# Screenshots file name
screenshot-template=~/Desktop/mpv-screenshot-%n
# Save the current playback position on quit and resume on next run.
save-position-on-quit
# load config file from file directory, useful for overriding ass styles for entire series
use-filedir-conf=yes
# Subtitles
sub-auto=fuzzy
sub-font-size=42
sub-font='PingFangSC-Regular'
# cache settings
#
# Use 8MB input cache by default. The cache is enabled for network streams only.
cache-default=71680
#
# Use 8MB input cache for everything, even local files.
cache=71680
#
# If a seek is issued, and the target is 1024KB past the cached range, then
# keep reading until the seek target is hit, instead of doing a real seek.
cache-seek-min=1024
#
# Read ahead about 5 seconds of audio and video packets.
demuxer-readahead-secs=5.0
# Languages
alang=en,eng,zh,cmn,chi,zho
slang=cmn,chi,zho,zh,eng,en
# Change subtitle encoding. For Chinese subtitles use 'gb2312'.
# If the file seems to be valid UTF-8, prefer UTF-8.
sub-codepage=utf8:gb2312