1*4882a593Smuzhiyun# 2*4882a593Smuzhiyun# mpv configuration file 3*4882a593Smuzhiyun# 4*4882a593Smuzhiyun# Warning: 5*4882a593Smuzhiyun# 6*4882a593Smuzhiyun# The commented example options usually do _not_ set the default values. Call 7*4882a593Smuzhiyun# mpv with --list-options to see the default values for most options. There is 8*4882a593Smuzhiyun# no builtin or example mpv.conf with all the defaults. 9*4882a593Smuzhiyun# 10*4882a593Smuzhiyun# 11*4882a593Smuzhiyun# Configuration files are read system-wide from /usr/local/etc/mpv.conf 12*4882a593Smuzhiyun# and per-user from ~/.config/mpv/mpv.conf, where per-user settings override 13*4882a593Smuzhiyun# system-wide settings, all of which are overridden by the command line. 14*4882a593Smuzhiyun# 15*4882a593Smuzhiyun# Configuration file settings and the command line options use the same 16*4882a593Smuzhiyun# underlying mechanisms. Most options can be put into the configuration file 17*4882a593Smuzhiyun# by dropping the preceding '--'. See the man page for a complete list of 18*4882a593Smuzhiyun# options. 19*4882a593Smuzhiyun# 20*4882a593Smuzhiyun# Lines starting with '#' are comments and are ignored. 21*4882a593Smuzhiyun# 22*4882a593Smuzhiyun# See the CONFIGURATION FILES section in the man page 23*4882a593Smuzhiyun# for a detailed description of the syntax. 24*4882a593Smuzhiyun# 25*4882a593Smuzhiyun# Profiles should be placed at the bottom of the configuration file to ensure 26*4882a593Smuzhiyun# that settings wanted as defaults are not restricted to specific profiles. 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun################## 29*4882a593Smuzhiyun# video settings # 30*4882a593Smuzhiyun################## 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun# Start in fullscreen mode by default. 33*4882a593Smuzhiyun#fs=yes 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun# force starting with centered window 36*4882a593Smuzhiyun#geometry=50%:50% 37*4882a593Smuzhiyun 38*4882a593Smuzhiyun# don't allow a new window to have a size larger than 90% of the screen size 39*4882a593Smuzhiyun#autofit-larger=90%x90% 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun# Do not close the window on exit. 42*4882a593Smuzhiyun#keep-open=yes 43*4882a593Smuzhiyun 44*4882a593Smuzhiyun# Do not wait with showing the video window until it has loaded. (This will 45*4882a593Smuzhiyun# resize the window once video is loaded. Also always shows a window with 46*4882a593Smuzhiyun# audio.) 47*4882a593Smuzhiyun#force-window=immediate 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun# Disable the On Screen Controller (OSC). 50*4882a593Smuzhiyun#osc=no 51*4882a593Smuzhiyun 52*4882a593Smuzhiyun# Keep the player window on top of all other windows. 53*4882a593Smuzhiyun#ontop=yes 54*4882a593Smuzhiyun 55*4882a593Smuzhiyun# Specify high quality video rendering preset (for --vo=gpu only) 56*4882a593Smuzhiyun# Can cause performance problems with some drivers and GPUs. 57*4882a593Smuzhiyun#profile=gpu-hq 58*4882a593Smuzhiyun 59*4882a593Smuzhiyun# Force video to lock on the display's refresh rate, and change video and audio 60*4882a593Smuzhiyun# speed to some degree to ensure synchronous playback - can cause problems 61*4882a593Smuzhiyun# with some drivers and desktop environments. 62*4882a593Smuzhiyun#video-sync=display-resample 63*4882a593Smuzhiyun 64*4882a593Smuzhiyun# Enable hardware decoding if available. Often, this does not work with all 65*4882a593Smuzhiyun# video outputs, but should work well with default settings on most systems. 66*4882a593Smuzhiyun# If performance or energy usage is an issue, forcing the vdpau or vaapi VOs 67*4882a593Smuzhiyun# may or may not help. 68*4882a593Smuzhiyunhwdec=rkmpp 69*4882a593Smuzhiyun 70*4882a593Smuzhiyun# Specify default video output. 71*4882a593Smuzhiyunvo=xv 72*4882a593Smuzhiyun 73*4882a593Smuzhiyun################## 74*4882a593Smuzhiyun# audio settings # 75*4882a593Smuzhiyun################## 76*4882a593Smuzhiyun 77*4882a593Smuzhiyun# Specify default audio device. You can list devices with: --audio-device=help 78*4882a593Smuzhiyun# The option takes the device string (the stuff between the '...'). 79*4882a593Smuzhiyun#audio-device=alsa/default 80*4882a593Smuzhiyun 81*4882a593Smuzhiyun# Do not filter audio to keep pitch when changing playback speed. 82*4882a593Smuzhiyun#audio-pitch-correction=no 83*4882a593Smuzhiyun 84*4882a593Smuzhiyun# Output 5.1 audio natively, and upmix/downmix audio with a different format. 85*4882a593Smuzhiyun#audio-channels=5.1 86*4882a593Smuzhiyun# Disable any automatic remix, _if_ the audio output accepts the audio format. 87*4882a593Smuzhiyun# of the currently played file. See caveats mentioned in the manpage. 88*4882a593Smuzhiyun# (The default is "auto-safe", see manpage.) 89*4882a593Smuzhiyun#audio-channels=auto 90*4882a593Smuzhiyun 91*4882a593Smuzhiyun################## 92*4882a593Smuzhiyun# other settings # 93*4882a593Smuzhiyun################## 94*4882a593Smuzhiyun 95*4882a593Smuzhiyun# Pretend to be a web browser. Might fix playback with some streaming sites, 96*4882a593Smuzhiyun# but also will break with shoutcast streams. 97*4882a593Smuzhiyun#user-agent="Mozilla/5.0" 98*4882a593Smuzhiyun 99*4882a593Smuzhiyun# cache settings 100*4882a593Smuzhiyun# 101*4882a593Smuzhiyun# Use 150MB input cache by default. The cache is enabled for network streams only. 102*4882a593Smuzhiyun#cache-default=153600 103*4882a593Smuzhiyun# 104*4882a593Smuzhiyun# Use 150MB input cache for everything, even local files. 105*4882a593Smuzhiyun#cache=153600 106*4882a593Smuzhiyun# 107*4882a593Smuzhiyun# Disable the behavior that the player will pause if the cache goes below a 108*4882a593Smuzhiyun# certain fill size. 109*4882a593Smuzhiyun#cache-pause=no 110*4882a593Smuzhiyun# 111*4882a593Smuzhiyun# Read ahead about 5 seconds of audio and video packets. 112*4882a593Smuzhiyun#demuxer-readahead-secs=5.0 113*4882a593Smuzhiyun# 114*4882a593Smuzhiyun# Raise readahead from demuxer-readahead-secs to this value if a cache is active. 115*4882a593Smuzhiyun#cache-secs=50.0 116*4882a593Smuzhiyun 117*4882a593Smuzhiyun# Display English subtitles if available. 118*4882a593Smuzhiyun#slang=en 119*4882a593Smuzhiyun 120*4882a593Smuzhiyun# Play Finnish audio if available, fall back to English otherwise. 121*4882a593Smuzhiyun#alang=fi,en 122*4882a593Smuzhiyun 123*4882a593Smuzhiyun# Change subtitle encoding. For Arabic subtitles use 'cp1256'. 124*4882a593Smuzhiyun# If the file seems to be valid UTF-8, prefer UTF-8. 125*4882a593Smuzhiyun# (You can add '+' in front of the codepage to force it.) 126*4882a593Smuzhiyun#sub-codepage=cp1256 127*4882a593Smuzhiyun 128*4882a593Smuzhiyun# You can also include other configuration files. 129*4882a593Smuzhiyun#include=/path/to/the/file/you/want/to/include 130*4882a593Smuzhiyun 131*4882a593Smuzhiyun############ 132*4882a593Smuzhiyun# Profiles # 133*4882a593Smuzhiyun############ 134*4882a593Smuzhiyun 135*4882a593Smuzhiyun# The options declared as part of profiles override global default settings, 136*4882a593Smuzhiyun# but only take effect when the profile is active. 137*4882a593Smuzhiyun 138*4882a593Smuzhiyun# The following profile can be enabled on the command line with: --profile=eye-cancer 139*4882a593Smuzhiyun 140*4882a593Smuzhiyun#[eye-cancer] 141*4882a593Smuzhiyun#sharpen=5 142