2006-01-16 23:58:37 +00:00
|
|
|
#
|
2012-10-11 00:04:08 +00:00
|
|
|
# mpv configuration file
|
2006-01-16 23:58:37 +00:00
|
|
|
#
|
2012-10-11 00:04:08 +00:00
|
|
|
# Configuration files are read system-wide from /usr/local/etc/mpv.conf
|
2014-06-28 13:55:09 +00:00
|
|
|
# and per-user from ~/.config/mpv/mpv.conf, where per-user settings override
|
2013-09-07 20:43:31 +00:00
|
|
|
# system-wide settings, all of which are overridden by the command line.
|
2006-01-16 23:58:37 +00:00
|
|
|
#
|
2013-09-07 20:43:31 +00:00
|
|
|
# Configuration file settings and the command line options use the same
|
|
|
|
# underlying mechanisms. Most options can be put into the configuration file
|
|
|
|
# by dropping the preceding '--'. See the man page for a complete list of
|
|
|
|
# options.
|
|
|
|
#
|
|
|
|
# Lines starting with '#' are comments and are ignored.
|
2006-01-17 00:18:21 +00:00
|
|
|
#
|
|
|
|
# See the CONFIGURATION FILES section in the man page
|
|
|
|
# for a detailed description of the syntax.
|
2010-12-12 17:16:59 +00:00
|
|
|
#
|
2011-01-05 14:55:45 +00:00
|
|
|
# Profiles should be placed at the bottom of the configuration file to ensure
|
|
|
|
# that settings wanted as defaults are not restricted to specific profiles.
|
2013-09-07 20:43:31 +00:00
|
|
|
#
|
|
|
|
# Note that the commented example options usually do _not_ set the default
|
|
|
|
# values. Calling mpv with --list-options is a nice way to see the default
|
|
|
|
# values for most options.
|
2006-01-17 00:36:52 +00:00
|
|
|
|
|
|
|
##################
|
|
|
|
# video settings #
|
|
|
|
##################
|
2004-07-20 18:02:22 +00:00
|
|
|
|
2013-09-07 20:43:31 +00:00
|
|
|
# Specify default video driver (see --vo=help for a list).
|
2012-11-11 17:05:43 +00:00
|
|
|
#vo=vdpau
|
2001-06-05 16:52:51 +00:00
|
|
|
|
2006-01-17 00:18:21 +00:00
|
|
|
# Start in fullscreen mode by default.
|
2006-01-16 23:58:37 +00:00
|
|
|
#fs=yes
|
2001-03-19 07:45:35 +00:00
|
|
|
|
2012-11-11 17:05:43 +00:00
|
|
|
# force starting with centered window
|
2012-11-14 09:55:38 +00:00
|
|
|
#geometry=50%:50%
|
2001-03-19 07:45:35 +00:00
|
|
|
|
2013-01-23 09:56:36 +00:00
|
|
|
# don't allow a new window to have a size larger than 90% of the screen size
|
|
|
|
#autofit-larger=90%x90%
|
|
|
|
|
2013-10-14 21:42:53 +00:00
|
|
|
# Disable the On Screen Controller (OSC).
|
|
|
|
#osc=no
|
|
|
|
|
2006-01-17 00:18:21 +00:00
|
|
|
# Keep the player window on top of all other windows.
|
2006-01-16 23:58:37 +00:00
|
|
|
#ontop=yes
|
|
|
|
|
2006-01-17 00:36:52 +00:00
|
|
|
##################
|
|
|
|
# audio settings #
|
|
|
|
##################
|
|
|
|
|
2013-09-07 20:43:31 +00:00
|
|
|
# Specify default audio driver (see --ao=help for a list).
|
2012-09-01 18:02:15 +00:00
|
|
|
#ao=alsa
|
2006-01-16 23:58:37 +00:00
|
|
|
|
2012-11-11 17:05:43 +00:00
|
|
|
# Disable softvol usage, and always use the system mixer if available.
|
|
|
|
#softvol=no
|
2006-01-17 00:36:52 +00:00
|
|
|
|
2014-05-15 23:24:03 +00:00
|
|
|
# Scale audio tempo by playback speed without altering pitch. (By default does
|
|
|
|
# nothing if playback speed is not changed. May introduce artifacts.)
|
|
|
|
#af=scaletempo
|
|
|
|
|
|
|
|
# Output 5.1 audio natively, and upmix/downmix audio with a different format.
|
|
|
|
#audio-channels=5.1
|
|
|
|
# Disable any automatic remix, _if_ the audio output accepts the audio format.
|
|
|
|
# of the currently played file.
|
|
|
|
#audio-channels=empty
|
2011-01-05 14:55:45 +00:00
|
|
|
|
2006-01-17 00:36:52 +00:00
|
|
|
##################
|
|
|
|
# other settings #
|
|
|
|
##################
|
|
|
|
|
2014-05-15 23:15:11 +00:00
|
|
|
# Pretend to be a web browser. Might fix playback with some streaming sites,
|
|
|
|
# but also will break with shoutcast streams.
|
2013-09-07 20:43:31 +00:00
|
|
|
#user-agent="Mozilla/5.0"
|
2006-01-17 00:36:52 +00:00
|
|
|
|
2006-01-16 23:58:37 +00:00
|
|
|
# cache settings
|
|
|
|
#
|
2013-09-07 20:43:31 +00:00
|
|
|
# Use 8MB input cache by default. The cache is enabled for network streams only.
|
2014-05-15 23:13:20 +00:00
|
|
|
#cache-default=8192
|
2013-09-07 20:43:31 +00:00
|
|
|
#
|
|
|
|
# Use 8MB input cache for everything, even local files.
|
2014-05-15 23:13:20 +00:00
|
|
|
#cache=8192
|
2004-07-20 18:02:22 +00:00
|
|
|
#
|
2014-08-08 22:13:16 +00:00
|
|
|
# If a seek is issued, and the target is 1024KB past the cached range, then
|
|
|
|
# keep reading until the seek target is hit, instead of doing a real seek.
|
|
|
|
#cache-seek-min=1024
|
2004-07-20 18:02:22 +00:00
|
|
|
#
|
2014-08-08 22:13:16 +00:00
|
|
|
# Disable the behavior that the player will pause if the cache goes below a
|
|
|
|
# certain fill size.
|
player: redo how stream caching and pausing on low cache works
Add the --cache-secs option, which literally overrides the value of
--demuxer-readahead-secs if the stream cache is active. The default
value is very high (10 seconds), which means it can act as network
cache.
Remove the old behavior of trying to pause once the byte cache runs
low. Instead, do something similar wit the demuxer cache. The nice
thing is that we can guess how many seconds of video it has cached,
and we can make better decisions. But for now, apply a relatively
naive heuristic: if the cache is below 0.5 secs, pause, and wait
until at least 2 secs are available.
Note that due to timestamp reordering, the estimated cached duration
of video might be inaccurate, depending on the file format. If the
file format has DTS, it's easy, otherwise the duration will seemingly
jump back and forth.
2014-08-26 23:13:20 +00:00
|
|
|
#cache-pause=no
|
2014-08-08 22:13:16 +00:00
|
|
|
#
|
2014-08-19 18:10:26 +00:00
|
|
|
# Read ahead about 5 seconds of audio and video packets.
|
|
|
|
#demuxer-readahead-secs=5.0
|
2001-06-23 15:40:47 +00:00
|
|
|
|
2013-09-07 20:43:31 +00:00
|
|
|
# Display English subtitles if available.
|
2014-05-15 23:13:20 +00:00
|
|
|
#slang=en
|
2001-12-03 17:10:02 +00:00
|
|
|
|
2013-09-07 20:43:31 +00:00
|
|
|
# Play Finnish audio if available, fall back to English otherwise.
|
2014-05-15 23:13:20 +00:00
|
|
|
#alang=fi,en
|
2012-11-11 17:05:43 +00:00
|
|
|
|
2014-02-23 00:38:08 +00:00
|
|
|
# Change subtitle encoding. For Arabic subtitles use 'cp1256'.
|
2014-02-23 16:55:36 +00:00
|
|
|
# If the file seems to be valid UTF-8, prefer UTF-8.
|
2014-05-15 23:13:20 +00:00
|
|
|
#sub-codepage=utf8:cp1256
|
2014-02-23 00:38:08 +00:00
|
|
|
|
2013-08-11 21:23:12 +00:00
|
|
|
# Enable hardware decoding if available. Often, this requires using an certain
|
|
|
|
# video output, otherwise no hardware decoding will be used.
|
2014-05-15 23:13:20 +00:00
|
|
|
#hwdec=auto
|
2011-01-05 14:55:45 +00:00
|
|
|
|
|
|
|
############
|
|
|
|
# Profiles #
|
|
|
|
############
|
|
|
|
|
|
|
|
# The options declared as part of profiles override global default settings,
|
|
|
|
# but only take effect when the profile is active.
|
|
|
|
|
2013-08-11 21:23:12 +00:00
|
|
|
# The following profile can be enabled on the command line with: --profile=vdpau
|
|
|
|
|
|
|
|
#[vdpau]
|
|
|
|
# The profile forces the vdpau VO.
|
|
|
|
#vo=vdpau
|
2012-12-11 17:16:42 +00:00
|
|
|
# Use hardware decoding (this might break playback of some h264 files)
|
|
|
|
#hwdec=vdpau
|
2014-05-15 23:15:11 +00:00
|
|
|
# Most video filters do not work with hardware decoding.
|
2011-01-05 14:55:45 +00:00
|
|
|
#vf-clr=yes
|
|
|
|
|
|
|
|
|
2006-01-17 00:18:21 +00:00
|
|
|
# You can also include other configuration files.
|
2014-05-15 23:13:20 +00:00
|
|
|
#include=/path/to/the/file/you/want/to/include
|