Advertisement
Guest User

mpv.conf

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