Skip to content

Instantly share code, notes, and snippets.

@doole
Last active February 14, 2024 16:09
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save doole/af4613629d223eb0e416 to your computer and use it in GitHub Desktop.
Save doole/af4613629d223eb0e416 to your computer and use it in GitHub Desktop.
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 -- 0.33.1
#
# 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=libmpv
profile=libmpv
# 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 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
#
# Disable the behavior that the player will pause if the cache goes below a
# certain fill size.
#cache-pause=no
#
# 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
# 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
# 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="Liberation Sans"
sub-font="Liberation Sans"
sub-font-size=60
sub-color=1/1/0
#sub-auto=fuzzy
# disable screensaver
stop-screensaver = "yes"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment