changed cscale and better comments and organization for mpv.conf

This commit is contained in:
gaitas13 2023-10-16 20:49:45 +02:00
parent d1366d5a08
commit 34e000e01a

View file

@ -1,23 +1,21 @@
#VIDEO #VIDEO
#Mitchell-Netravali. The B and C parameters can be set with --scale-param1 and
#--scale-param2. This filter is very good at downscaling (see --dscale).
#catmull_rom uses less resources than lanczos #catmull_rom uses less resources than lanczos and ewa_lanczossharp.
#spline36 is kinda bad, for upscaling you should use bicubic catrom for preserving spatial proerties #spline36 is kinda bad, for upscaling you should use bicubic catrom for preserving spatial proerties
#or a lanczos scaler (like ewa_lanczos or ewa_lanczossharp) for sharpness #or a lanczos scaler (like ewa_lanczos or ewa_lanczossharp) for sharpness.
#mitchell = bicubic b 1/3 c 1/3, can be tuned with scale-param1 and scale-param2
#catmull_rom = bicubic b 0 c 0.5 #catmull_rom = bicubic b 0 c 0.5
#mitchell = bicubic b 1/3 c 1/3
#hermite = bicubic b 0 c 0 #hermite = bicubic b 0 c 0
scale=catmull_rom scale=catmull_rom
#--dscale=<filter> #dscale, like scale, but for downscaling,
#Like --scale, but apply these filters on downscaling instead. #it defaults to scale if unset
#If this option is unset, the filter implied by --scale will be applied.
#due to how negative lobes work, mitchell and hermite perform much better for downscaling (less ringing and aliasing) #Due to not having a negative lobe, mitchell and hermite are
#much better for downscaling (less ringing and aliasing).
#hermite is sharper than mitchell #hermite is sharper than mitchell
#https://github.com/mpv-player/mpv/pull/12384#issuecomment-1716775594 #https://github.com/mpv-player/mpv/pull/12384#issuecomment-1716775594
#https://github.com/mpv-player/mpv/pull/12384#issuecomment-1716855374 #https://github.com/mpv-player/mpv/pull/12384#issuecomment-1716855374
@ -25,29 +23,25 @@ scale=catmull_rom
dscale=hermite dscale=hermite
#catmull_rom, sinc(blackman), ewa_hanning #'catmull_rom', 'sinc(blackman)', 'lanczos', 'ewa_hanning', 'ewa_lanczossharp'
#For a traditional scaler, is better to use sinc, but it has random performance spikes and #For a traditional scaler, is better to use sinc, but it has more resource usage than catmull_rom.
#more resource usage than catmull_rom
cscale=sinc cscale=sinc
cscale-window=blackman #for sinc cscale-window=blackman #for sinc
cscale-radius=3 #for sinc cscale-radius=3 #for sinc
#https://github.com/mpv-player/mpv/issues/12163
#you can also use 'FastBilateral', 'JointBilateral', 'MemeBilateral' or KrigBilateral #you can also use 'FastBilateral', 'JointBilateral', 'MemeBilateral' or KrigBilateral
#(less to more quality and performance) meme shaders for better chroma #meme shaders if you trust them.
#FastBilateral and JointBilateral may have staircase artifacts #Fast and Joint may have staircase artifacts.
#MemeBilateral is JointBilateral with + CfL (Chroma from Luma prediction), so you can also use FastBilateral and CfL together for better performance #Meme is Joint with + CfL (Chroma from Luma prediction), so you can instead use Fast and CfL
glsl-shader="~~/shaders/FastBilateral.glsl" #together for better performance.
#glsl-shader="~~/shaders/CfL_Prediction.glsl" #glsl-shader="~~/shaders/FastBilateral.glsl"
#glsl-shader="~~/shaders/CfL_Prediction.glsl" #CfL has big accuracy issues
#there are memes about bilinear cscale being the true way the encoder and encoding software #There are memes about bilinear cscale being the true way the encoder and encoding software
#intended the chroma to be watched, if you believe them or not is up to you #intended the chroma to be watched, if you believe them or not is up to you.
#cscale=bilinear
#you can use sphinx (smoother) or oversample (less blurry), not a fan of them
#tscale=sphinx
#tscale-blur=0.6991556596428412 #magic haasn number for sphinx
# AUDIO # AUDIO
@ -55,47 +49,45 @@ glsl-shader="~~/shaders/FastBilateral.glsl"
#audio-device=alsa/default #audio-device=alsa/default
#Audio output drivers are interfaces to different audio output facilities. #Audio output drivers
ao=pipewire,coreauido,pulse,wasapi, ao=pipewire,coreauido,pulse,wasapi,
#Load external audio with (almost) the same name as the video
audio-file-auto=fuzzy
volume=100 volume=100
volume-max=200 volume-max=200
# Do not filter audio to keep pitch when changing playback speed. # enabling it will keep the pitch when changing speed
#audio-pitch-correction=no #audio-pitch-correction=no
# Output 5.1 audio natively, and upmix/downmix audio with a different format. # the audio will upmix and downmix to channel config, for example
#audio-channels=5.1 # 'stereo' for 2.0 and 5.1 for 5.1, 'auto' will try to avoid up/downmixing
# Output 2.0 audio natively, and upmix/downmix audio with a different format. # default is 'auto-safe'.
audio-channels=stereo audio-channels=stereo
# Disable any automatic remix, _if_ the audio output accepts the audio format.
# of the currently played file. See caveats mentioned in the manpage.
# (The default is "auto-safe", see manpage.)
#audio-channels=auto
#raw bitperfect audio, but you can only hear mpv #raw bitperfect audio, but you can only hear mpv
audio-exclusive=no audio-exclusive=no
# OTHER # OTHER
#Load external audio with (almost) the same name as the video.
audio-file-auto=fuzzy
sub-auto=fuzzy sub-auto=fuzzy
#user-agent="Mozilla/5.0" #user-agent="Mozilla/5.0"
#Tries to load subtitles in these languages, if one is not available
# Display English subtitles if available. #it falls back to the next one.
slang=en slang=en
# Play Finnish audio if available, fall back to English otherwise. #same for audio
#alang=fi,en #alang=ja,en
# Change subtitle encoding. For Arabic subtitles use 'cp1256'. #Changes subtitle encoding, if the file is valid utf8 it prefers it,
# If the file seems to be valid UTF-8, prefer UTF-8. #add '+' in front of codepage '+utf8' to force it.
# (You can add '+' in front of the codepage to force it.) #sub-codepage=utf8
#sub-codepage=cp1256
# You can also include other configuration files. # You can also include other configuration files.
#include=/path/to/the/file/you/want/to/include #include=/path/to/the/file/you/want/to/include
@ -124,13 +116,16 @@ screenshot-png-filter=0
# HDR TONE MAPPING # HDR TONE MAPPING
dither=fruit #https://github.com/mpv-player/mpv/pull/6564#issuecomment-473522461
#https://doodad.dev/dither-me-this/
dither-depth=8 dither-depth=8
dither=fruit
#dither-size-fruit=8 #dither-size-fruit=8
#common primaries for modern displays are 'bt.709' (sRGB), 'bt.2020', 'apple' (Apple RGB), 'adobe' (Adobe RGB), 'dci-p3'
#common primaries for modern displays are 'bt.709' (sRGB), 'bt.2020', 'apple' (Apple RGB), 'adobe' (Adobe RGB) and 'dci-p3'
target-prim=bt.709 target-prim=bt.709
# transfer characteristics (gamma), you can leave it on 'auto', you can also use 'bt.1886', 'srgb', 'linear', 'pq' or another option # transfer characteristics (gamma), you can leave it on 'auto', you can also use 'bt.1886', 'srgb', 'linear', 'pq' or another option
@ -143,22 +138,21 @@ hdr-compute-peak=yes
allow-delayed-peak-detect=yes #better performance allow-delayed-peak-detect=yes #better performance
tone-mapping=bt.2390
#tone-mapping-param=1.5 #You can use 'spline' (probably better), 'bt.2390', 'bt.2446a' or leave it on 'auto'.
tone-mapping=spline
#tone-mapping-param=1.5 #For bt.2390, mpv default 1.0 and some like 1.5, for spline default is 0.3
hdr-peak-percentile=100 #better leave it at 100 hdr-peak-percentile=100 #better leave it at 100
#tone-mapping-mode=hybrid #deprecated https://github.com/mpv-player/mpv/commit/b4c98cb04c87999eccd061cc59e6f5f8fa706220 #tone-mapping-mode=hybrid #deprecated https://github.com/mpv-player/mpv/commit/b4c98cb04c87999eccd061cc59e6f5f8fa706220
gamut-mapping-mode=darken gamut-mapping-mode=perceptual
icc-intent=0 icc-intent=0
#blend-subtitles=yes #blend-subtitles=yes
#tone-mapping=bt.2446a
@ -171,37 +165,47 @@ deband=no
# HARDWARE DECODING # HARDWARE DECODING
#gpu has better performance but gpu-next has better hdr.
#vo=gpu
vo=gpu-next
#on windows be careful of using dxva2, d3d11va is better.
hwdec=auto-safe
#hwdec=auto-copy-safe #enables copyback
#hwdec=vulkan
#vulkan uses more resources,but has better hdr compatibility #vulkan uses more resources,but has better hdr compatibility
#if you use d3d11va-copy without opengl or vulkan, it may lead to video/audio desync
#gpu-api=opengl # Uncomment this if you notice stuttering with vulkan, opengl may cause screen tearing depending of your config #gpu-api=opengl # Uncomment this if you notice stuttering with vulkan, opengl may cause screen tearing depending of your config
#gpu-api=vulkan # Comment this if you notice stuttering and uncomment the above line #gpu-api=vulkan # Comment this if you notice stuttering and uncomment the above line
vulkan-device='Intel(R) UHD Graphics 620'
#vulkan-device='NVIDIA GeForce MX110'
#gpu-context=winvk #gpu-context=winvk
vulkan-async-compute=yes vulkan-async-compute=yes
vulkan-async-transfer=yes vulkan-async-transfer=yes
vulkan-queue-count=1 vulkan-queue-count=1
vulkan-device='Intel(R) UHD Graphics 620'
#vulkan-device='NVIDIA GeForce MX110'
#opengl-waitvsync=yes #opengl-waitvsync=yes
vd-lavc-dr=yes #i think this solves screen tearing when using gpu-api=opengl vd-lavc-dr=yes
spirv-compiler=auto spirv-compiler=auto
hwdec=auto-safe
#hwdec=auto-copy-safe
#hwdec=vaapi # TEMPORAL INTERPOLATION (BETWEEN FRAMES)
#hwdec=vulkan
#hwdec=d3d11va-copy #windows only, auto-copy uses dxva2-copy instead of d3d11va-copy, but d3d11va-copy is better and has better color
#hwdec=vaapi-copy
#interpolation=yes #interpolation=yes
#interpolation-threshold=-1 #interpolation-threshold=-1
#video-sync=display-resample #video-sync=display-resample #can help with interpolation
#for tscale you can use 'sphinx' (smoother) or 'oversample' (less blurry)
#tscale=sphinx
#tscale-blur=0.6991556596428412 #magic haasn number for sphinx
video-sync=audio #fix desync on d3d11va-copy when not using gpu-api = opengl or vulkan video-sync=audio #fix desync on d3d11va-copy when not using gpu-api = opengl or vulkan
#gpu has better performance but gpu-next has better hdr
#vo=gpu
vo=gpu-next