mpv.conf 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. # General settings {{{
  2. no-border
  3. osd-font='Nimbus Sans L'
  4. save-position-on-quit
  5. force-seekable
  6. write-filename-in-watch-later-config
  7. msg-module
  8. msg-color
  9. keep-open
  10. keepaspect
  11. cursor-autohide=500
  12. volume=100
  13. volume-max=100
  14. alang=ja,jp,jpn,en,eng,spa,es
  15. slang=ja,jp,jpn,en,eng,spa,es
  16. # }}}
  17. # Streaming {{{
  18. hls-bitrate=max
  19. ytdl-format=best
  20. # }}}
  21. # Cache {{{
  22. cache=yes
  23. cache-default=4000000
  24. cache-backbuffer=250000
  25. demuxer-max-bytes=1147483647
  26. # }}}
  27. # Audio {{{
  28. audio-file-auto=fuzzy
  29. audio-pitch-correction=yes
  30. # }}}
  31. # General Video {{{
  32. profile=gpu-hq
  33. gpu-context=auto
  34. spirv-compiler=auto
  35. vo=gpu
  36. # }}}
  37. # Dither {{{
  38. dither-depth=8 # Running my monitor at 10 bit breaks other things
  39. # }}}
  40. # Upscale {{{
  41. #gpu-api=opengl
  42. #fbo-format=rgba32f
  43. #glsl-shader="~/shaders/FSRCNNX_x2_16-0-4-1.glsl" # better, but uses more GPU
  44. #glsl-shader="~/git/mpv-prescalers/ravu-r4-yuv.hook"
  45. #scale=ewa_lanczos
  46. # vulkan
  47. #gpu-api=vulkan
  48. #fbo-format=rgba16hf
  49. #glsl-shader="~/git/mpv-prescalers/vulkan/ravu-r4-yuv.hook"
  50. # }}}
  51. # Downscale {{{
  52. dscale=mitchell
  53. # }}}
  54. # Chroma-scale {{{
  55. cscale=ewa_lanczos
  56. # }}}
  57. # Interpolation {{{
  58. blend-subtitles=video
  59. interpolation
  60. tscale=oversample
  61. video-sync=display-resample
  62. # }}}
  63. # Grain {{{
  64. # Adds static grain
  65. # glsl-shader="~~/shaders/noise/noise_static_luma.hook"
  66. # glsl-shader="~~/shaders/noise/noise_static_chroma.hook"
  67. # }}}
  68. # Deband {{{
  69. # Off by default to avoid losing detail in good sources
  70. deband=no
  71. deband-iterations=4
  72. deband-threshold=50
  73. deband-range=16
  74. deband-grain=0
  75. # }}}
  76. # Subtitles {{{
  77. sub-auto=fuzzy
  78. sub-fix-timing # remove gaps
  79. sub-ass-vsfilter-blur-compat # old sub compatibility
  80. stretch-dvd-subs
  81. demuxer-mkv-subtitle-preroll # display subs more reliably while seeking
  82. sub-filter-sdh
  83. sub-filter-sdh-harder
  84. sub-font="Arial"
  85. sub-font-size=50
  86. sub-color="#FAFAFA"
  87. sub-border-color="#FF262626"
  88. sub-border-size=3.0
  89. sub-shadow-offset=1.5
  90. sub-shadow-color="#3B0D0D0D"
  91. sub-spacing=0
  92. sub-ass-override=force
  93. # }}}
  94. # Screenshots {{{
  95. screenshot-format=png
  96. screenshot-png-compression=9
  97. screenshot-jpeg-source-chroma # if screenshot is jpeg, copy source subsampling ratio
  98. screenshot-png-filter=0
  99. screenshot-tag-colorspace
  100. screenshot-high-bit-depth
  101. screenshot-directory=~/Pictures/mpv-screenshots
  102. screenshot-template='%f_[%P]_%tY-%tm-%td_%tH-%tM-%tS_"%{sub-text}"' # adds subtitle text to file name
  103. # }}}
  104. # [horriblesubs]
  105. # profile-desc=cond:string.match(p.filename, "HorribleSubs")~=nil
  106. # deband=yes
  107. # [no_horriblesubs]
  108. # profile-desc=cond:string.match(p.filename, "HorribleSubs")==nil
  109. # deband=no
  110. # [erai]
  111. # profile-desc=cond:string.match(p.filename, "Erai%-raws")~=nil
  112. # deband=yes
  113. # [no_erai]
  114. # profile-desc=cond:string.match(p.filename, "Erai%-raws")==nil
  115. # deband=no
  116. # [kyoani_fog]
  117. # profile-desc=cond:string.match(p.filename, "Evergarden")~=nil
  118. # glsl-shaders-append="~~/shaders/anti_kyoani_fog.glsl"
  119. # vi:syntax=config