Advertisement
4ndr0666

mpv.conf

Jan 10th, 2023 (edited)
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.15 KB | Software | 0 0
  1. # File: $USER/.config/mpv/mpv.conf
  2. # Author: 4ndr0666
  3. # Edited: 08-13-24
  4. #
  5.  
  6. # --- // MPV.CONF // ========
  7.  
  8. # --------------------------- // PRIMARY //
  9. #--loop-playlist=yes
  10. --loop-file=inf
  11. --speed=0.50
  12. --video-output-levels=full
  13. --sub-visibility=no
  14. --input-ipc-server=/tmp/mpv-socket
  15. --hwdec=auto-copy  
  16. --hwdec-codecs=all
  17. #--hwdec=auto-safe  
  18. #--hwdec=no
  19.  
  20. # -------------------------- // GPU //
  21. vo=gpu  
  22. #vo=gpu-next
  23. #vo=vdpau  
  24. #setpts=PTS*2
  25. #no-correct-pts
  26. #vd-lavc-dr=yes
  27. #vd-lavc-assume-old-x264= yes
  28. --user-agent=libmpv
  29. --x11-bypass-compositor=no
  30. #--player-operation-mode=pseudo-gui
  31. --force-window=immediate
  32. --save-position-on-quit  
  33.  
  34. # -------------------------------------- // AUDIO_SETTINGS //
  35. volume-max=250
  36. audio-pitch-correction=yes  
  37. af="acompressor=ratio=4,loudnorm"
  38. # --alsa/sysdefault:CARD=PCH
  39. # --video-sync=desync
  40. --video-sync=display-resample
  41. #--no-audio
  42.  
  43. # -------------------------------------------- // STYLES //
  44. --window-scale=0.500
  45. --ontop=yes  
  46. #--geometry=100%:100%
  47. --geometry=50%:50%
  48. # --video-rotate=<0-359|no>
  49. # keepaspect=no
  50. #--on-all-workspaces=yes
  51. # --term-title=yes
  52. # --title=${?media-title:${media-title}}-mpv
  53. # --no-border
  54. --snap-window=yes
  55. --stop-screensaver=always  
  56. #osd-playing-msg=File: ${filename}
  57. #--osd-blur=1
  58. #--osd-border-size=1
  59. --osd-duration=3000
  60. --osd-on-seek=msg-bar
  61. --force-window=immediate
  62. #--force-seekable=yes
  63. # --display-tags=Title, Channel_URL, service_name
  64. --autofit-larger=88%x88%
  65. # --autofit-larger=30%x30%
  66. # --autofit-smaller=yes
  67. # --geometry=50%+10+10/2
  68. --keep-open=always  
  69. #--keep-open-pause=no
  70. --layout=slimbox  
  71. #--seekbarstyle=diamond
  72. #--seekbarhandlesize=0.6
  73. #--seekbarkeyframes=no
  74. #--seekrangestyle=inverted
  75. #--seekrangeseparate=yes
  76. #--seekrangealpha=213
  77. #--minmousemove=3
  78. #--showwindowed=yes
  79. #--showfullscreen=yes
  80. #--idlescreen=yes
  81. #--scalewindowed=1.0
  82. #--scalefullscreen=1.0
  83. #--scaleforcedwindow=2.0
  84. #--vidscale=no
  85.  
  86. # ----------------------- // OSC //
  87. #--script-opts=osc-layout=bottombar,osc-seekbarstyle=bar
  88. #--taskbar-progress=yes
  89. #--term-title=yes
  90. #--title=${?media-title:${media-title}}-mpv
  91. #--osd-level=1
  92. #--osd-bar=no
  93. #--osc=no  # Retained as per your preference; re-enable if you want on-screen controls
  94. #--term-status-msg="Time: ${time-pos}"
  95.  
  96. ## --- // VIDEO SCALING AND FILTERS //
  97. #scale=ewa_lanczossharp  # High-quality video scaling
  98. #cscale=spline36
  99. #zimg-dither=error-diffusion
  100. #deband=yes
  101. interpolation=yes
  102. interpolation-preserve=yes
  103. #linear-upscaling=yes
  104. #sigmoid-upscaling=yes  # Improved upscaling
  105. #scale-antiring=0.7  # Reduced ringing artifacts during scaling
  106.  
  107. # ---------------------------------------------------------------- // PROFILES //
  108. # --- // SVP_PROFILE:
  109. # [svp]
  110. #--input-ipc-server=/tmp/mpvsocket
  111. #--hwdec=auto-copy
  112. --hr-seek=always
  113. --hr-seek-framedrop=no
  114. --no-resume-playback
  115. --ignore-path-in-watch-later-config=yes
  116. --opengl-early-flush=no  # Smoother playback with SVP
  117.  
  118. # --- // VDPAU_PROFILE:
  119. # [vdpau]
  120. # VDPAU settings for NVIDIA GPUs - not applicable to your setup but kept for future reference
  121. # vo=gpu-next
  122. # hwdec=nvdec
  123. # scale=ewa_lanczossharp
  124. # cscale=spline36
  125. # zimg-dither=error-diffusion
  126. # deband=yes
  127. # deinterlace=yes
  128. # interpolation=yes
  129. # interpolation-preserve=yes
  130. # linear-upscaling=yes
  131. # sigmoid-upscaling=yes  # Improved upscaling
  132. # scale-antiring=0.7  # Reduced ringing artifacts during scaling
  133.  
  134. # --- // EYE_CANCER_PROFILE:
  135. #[eye-cancer]
  136. #sharpen=5
  137.  
  138. # --- // PYRADIO:
  139. #[pyradio]
  140. #volume=50
  141.  
  142. # --- // WEB_BROWSER:
  143. #[Act as a web browser]
  144. # Updated user-agent for better compatibility with streaming sites
  145. #user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:121.0) Gecko/20100101 Firefox/121.0"
  146. #cache=yes
  147. #demuxer-max-bytes=123400KiB
  148. #cache-pause=no
  149. #demuxer-readahead-secs=20
  150.  
  151. # --- // ANIME4K:
  152. # [anime4k]
  153. # --glsl-shaders=/usr/share/anime4k
  154.  
  155. # --- // Play_with_mpv:
  156. #[play_with_mpv]
  157. #ontop=yes
  158. #border=no
  159. #window-scale=0.4
  160. #geometry=100%:100%
  161.  
  162. # a profile that can be enabled with --profile=big-cache
  163. #[big-cache]
  164. #cache=yes
  165. #demuxer-max-bytes=512MiB
  166. #demuxer-readahead-secs=20
  167.  
  168. #[network]
  169. #profile-desc="profile for content over network"
  170. #force-window=immediate
  171. # you can also include other profiles
  172. #profile=big-cache
  173.  
  174. #[reduce-judder]
  175. #video-sync=display-resample
  176. #interpolation=yes
  177.  
  178. # using a profile again extends it
  179. #[network]
  180. #demuxer-max-back-bytes=512MiB
  181. # reference a builtin profile
  182. #profile=fast
  183.  
  184.  
  185. # ------------------------------------ // IMAGES //
  186. --vo-image-format=png
  187. --vo-image-png-compression=9
  188. --vo-image-png-filter=5
  189. #--image-display-duration=inf
  190.  
  191. # --- // Screenshots:
  192. --screenshot-format=png
  193. --screenshot-png-compression=4  # Balance between quality and file size
  194. --screenshot-directory="~/Pictures/Screens"
  195. --screenshot-template="%F - [%P]v%#01n"
  196. --screenshot-tag-colorspace=yes  # Ensure accurate color reproduction
  197. --screenshot-high-bit-depth=yes  # High bit depth for better quality
  198.  
  199. # --screenshot-webp-lossless=yes
  200. # --screenshot-webp-quality=100
  201.  
  202. # --- // Extension_behavior:
  203. #[extension.gif]
  204. #loop-file=inf
  205.  
  206. [extension.webm]
  207. loop-file=inf
  208.  
  209. [extension.jpg]
  210. pause=yes
  211.  
  212. [extension.png]
  213. pause=yes
  214.  
Tags: MPV
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement