Guest User

mpv.conf

a guest
Oct 25th, 2020
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.46 KB | None | 0 0
  1. #ytdl-format="bestvideo[ext=mp4][height<=?1080]+bestaudio[ext=m4a]"
  2. #ytdl-format="bestvideo[ext=mp4][height<=?720]+bestaudio[ext=m4a]"
  3. profile=opengl-hq
  4. hls-bitrate=max # use max quality for HLS streams
  5. ytdl-format=bestvideo[height<=?1080][fps<=?30][vcodec!=?vp9][protocol!=http_dash_segments]+bestaudio/best #[protocol!=http_dash_segments][protocol!=rtmp]
  6.  
  7. #profile=gpu-hq
  8. hwdec=auto-copy
  9. hwdec-codecs=all
  10. gpu-api=opengl
  11. vo=gpu
  12.  
  13. opengl-early-flush=auto
  14. #opengl-pbo=yes
  15.  
  16. hr-seek-framedrop=no
  17.  
  18. #Don't close the player after finishing the video
  19. #keep-open=yes
  20.  
  21. #The last position of your video is saved when quitting mpv
  22. #save-position-on-quit=yes
  23.  
  24. #Don't show a huge volume box on screen when turning the volume up/down
  25. osd-bar=no
  26. osd-level=0
  27. no-osd-bar # Hide OSD bar when seeking.
  28.  
  29.  
  30. #Cursor hide in ms
  31. cursor-autohide=100
  32.  
  33. #Audio language priority
  34. alang=ja,jp,jpn,en,eng,ru, rus
  35.  
  36. #Subtitle language priority
  37. slang=en,eng,ru, rus, ja, jp, jpn
  38.  
  39. #Load external audio with (almost) the same name as the video
  40. audio-file-auto=fuzzy
  41.  
  42. #Load external subtitles with (almost) the same name as the video
  43. sub-auto=fuzzy # external subs don't have to match the file name exactly to autoload
  44. sub-file-paths=ass:srt:sub:subs:subtitles    # search for external subs in the listed subdirectories
  45. embeddedfonts=yes                       # use embedded fonts for SSA/ASS subs
  46. sub-fix-timing=no                       # do not try to fix gaps (which might make it worse in some cases)
  47.  
  48.  
  49. cursor-autohide-fs-only # don't autohide the cursor in window mode, only fullscreen
  50.  
  51. tone-mapping=mobius
  52.  
  53. #adaptive sharpening require no on this
  54. sigmoid-upscaling=no
  55.  
  56. #dither
  57. #Use "auto" or "8"/"10"/"12" depending on your display bitdepth
  58. #Can lead to ugly outputs when you set the wrong bitdepth number
  59. dither-depth=auto
  60. #Selects the dithering algorithm
  61. #Use "error-diffusion" with high-end GPUs (experimental), else use "fruit"
  62. dither=fruit
  63.  
  64. #deband
  65. #Debanding on all videos
  66. #Set it "no" if you rather handle it with profiles
  67. deband=yes
  68. #Deband steps (More = Better quality, but higher GPU cost)
  69. #deband-iterations=4
  70. #Deband strength (More = Less banding, but more detail loss)
  71. #deband-threshold=48
  72. #Deband range (More = Less banding, but higher GPU cost)
  73. #deband-range=16
  74. #Dynamic Grain (More = More dynamic grain)
  75. #Set it to "0" in case you use the static grain shader
  76. #deband-grain=48
  77.  
  78. deband-iterations=2 # Range 1-16. Higher = better quality but more GPU usage. >5 is redundant.
  79. deband-threshold=35 # Range 0-4096. Deband strength.
  80. deband-range=20 # Range 1-64. Range of deband. Too high may destroy details.
  81. deband-grain=5 # Range 0-4096. Inject grain to cover up bad banding, higher value needed for poor sources.
  82.  
  83.  
  84. #resize
  85. #Luma upscale
  86. #scale=bicubic
  87. scale=haasnsoft
  88. #Luma downscale
  89. dscale=mitchell
  90. #Chroma up- & downscale
  91. cscale=ewa_lanczossoft
  92. #cscale-window=blackman
  93. #cscale-radius=3
  94. #correct-downscaling=yes
  95.  
  96.  
  97. #anti-ringing
  98. #Luma upscale deringing (Higher = Less rining, but more detail loss)
  99. scale-antiring=0.7
  100. #Luma downscale deringing (Higher = Less rining, but more detail loss)
  101. dscale-antiring=0.7
  102. #Chroma upscale deringing (Higher = Less rining, but more detail loss)
  103. cscale-antiring=0.7
  104.  
  105. #interpolation
  106. #Subtitle blending in scenechanges (smoother effect)
  107. #Important: Doesn't work with HDR content, set it "no" for HDR content!
  108. #blend-subtitles=yes
  109. #Set the fps as the max. of your monitor Hz (only useful and needed with "interpolation=yes)
  110. #video-sync=display-resample
  111. #Activate interpolation
  112. #interpolation=yes
  113. #Interpolation method [look at the table below]
  114. #tscale=bicubic
  115.  
  116. #Autodetect if deinterlace is needed
  117. deinterlace=no
  118.  
  119. #shaders
  120. fbo-format=rgba16f
  121. #glsl-shader="/home/nightloli/.config/mpv/shaders/KrigBilateral.glsl"
  122. glsl-shader="/home/nightloli/.config/mpv/shaders/ravu-lite-r2.hook"
  123. #SSSR
  124. glsl-shader="/home/nightloli/.config/mpv/shaders/SSimSuperRes.glsl"
  125. #Adaptive-sharpen
  126. #glsl-shader="/home/nightloli/.config/mpv/shaders/adaptive-sharpen.glsl"
  127. #Luma
  128. glsl-shader="/home/nightloli/.config/mpv/shaders/noise_static_luma.hook"
  129. #Chroma
  130. glsl-shader="/home/nightloli/.config/mpv/shaders/noise_static_chroma.hook"
  131.  
  132. #cache
  133. cache=yes
  134. cache-secs=5                           # how many seconds of audio/video to prefetch if the cache is active
  135. demuxer-max-bytes=150000000 # Max pre-load for network streams (1 MiB = 1048576 Bytes).
  136. demuxer-max-back-bytes=75000000 # Max loaded video kept after playback.
  137. force-seekable=yes
  138.  
  139.  
  140.  
  141.  
Add Comment
Please, Sign In to add comment