Guest User

MPV Conf

a guest
Oct 3rd, 2020
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.88 KB | None | 0 0
  1. #MPV conf, need SVP4 pro running disabled in background#
  2. #HW spec: i7 6700K, 16gb ram, GTX 980#
  3. #2020 10 03#
  4. # General #
  5.  
  6. priority=high
  7. load-stats-overlay=yes # use local stats.lua
  8. saturation=-12
  9. contrast=15
  10. input-ar-delay = 500
  11. input-ar-rate = 20
  12. window-scale=0.5
  13. osc=no
  14. cursor-autohide=250
  15. keep-open=yes
  16. save-position-on-quit=yes
  17. osd-bar=no
  18. log-file="mpv log.txt"
  19. msg-color=yes # Colors!
  20. correct-pts=yes
  21. deinterlace=no # global reset of deinterlacing to off
  22. geometry=50%:50%
  23.  
  24. # Misc #
  25.  
  26. border=yes # hide the window title bar
  27. msg-color=yes # color log messages on terminal
  28. term-osd-bar=yes # display a progress bar on the terminal
  29. no-hidpi-window-scale # used on 5K iMac to prevent OSX scaling
  30. force-window=immediate
  31. deinterlace=no # global reset of deinterlacing to off
  32. fullscreen = no# start in fullscreen mode by default
  33.  
  34. # Cache #
  35.  
  36. cache=yes
  37. cache-default=2000000 # size in KB
  38. cache-backbuffer=250000 # size in KB
  39. demuxer-seekable-cache=yes
  40. demuxer-max-bytes=1147483647 # ~1 GiB in bytes
  41. demuxer-max-back-bytes=1147483647
  42.  
  43. # OSD / OSC #
  44.  
  45. osd-level=1 # enable osd and display --osd-status-msg on interaction
  46. osd-duration=2500 # hide the osd after x ms
  47. osd-status-msg='${time-pos} / ${duration}${?percent-pos: (${percent-pos}%)}${?frame-drop-count:${!frame-drop-count==0: Dropped: ${frame-drop-count}}}\n${?chapter:Chapter: ${chapter}}'
  48. osd-font='Source Sans Pro'
  49. osd-font-size=32
  50. osd-color='#CCFFFFFF' # ARGB format
  51. osd-border-color='#DD322640' # ARGB format
  52. #osd-shadow-offset=1 # pixel width for osd text and progress bar
  53. osd-bar-align-y=0 # progress bar y alignment (-1 top, 0 centered, 1 bottom)
  54. osd-border-size=2 # size for osd text and progress bar
  55. osd-bar-h=2 # height of osd bar as a fractional percentage of your screen height
  56. osd-bar-w=60 # width of " " "
  57.  
  58. # Subtitles #
  59.  
  60. sub-auto=fuzzy # external subs don't have to match the file name exactly to autoload
  61. sub-file-paths=ass:srt:sub:subs:subtitles # search for external subs in the listed subdirectories
  62. demuxer-mkv-subtitle-preroll # try to correctly show embedded subs when seeking
  63. embeddedfonts=yes # use embedded fonts for SSA/ASS subs
  64. sub-fix-timing=no # do not try to fix gaps (which might make it worse in some cases)
  65. sub-ass-force-style=Kerning=yes # allows you to override style parameters of ASS scripts
  66. sub-use-margins
  67. sub-ass-force-margins
  68.  
  69. # the following options only apply to subtitles without own styling (i.e. not ASS but e.g. SRT)
  70.  
  71. sub-font="Source Sans Pro Semibold"
  72. sub-font-size=36
  73. sub-margin-x = 100
  74. sub-margin-y = 2
  75. sub-color="#FFFFFFFF"
  76. sub-border-color="#FF262626"
  77. sub-border-size=3.2
  78. sub-shadow-offset=1
  79. sub-shadow-color="#33000000"
  80. sub-spacing=0.5
  81.  
  82. # language priority #
  83.  
  84. alang=ja,jp,jpn,en,eng
  85. slang =enm,en,eng,sv,se,swe
  86.  
  87. # Audio #
  88. ao=wasapi
  89. #audio-device=wasapi/Speakers (DFX Audio Enhancer)
  90. audio-delay=0.04
  91. #audio-channels=auto-safe
  92. volume=50
  93. volume-max=200
  94. #audio-file-auto=fuzzy
  95. ad=lavc:libdcadec
  96. autosync=30
  97. audio-exclusive=no
  98. audio-samplerate=48000
  99. audio-format=s32
  100. audio-channels=5.1
  101. audio-pitch-correction=no
  102.  
  103. #af=lavfi=[dynaudnorm=g=5:f=250:r=0.9:p=0.5]
  104. #af=lavfi=[loudnorm=I=-16:TP=-3:LRA=4]
  105. #af=lavfi=[dynaudnorm=f=75:g=25:p=0.55]
  106. #af=lavfi=[dynaudnorm=g=5:f=250:r=0.9:p=0.5]
  107. #af=lavfi=[dynaudnorm=f=75:g=11:s=12]
  108.  
  109. # Video Output #
  110.  
  111. profile=gpu-hq
  112. vo=gpu
  113. gpu-api=vulkan
  114. gpu-context=winvk
  115. spirv-compiler=auto
  116. vulkan-async-compute=yes
  117. vulkan-async-transfer=yes
  118. vulkan-queue-count=1
  119. vd-lavc-dr=yes
  120. vd-lavc-fast=yes
  121. vd-lavc-threads=6
  122. ad-lavc-threads=0
  123. icc-profile-auto=yes
  124. icc-3dlut-size=64x64x64 # The default is 64x64x64. Will delay mpv startup slightly
  125. gamma-auto=yes
  126.  
  127. # Colorspace #
  128.  
  129. #see https://github.com/mpv-player/mpv/wiki/Video-output---shader-stage-diagram
  130. target-prim=auto
  131. target-trc=auto
  132. vf=format=colorlevels=full:colormatrix=auto
  133. #colormatrix-input-range=full:colormatrix-output-range=full
  134. video-output-levels=full
  135.  
  136. # Dither #
  137.  
  138. dither-depth=auto
  139. dither=fruit
  140. error-diffusion=sierra-lite
  141.  
  142. # Debanding #
  143.  
  144. deband=yes # enabled by default but disabled for 4K videos, below
  145. deband-iterations=2 # deband steps
  146. deband-range=16 # deband range
  147. deband-threshold=20 # deband strength
  148. deband-grain=0 # dynamic grain: set to "0" if using the static grain shader
  149.  
  150. # Motion Interpolation #
  151.  
  152. interpolation=yes
  153. tscale=box
  154. tscale-window=sphinx
  155. tscale-radius=1.05
  156. tscale-clamp=0.0
  157. video-sync=display-resample
  158. video-sync-max-video-change=5
  159. blend-subtitles=yes
  160. hr-seek-framedrop=no
  161. resume-playback=no
  162. #input-ipc-server=mpvpipe
  163. vf=@SVP:vapoursynth="~~/vs_svp.py":buffered-frames=8:concurrent-frames=16
  164. #vf=format=yuv420p,vapoursynth="~~/motioninterpolation.vpy":32:32
  165.  
  166. # Upscaling & Processing Based on Source Video's Resolution #
  167.  
  168. fbo-format=rgba16hf # use with gpu-api=vulkan
  169. glsl-shaders-clr
  170. glsl-shaders="C:\Program Files (x86)\mpv_with_svp\portable_config\shaders\noise_static_luma.hook"
  171. glsl-shaders-append="C:\Program Files (x86)\mpv_with_svp\portable_config\shaders\noise_static_chroma.hook"
  172. glsl-shaders-append="C:\Program Files (x86)\mpv_with_svp\portable_config\shaders\SSimSuperRes.glsl"
  173. #luma upscaling
  174. glsl-shaders-append="C:\Program Files (x86)\mpv_with_svp\portable_config\shaders\FSRCNNX_x2_16-0-4-1.glsl" # 3x slower than 8-0-4-1 & only modest improvement
  175. scale=ewa_lanczos
  176. #luma downscaling
  177. glsl-shaders-append="C:\Program Files (x86)\mpv_with_svp\portable_config\shaders\SSimDownscaler.glsl"
  178. dscale=mitchell
  179. linear-downscaling=no
  180. #chroma upscaling and downscaling
  181. glsl-shaders-append="C:\Program Files (x86)\mpv_with_svp\portable_config\shaders\KrigBilateral.glsl"
  182. cscale=mitchell
  183. glsl-shaders-append="C:\Program Files (x86)\mpv_with_svp\portable_config\shaders\adaptive-sharpen.glsl"
  184. sigmoid-upscaling=no
  185.  
  186. # Anti-Ringing #
  187.  
  188. scale-antiring=0.7 # luma upscale deringing
  189. dscale-antiring=0.7 # luma downscale deringing
  190. cscale-antiring=0.7 # chroma upscale deringing
  191.  
  192. hwdec=nvdec-copy
  193. hwdec-codecs=all
  194.  
  195. # 4K videos
  196. #[4K30] # low fps: use SSIM to downscale
  197. #profile-desc=cond:get('width', -math.huge) >= 1921
  198. #gpu-api=auto
  199. #hwdec=auto-copy
  200. #vo=gpu
  201. #gpu-context=d3d11
  202. #hwdec-codecs=all
  203. #glsl-shaders-clr
  204. #fbo-format=rgba16hf
  205. #scale=bilinear
  206. #cscale=bilinear
  207. #dscale=bilinear
  208. #scale-antiring=0.0 # 1.0
  209. #cscale-antiring=0.0 # 1.0
  210. #dither-depth=no
  211. #correct-downscaling=no
  212. #sigmoid-upscaling=no
  213. #deband=no
  214. #fullscreen=no
  215.  
  216. ##BenchmarkTest##
  217. #--profile=bench
  218. #[bench]
  219. #audio=no
  220. #untimed=yes
  221. #video-sync=display-desync
  222. #vulkan-swap-mode=mailbox
  223. #opengl-swapinterval=0
  224. #osd-msg1="FPS: ${estimated-display-fps}"
Add Comment
Please, Sign In to add comment