Advertisement
Guest User

mpv.conf

a guest
Mar 4th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.72 KB | None | 0 0
  1. ###########
  2. # General #
  3. ###########
  4.  
  5. save-position-on-quit
  6. msg-module # prepend module name to log messages
  7. msg-color # color log messages on terminal
  8. term-osd-bar # display a progress bar on the terminal
  9. keep-open=yes # play the next file in folder, or exit
  10. autofit-larger=70%x65% # resize window in case it's larger than W%xH% of the screen
  11. cursor-autohide-fs-only # don't autohide the cursor in window mode, only fullscreen
  12. cursor-autohide=1000 # autohide the curser after 1s
  13. video-output-levels=full
  14.  
  15. screenshot-format=png
  16. screenshot-png-compression=8
  17. screenshot-template='~/Desktop/%F (%P) %n'
  18.  
  19. hls-bitrate=max # use max quality for HLS streams
  20.  
  21. ytdl-format=bestvideo[height<=?1080][fps<=?30][vcodec!=?vp9][protocol!=http_dash_segments]+bestaudio/best
  22. #[protocol!=http_dash_segments][protocol!=rtmp]
  23.  
  24. #############
  25. # OSD / OSC #
  26. #############
  27.  
  28. osd-level=1 # enable osd and display --osd-status-msg on interaction
  29. osd-duration=2500 # hide the osd after x ms
  30. 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}}'
  31.  
  32. osd-font='Source Sans Pro'
  33. osd-font-size=32
  34. osd-color='#CCFFFFFF' # ARGB format
  35. osd-border-color='#DD322640' # ARGB format
  36. #osd-shadow-offset=1 # pixel width for osd text and progress bar
  37. osd-bar-align-y=0 # progress bar y alignment (-1 top, 0 centered, 1 bottom)
  38. osd-border-size=2 # size for osd text and progress bar
  39. osd-bar-h=2 # height of osd bar as a fractional percentage of your screen height
  40. osd-bar-w=80 # width of " " "
  41.  
  42. #############
  43. # Subtitles #
  44. #############
  45.  
  46. sub-use-margins
  47. sub-ass-force-margins
  48.  
  49. demuxer-mkv-subtitle-preroll # try to correctly show embedded subs when seeking
  50. sub-auto=fuzzy # external subs don't have to match the file name exactly to autoload
  51. sub-file-paths=ass:srt:sub:subs:subtitles # search for external subs in the listed subdirectories
  52. embeddedfonts=yes # use embedded fonts for SSA/ASS subs
  53. sub-fix-timing=no # do not try to fix gaps (which might make it worse in some cases)
  54. sub-ass-force-style=Kerning=yes # allows you to override style parameters of ASS scripts
  55.  
  56. # the following options only apply to subtitles without own styling (i.e. not ASS but e.g. SRT)
  57.  
  58. sub-font="Source Sans Pro Semibold"
  59. sub-font-size=36
  60. sub-color="#FFFFFFFF"
  61. sub-border-color="#FF262626"
  62. sub-border-size=3.2
  63. sub-shadow-offset=1
  64. sub-shadow-color="#33000000"
  65. sub-spacing=0.5
  66.  
  67. #############
  68. # Languages #
  69. #############
  70.  
  71. slang=enm,en,eng,is # automatically select these subtitles (decreasing priority)
  72. alang=ja,jp,jpn,en,eng
  73.  
  74. #########
  75. # Audio #
  76. #########
  77.  
  78. audio-pitch-correction=yes # automatically insert scaletempo when playing with higher speed
  79. volume-max=200 # maximum volume in %, everything above 100 results in amplification
  80. volume=100 # default volume, 100 = unchanged
  81.  
  82.  
  83. ################
  84. # Video Output #
  85. ################
  86.  
  87. # vo=opengl-hq
  88. profile=gpu-hq
  89. opengl-early-flush=yes
  90. opengl-pbo=no
  91. target-trc=gamma2.2
  92. gamma=-6
  93. #saturation=26
  94. #tv-saturation=26
  95.  
  96.  
  97. #################
  98. # Interpolation # [<sharp>, ..., <smooth>]
  99. ################# [oversample, linear (triangle), catmull_rom, mitchell, gaussian, bicubic]
  100.  
  101. interpolation
  102. interpolation-threshold=0.1
  103. tscale=oversample
  104. tscale-antiring=0.7
  105. video-sync=display-resample
  106.  
  107. ############# see: https://github.com/mpv-player/mpv/wiki/Upscaling
  108. # Upscaling #
  109. #############
  110. # [bilinear, lanczos, mitchell, spline16, spline36, spline64, ewa_lanczos (:scale-radius=float),
  111. # ewa_lanczossharp, ewa_lanczossoft, robidoux, robidouxsharp, ewa_ginseng, ewa_hanning, bicubic,
  112. # gaussian, catmull_rom, nearest, oversample, sharpen3, sharpen5, sinc:scale-radius=R]
  113.  
  114. scale=lanczos
  115. cscale=ewa_lanczossoft
  116. cscale-radius=10
  117. dscale=catmull_rom
  118. scale-antiring=0.7
  119. cscale-antiring=0.0
  120. dither-depth=auto
  121. correct-downscaling=yes
  122. sigmoid-upscaling=yes
  123. deband=yes
  124. hwdec=auto
  125.  
  126. # Active VOs (and some other options) are set conditionally
  127. # See here for more information: https://github.com/wm4/mpv-scripts/blob/master/auto-profiles.lua
  128. # The script was modified to import functions from scripts/auto-profiles-functions.lua
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement