mpv.conf 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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-api=opengl
  34. gpu-context=auto
  35. spirv-compiler=nvidia
  36. vo=gpu
  37. # }}}
  38. # Dither {{{
  39. dither-depth=8 # Running my monitor at 10 bit breaks other things
  40. # }}}
  41. # Upscale {{{
  42. fbo-format=rgba32f
  43. #glsl-shader="~~/shaders/FSRCNNX/FSRCNNX_x2_r1_16-0-4-1.glsl" # better, but uses more GPU
  44. glsl-shader="/usr/share/mpv-prescalers/ravu-r4-chroma-center.hook" # for 4:2:0 sources, will upscale chroma using luma as a guide
  45. glsl-shader="/usr/share/mpv-prescalers/ravu-r4-yuv.hook"
  46. scale=ewa_lanczos
  47. # vulkan
  48. #gpu-api=vulkan
  49. #fbo-format=rgba16hf
  50. #glsl-shader="/usr/share/mpv-prescalers/vulkan/ravu-r4-yuv.hook"
  51. # }}}
  52. # Downscale {{{
  53. dscale=mitchell
  54. # }}}
  55. # Chroma-scale {{{
  56. cscale=ewa_lanczos
  57. # }}}
  58. # Interpolation {{{
  59. blend-subtitles=video
  60. interpolation
  61. tscale=oversample
  62. video-sync=display-resample
  63. # }}}
  64. # Grain {{{
  65. # Adds static grain
  66. # glsl-shader="~~/shaders/noise/noise_static_luma.hook"
  67. # glsl-shader="~~/shaders/noise/noise_static_chroma.hook"
  68. # }}}
  69. # Deband {{{
  70. # Off by default to avoid losing detail in good sources
  71. deband=no
  72. deband-iterations=4
  73. deband-threshold=50
  74. deband-range=16
  75. deband-grain=0
  76. # }}}
  77. # Subtitles {{{
  78. sub-auto=fuzzy
  79. sub-fix-timing # remove gaps
  80. sub-ass-vsfilter-blur-compat # old sub compatibility
  81. stretch-dvd-subs
  82. demuxer-mkv-subtitle-preroll # display subs more reliably while seeking
  83. sub-filter-sdh
  84. sub-filter-sdh-harder
  85. sub-font="Arial"
  86. sub-font-size=50
  87. sub-color="#FAFAFA"
  88. sub-border-color="#FF262626"
  89. sub-border-size=3.0
  90. sub-shadow-offset=1.5
  91. sub-shadow-color="#3B0D0D0D"
  92. sub-spacing=0
  93. sub-ass-override=force
  94. # }}}
  95. # Screenshots {{{
  96. screenshot-format=png
  97. screenshot-png-compression=9
  98. screenshot-jpeg-source-chroma # if screenshot is jpeg, copy source subsampling ratio
  99. screenshot-png-filter=0
  100. screenshot-tag-colorspace
  101. screenshot-high-bit-depth
  102. screenshot-directory=~/mpv-screenshots
  103. screenshot-template='%f_[%P]_%tY-%tm-%td_%tH-%tM-%tS_"%{sub-text}"' # adds subtitle text to file name
  104. # }}}
  105. # [horriblesubs]
  106. # profile-desc=cond:string.match(p.filename, "HorribleSubs")~=nil
  107. # deband=yes
  108. # [no_horriblesubs]
  109. # profile-desc=cond:string.match(p.filename, "HorribleSubs")==nil
  110. # deband=no
  111. # [erai]
  112. # profile-desc=cond:string.match(p.filename, "Erai%-raws")~=nil
  113. # deband=yes
  114. # [no_erai]
  115. # profile-desc=cond:string.match(p.filename, "Erai%-raws")==nil
  116. # deband=no
  117. # [kyoani_fog]
  118. # profile-desc=cond:string.match(p.filename, "Evergarden")~=nil
  119. # glsl-shaders-append="~~/shaders/anti_kyoani_fog.glsl"
  120. # vi:syntax=config