Advertisement
Guest User

mpv.conf

a guest
Oct 27th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.76 KB | None | 0 0
  1. # vim: syntax=config
  2.  
  3.  
  4. ###########
  5. # General #
  6. ###########
  7.  
  8. #save-position-on-quit
  9. no-border # no window title bar
  10. msg-module # prepend module name to log messages
  11. msg-color # color log messages on terminal
  12. term-osd-bar # display a progress bar on the terminal
  13. use-filedir-conf # look for additional config files in the directory of the opened file
  14. #pause # no autoplay
  15. keep-open # keep the player open when a file's end is reached
  16. autofit-larger=100%x95% # resize window in case it's larger than W%xH% of the screen
  17. #geometry=1280x720
  18. deinterlace=auto # 'auto' does not imply interlacing-detection
  19. cursor-autohide-fs-only # don't autohide the cursor in window mode, only fullscreen
  20. #input-media-keys=enable # enable/disable OSX media keys
  21. cursor-autohide=800 # autohide the curser after 1s
  22. ontop
  23. #yt-dl bestvideo+bestaudio
  24. ytdl-format='bestvideo[ext=mp4][width<=1920][height<=1080]+bestaudio[ext=m4a]'
  25.  
  26. screenshot-format=png
  27. screenshot-png-compression=8
  28. screenshot-template='~/Desktop/%F (%P) %n'
  29.  
  30. hls-bitrate=max # use max quality for HLS streams
  31. #ytdl-raw-options=format="[protocol!=http_dash_segments][protocol!=rtmp]"
  32.  
  33.  
  34. #########
  35. # Cache #
  36. #########
  37.  
  38. cache=yes
  39. cache-default=8000000 # size in KB
  40. cache-backbuffer=25000 # size in KB
  41. cache-initial=0 # start playback when your cache is filled up with x kB
  42. cache-secs=10 # how many seconds of audio/video to prefetch if the cache is active
  43.  
  44.  
  45. #############
  46. # OSD / OSC #
  47. #############
  48.  
  49. osd-level=1 # enable osd and display --osd-status-msg on interaction
  50. osd-duration=2500 # hide the osd after x ms
  51. osd-status-msg='${time-pos} / ${duration}${?percent-pos: (${percent-pos}%)}${?vo-drop-frame-count:${!vo-drop-frame-count==0: Dropped: ${vo-drop-frame-count}}}\n${?chapter:Chapter: ${chapter}}'
  52.  
  53. osd-font='Source Sans Pro'
  54. osd-font-size=32
  55. osd-color='#CCFFFFFF' # ARGB format
  56. osd-border-color='#DD322640' # ARGB format
  57. #osd-shadow-offset=1 # pixel width for osd text and progress bar
  58. osd-bar-align-y=0 # progress bar y alignment (-1 top, 0 centered, 1 bottom)
  59. osd-border-size=2 # size for osd text and progress bar
  60. osd-bar-h=2 # height of osd bar as a fractional percentage of your screen height
  61. osd-bar-w=60 # width of " " "
  62.  
  63.  
  64. #############
  65. # Subtitles #
  66. #############
  67.  
  68. sub-use-margins
  69. sub-ass-force-margins
  70.  
  71. demuxer-mkv-subtitle-preroll # try to correctly show embedded subs when seeking
  72. sub-auto=fuzzy # external subs don't have to match the file name exactly to autoload
  73. sub-paths=ass:srt:sub:subs:subtitles # search for external subs in the listed subdirectories
  74. embeddedfonts=yes # use embedded fonts for SSA/ASS subs
  75. sub-fix-timing=no # do not try to fix gaps (which might make it worse in some cases)
  76. sub-ass-force-style=Kerning=yes # allows you to override style parameters of ASS scripts
  77.  
  78. # the following options only apply to subtitles without own styling (i.e. not ASS but e.g. SRT)
  79. sub-font="Source Sans Pro Semibold"
  80. sub-font-size=36
  81. sub-color="#FFFFFFFF"
  82. sub-border-color="#FF262626"
  83. sub-border-size=2.7
  84. sub-shadow-offset=1
  85. sub-shadow-color="#33000000"
  86. sub-spacing=0.6
  87.  
  88.  
  89. #############
  90. # Languages #
  91. #############
  92.  
  93. slang=enm,en,eng,de,deu,ger # automatically select these subtitles (decreasing priority)
  94. alang=ja,jp,jpn,en,eng,de,deu,ger # automatically select these audio tracks (decreasing priority)
  95.  
  96.  
  97. #########
  98. # Audio #
  99. #########
  100.  
  101. audio-file-auto=fuzzy # external audio doesn't has to match the file name exactly to autoload
  102. audio-pitch-correction=yes # automatically insert scaletempo when playing with higher speed
  103. volume-max=200 # maximum volume in %, everything above 100 results in amplification
  104. volume=55 # default volume, 100 = unchanged
  105.  
  106.  
  107. ################
  108. # Video Output #
  109. ################
  110.  
  111. # Active VOs (and some other options) are set conditionally
  112. # See here for more information: https://github.com/wm4/mpv-scripts/blob/master/auto-profiles.lua
  113. # The script was slightly modified, functions from scripts/auto-profiles-functions.lua are imported
  114.  
  115. # Defaults for all profiles
  116. vo=opengl
  117. tscale=linear
  118.  
  119.  
  120. [high-quality]
  121. profile-desc=cond:is_desktop() and get('width', math.huge) < 3840
  122. scale=ewa_lanczossharp
  123. cscale=ewa_lanczossoft
  124. dscale=mitchell
  125. scale-antiring=0.7
  126. cscale-antiring=0.7
  127. dither-depth=auto
  128. correct-downscaling=yes
  129. sigmoid-upscaling=yes
  130. deband=yes
  131.  
  132. [mid-quality]
  133. profile-desc=cond:(is_laptop() and not on_battery() and get('width', math.huge) < 1920) or (is_desktop() and get('width', math.huge) >= 3840)
  134. scale=spline36
  135. cscale=bilinear
  136. dscale=mitchell
  137. scale-antiring=1.0
  138. cscale-antiring=1.0
  139. dither-depth=auto
  140. correct-downscaling=yes
  141. sigmoid-upscaling=yes
  142. deband=yes
  143.  
  144. [low-quality]
  145. profile-desc=cond:is_laptop() and (on_battery() or get('width', math.huge) >= 1920)
  146. scale=bilinear
  147. cscale=bilinear
  148. dscale=bilinear
  149. scale-antiring=0.0
  150. cscale-antiring=0.0
  151. dither-depth=no
  152. correct-downscaling=no
  153. sigmoid-upscaling=no
  154. deband=no
  155.  
  156. [60FPS]
  157. profile-desc=cond:is_laptop() and get('container-fps', 0) >= 59
  158. scale=bilinear
  159. cscale=bilinear
  160.  
  161. [4K]
  162. profile-desc=cond:get('width', -math.huge) >= 3840
  163. vd-lavc-threads=32
  164.  
  165. [4K-inverted]
  166. profile-desc=cond:get('width', -math.huge) < 3840
  167. vd-lavc-threads=0
  168.  
  169.  
  170. [default]
  171.  
  172.  
  173. ###################################
  174. # Protocol Specific Configuration #
  175. ###################################
  176.  
  177. [protocol.https]
  178. #cache=yes
  179. #cache-default=500000 # size in KB
  180. #cache-backbuffer=250000 # size in KB
  181. cache-secs=120 # how many seconds of audio/video to prefetch
  182. user-agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:47.0) Gecko/20100101 Firefox/47.0'
  183.  
  184. [protocol.http]
  185. #cache=yes
  186. #cache-default=500000 # size in KB
  187. #cache-backbuffer=250000 # size in KB
  188. cache-secs=120 # how many seconds of audio/video to prefetch
  189. user-agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:47.0) Gecko/20100101 Firefox/47.0'
  190.  
  191. [extension.gif]
  192. cache=no
  193. no-pause
  194. loop-file=yes
  195.  
  196. [extension.webm]
  197. #cache=no
  198. #no-pause
  199. loop-file=yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement