Create a gist now

Instantly share code, notes, and snippets.

@doole /mpv.conf
Last active Jan 9, 2018

What would you like to do?
Configuration file for `mpv`
#
# mpv configuration file
#
# See the CONFIGURATION FILES section in the man page
# for a detailed description of the syntax.
#
# Profiles should be placed at the bottom of the configuration file to ensure
# that settings wanted as defaults are not restricted to specific profiles.
#
# 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.
##################
# video settings #
##################
# Specify default video driver (see --vo=help for a list).
vo=xv,opengl,vdpau
# Start in fullscreen mode by default.
#fs=yes
# force starting with centered window
#geometry=50%:50%
# don't allow a new window to have a size larger than 90% of the screen size
autofit-larger=90%x90%
# Disable the On Screen Controller (OSC).
osc=yes
# Keep the player window on top of all other windows.
#ontop=yes
##################
# audio settings #
##################
# Specify default audio driver (see --ao=help for a list).
ao = alsa
# Disable softvol usage, and always use the system mixer if available.
#softvol=no
##################
# other settings #
##################
# Pretend to be a web browser. Might fix playback with some streaming sites.
user-agent = "Mozilla/5.0"
# cache settings
#
# Use 8MB input cache by default. The cache is enabled for network streams only.
cache-default = 8192
#
# Use 8MB input cache for everything, even local files.
cache = 8192
#
# Prefill 20% of the cache before starting playback.
#cache-min = 20.0
#
# Prefill 50% of the cache before restarting playback after the cache emptied.
#cache-seek-min = 50
# Display English/Srpski/Hrvatski/Bosanski subtitles if available.
slang = en,sr,hr,bs
# Play Serbian audio if available, fall back to English otherwise.
alang = sr,en
# Enable hardware decoding if available. Often, this requires using an certain
# video output, otherwise no hardware decoding will be used.
#hwdec=auto
hwdec = vdpau
# multithreaded decoding of H264/MPEG-1/2 (valid: 0-16)
vd-lavc-threads = 2
# If the file seems to be valid UTF-8, prefer UTF-8.
sub-codepage = utf8:cp1250
sub-scale-with-window = no
sub-text-font-size = 60
sub-text-color = 1/1/0
# disable screensaver
stop-screensaver = "yes"
#
# mpv configuration file
#
# See the CONFIGURATION FILES section in the man page
# for a detailed description of the syntax.
#
# Profiles should be placed at the bottom of the configuration file to ensure
# that settings wanted as defaults are not restricted to specific profiles.
#
# 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.
##################
# video settings #
##################
# Specify default video driver (see --vo=help for a list).
vo=opengl
# Start in fullscreen mode by default.
#fs=yes
# force starting with centered window
#geometry=50%:50%
# don't allow a new window to have a size larger than 90% of the screen size
autofit-larger=90%x90%
# Disable the On Screen Controller (OSC).
osc=yes
# Keep the player window on top of all other windows.
#ontop=yes
##################
# audio settings #
##################
# Specify default audio driver (see --ao=help for a list).
ao=coreaudio
# Disable softvol usage, and always use the system mixer if available.
#softvol=no
##################
# other settings #
##################
# Pretend to be a web browser. Might fix playback with some streaming sites.
user-agent = "Mozilla/5.0"
# cache settings
#
# Use 8MB input cache by default. The cache is enabled for network streams only.
cache-default = 8192
#
# Use 8MB input cache for everything, even local files.
cache = 8192
#
# Prefill 20% of the cache before starting playback.
#cache-min = 20.0
#
# Prefill 50% of the cache before restarting playback after the cache emptied.
#cache-seek-min = 50
# Display English/Srpski/Hrvatski/Bosanski subtitles if available.
slang = en,sr,hr,bs
# Play Serbian audio if available, fall back to English otherwise.
alang = sr,en
# Enable hardware decoding if available. Often, this requires using an certain
# video output, otherwise no hardware decoding will be used.
hwdec=auto
#hwdec=vdpau
# multithreaded decoding of H264/MPEG-1/2 (valid: 0-16)
vd-lavc-threads=2
# If the file seems to be valid UTF-8, prefer UTF-8.
sub-codepage=utf8:cp1250
sub-scale-with-window=no
sub-text-font="Liberation Sans:style=Bold"
sub-text-font-size=60
sub-text-color=1/1/0
# disable screensaver
stop-screensaver = "yes"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment