Files

225 lines
4.8 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Quality
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
profile=gpu-hq
# Hardware decoding
vo=gpu
hwdec=auto-safe
# Scaling
scale=ewa_lanczossharp
cscale=ewa_lanczossharp
dscale=mitchell
# Deband
deband=yes
# Range 1-16. Higher = better quality but more GPU usage. >5 is redundant.
deband-iterations=1
# Range 0-4096. Deband strength.
deband-threshold=35
# Range 1-64. Range of deband. Too high may destroy details.
deband-range=20
# Range 0-4096. Inject grain to cover up bad banding, higher value needed for poor sources.
deband-grain=5
# Interpolation
interpolation=no
video-sync=display-resample
blend-subtitles=yes
# Dithering
dither-depth=auto
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Interface
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Force starting with centered window
geometry=50%:50%
# Restrict window's size
autofit-larger=75%
# Make window at least this size
autofit-smaller=50%
# Always open window (maximum GUI)
force-window=immediate
# Disable window border
border=no
# Disable progress indicator in the taskbar
taskbar-progress=no
# Window title
title='${filename} - mpv'
# Don't close the player + don't advance to the next file on finish
keep-open=always
# Don't pause on finish
keep-open-pause=no
# Reset some settings on next file
reset-on-next-file=pause
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# OSD
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Custom status message
osd-status-msg='${time-pos} / ${duration}${?percent-pos: (${percent-pos}%)}\n${?chapter:Chapter: ${chapter}} (${chapter-list/count})'
# Show ms in the console
osd-fractions
# Status message font
osd-font="Gordita Medium"
osd-font-size=30
osd-color="#ffffff"
osd-border-size=2.0
osd-border-color="#262626"
# Interval of the osd disappearing (ms)
osd-duration=500
# Don't scale OSD according to the window size
osd-scale-by-window=no
# Don't show the bar
no-osd-bar
# Less annoying OSD bar on seeking
osd-on-seek=msg-bar
# Hide the cursor in 500 ms
cursor-autohide=500
# Prepend module name to log messages
msg-module
# Color log messages on terminal
msg-color
# Display a progress bar on the terminal
term-osd-bar
# Disable not important log messages
msg-level=input=error,demux=error
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Language
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Audio priority
alang=Japanese,jap,jpn,jp,ja,English,en,eng,Russian,rus,ru
# Subtitles priority
slang=English,eng,en,Russian,rus,ru
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Audio
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Volume
volume=100
volume-max=100
# Correct pitch when changing the playback speed
audio-pitch-correction=yes
# Load external audio tracks automatically
audio-file-auto=fuzzy
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Subtitles
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Load external subtitle tracks automatically
sub-auto=fuzzy
sub-file-paths=Sub;Subs;Subtitles
# Subtitles encoding
# sub-codepage=cp1251
# Forces showing subtitles while seeking through the video
demuxer-mkv-subtitle-preroll=yes
# Fixes subtitle timing for gaps smaller than 210ms (works with PGS subtitles)
sub-fix-timing=yes
# ASS subtitles override
sub-ass-force-margins=yes
sub-ass-override=force
# Subtitles style
sub-font="Verdana"
sub-font-size=36
sub-color="#E6FFFFFF"
sub-border-size = 2.5
sub-border-color="#D21C1C1C"
sub-margin-x=100
sub-margin-y=50
sub-shadow-color=0.0/0.0/0.0/0.25
sub-shadow-offset=0
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Screenshots
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Output format
screenshot-format=png
# Better quality
screenshot-high-bit-depth=yes
screenshot-tag-colorspace=yes
# Compression of PNG pictures (1-9)
screenshot-png-compression=5
# Output directory
screenshot-directory="~/Pictures/Screenshots"
# Name format to save the screenshots
screenshot-template="%f-%wH.%wM.%wS.%wT-#%#00n"
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Streaming
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[protocol.http]
# Display media title instead of the URL
title='${media-title}'
osd-playing-msg='${media-title}'
# Cache
demuxer-max-bytes=150000000 # 150 MB
demuxer-max-back-bytes=75000000 # 75 MB
demuxer-seekable-cache=yes
force-seekable=yes
# youtube-dl default format
ytdl-format=((bestvideo[vcodec=vp9][height<=?1080]/bestvideo)+(bestaudio[acodec=opus]/bestaudio))/best
# UA (the most common chrome)
user-agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36'
# Automatically advance in the playlist
keep-open=yes
# Turn off dither and deband
dither=no
deband=no
[protocol.https]
profile=protocol.http
[protocol.ytdl]
profile=protocol.http
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# File-specific
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# WebMs
[extension.webm]
loop-file=yes
# Animated gif
[extension.gif]
loop-file=yes
# Audio files
[extension.mp3]
autofit-larger=30%
script-opts=osc-layout=box,osc-visibility=always,osc-scalewindowed=2
keep-open=yes
[extension.flac]
profile=extension.mp3
[extension.opus]
profile=extension.mp3
[extension.m4a]
profile=extension.mp3