2006-01-16 23:58:37 +00:00
|
|
|
#
|
2016-02-08 12:49:47 +00:00
|
|
|
# Example mpv configuration file
|
|
|
|
#
|
|
|
|
# Warning:
|
|
|
|
#
|
|
|
|
# The commented example options usually do _not_ set the default values. Call
|
|
|
|
# mpv with --list-options to see the default values for most options. There is
|
|
|
|
# no builtin or example mpv.conf with all the defaults.
|
|
|
|
#
|
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.
|
2006-01-17 00:36:52 +00:00
|
|
|
|
|
|
|
##################
|
|
|
|
# video settings #
|
|
|
|
##################
|
2004-07-20 18:02:22 +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%
|
|
|
|
|
2016-02-13 12:13:15 +00:00
|
|
|
# Do not close the window on exit.
|
|
|
|
#keep-open=yes
|
|
|
|
|
|
|
|
# Do not wait with showing the video window until it has loaded. (This will
|
|
|
|
# resize the window once video is loaded. Also always shows a window with
|
|
|
|
# audio.)
|
|
|
|
#force-window=immediate
|
|
|
|
|
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
|
|
|
|
|
vo_opengl: refactor into vo_gpu
This is done in several steps:
1. refactor MPGLContext -> struct ra_ctx
2. move GL-specific stuff in vo_opengl into opengl/context.c
3. generalize context creation to support other APIs, and add --gpu-api
4. rename all of the --opengl- options that are no longer opengl-specific
5. move all of the stuff from opengl/* that isn't GL-specific into gpu/
(note: opengl/gl_utils.h became opengl/utils.h)
6. rename vo_opengl to vo_gpu
7. to handle window screenshots, the short-term approach was to just add
it to ra_swchain_fns. Long term (and for vulkan) this has to be moved to
ra itself (and vo_gpu altered to compensate), but this was a stop-gap
measure to prevent this commit from getting too big
8. move ra->fns->flush to ra_gl_ctx instead
9. some other minor changes that I've probably already forgotten
Note: This is one half of a major refactor, the other half of which is
provided by rossy's following commit. This commit enables support for
all linux platforms, while his version enables support for all non-linux
platforms.
Note 2: vo_opengl_cb.c also re-uses ra_gl_ctx so it benefits from the
--opengl- options like --opengl-early-flush, --opengl-finish etc. Should
be a strict superset of the old functionality.
Disclaimer: Since I have no way of compiling mpv on all platforms, some
of these ports were done blindly. Specifically, the blind ports included
context_mali_fbdev.c and context_rpi.c. Since they're both based on
egl_helpers, the port should have gone smoothly without any major
changes required. But if somebody complains about a compile error on
those platforms (assuming anybody actually uses them), you know where to
complain.
2017-09-14 06:04:55 +00:00
|
|
|
# Specify high quality video rendering preset (for --vo=gpu only)
|
2016-09-07 10:55:21 +00:00
|
|
|
# Can cause performance problems with some drivers and GPUs.
|
vo_opengl: refactor into vo_gpu
This is done in several steps:
1. refactor MPGLContext -> struct ra_ctx
2. move GL-specific stuff in vo_opengl into opengl/context.c
3. generalize context creation to support other APIs, and add --gpu-api
4. rename all of the --opengl- options that are no longer opengl-specific
5. move all of the stuff from opengl/* that isn't GL-specific into gpu/
(note: opengl/gl_utils.h became opengl/utils.h)
6. rename vo_opengl to vo_gpu
7. to handle window screenshots, the short-term approach was to just add
it to ra_swchain_fns. Long term (and for vulkan) this has to be moved to
ra itself (and vo_gpu altered to compensate), but this was a stop-gap
measure to prevent this commit from getting too big
8. move ra->fns->flush to ra_gl_ctx instead
9. some other minor changes that I've probably already forgotten
Note: This is one half of a major refactor, the other half of which is
provided by rossy's following commit. This commit enables support for
all linux platforms, while his version enables support for all non-linux
platforms.
Note 2: vo_opengl_cb.c also re-uses ra_gl_ctx so it benefits from the
--opengl- options like --opengl-early-flush, --opengl-finish etc. Should
be a strict superset of the old functionality.
Disclaimer: Since I have no way of compiling mpv on all platforms, some
of these ports were done blindly. Specifically, the blind ports included
context_mali_fbdev.c and context_rpi.c. Since they're both based on
egl_helpers, the port should have gone smoothly without any major
changes required. But if somebody complains about a compile error on
those platforms (assuming anybody actually uses them), you know where to
complain.
2017-09-14 06:04:55 +00:00
|
|
|
#profile=gpu-hq
|
2016-02-08 12:49:47 +00:00
|
|
|
|
|
|
|
# Force video to lock on the display's refresh rate, and change video and audio
|
|
|
|
# speed to some degree to ensure synchronous playback - can cause problems
|
|
|
|
# with some drivers and desktop environments.
|
|
|
|
#video-sync=display-resample
|
|
|
|
|
|
|
|
# Enable hardware decoding if available. Often, this does not work with all
|
|
|
|
# video outputs, but should work well with default settings on most systems.
|
|
|
|
# If performance or energy usage is an issue, forcing the vdpau or vaapi VOs
|
|
|
|
# may or may not help.
|
|
|
|
#hwdec=auto
|
|
|
|
|
2006-01-17 00:36:52 +00:00
|
|
|
##################
|
|
|
|
# audio settings #
|
|
|
|
##################
|
|
|
|
|
2017-04-05 09:18:35 +00:00
|
|
|
# Specify default audio device. You can list devices with: --audio-device=help
|
|
|
|
# The option takes the device string (the stuff between the '...').
|
|
|
|
#audio-device=alsa/default
|
2006-01-17 00:36:52 +00:00
|
|
|
|
2015-12-29 00:42:31 +00:00
|
|
|
# Do not filter audio to keep pitch when changing playback speed.
|
2016-05-23 21:41:58 +00:00
|
|
|
#audio-pitch-correction=no
|
2014-05-15 23:24:03 +00:00
|
|
|
|
|
|
|
# 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.
|
2015-07-25 20:44:06 +00:00
|
|
|
# of the currently played file. See caveats mentioned in the manpage.
|
2017-04-05 09:18:35 +00:00
|
|
|
# (The default is "auto-safe", see manpage.)
|
2015-07-25 20:44:06 +00:00
|
|
|
#audio-channels=auto
|
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
|
|
|
|
#
|
2019-10-14 16:32:58 +00:00
|
|
|
# Use a large seekable RAM cache even for local input.
|
|
|
|
#cache=yes
|
|
|
|
#
|
|
|
|
# Use extra large RAM cache (needs cache=yes to make it useful).
|
|
|
|
#demuxer-max-bytes=500M
|
|
|
|
#demuxer-max-back-bytes=100M
|
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
|
|
|
#
|
2019-10-14 16:32:58 +00:00
|
|
|
# Store cache payload on the hard disk instead of in RAM. (This may negatively
|
|
|
|
# impact performance unless used for slow input such as network.)
|
|
|
|
#cache-dir=~/.cache/
|
|
|
|
#cache-on-disk=yes
|
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.
|
2017-04-05 09:18:35 +00:00
|
|
|
# (You can add '+' in front of the codepage to force it.)
|
|
|
|
#sub-codepage=cp1256
|
2016-02-08 12:49:47 +00:00
|
|
|
|
|
|
|
# You can also include other configuration files.
|
|
|
|
#include=/path/to/the/file/you/want/to/include
|
|
|
|
|
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.
|
|
|
|
|
2017-04-05 09:18:35 +00:00
|
|
|
# The following profile can be enabled on the command line with: --profile=eye-cancer
|
2011-01-05 14:55:45 +00:00
|
|
|
|
2017-04-05 09:18:35 +00:00
|
|
|
#[eye-cancer]
|
|
|
|
#sharpen=5
|