Skip to content

Instantly share code, notes, and snippets.

@deivuh
Created May 20, 2017 16:07
Show Gist options
  • Save deivuh/31d06b809294e1b707f2ef1c7b226754 to your computer and use it in GitHub Desktop.
Save deivuh/31d06b809294e1b707f2ef1c7b226754 to your computer and use it in GitHub Desktop.
mpv configuration for osx.
# vim: syntax=config
#
# mpv configuration file
#
# Configuration files are read system-wide from /usr/local/etc/mpv.conf
# and per-user from ~/.config/mpv/mpv.conf, where per-user settings override
# system-wide settings, all of which are overridden by the command line.
#
# 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.
#
# 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=vdpau:icc-profile-auto
# vo=opengl-hq:interpolation:scale=ewa_lanczossharp:icc-profile-auto
# vo=opengl-hq:interpolation:icc-profile-auto
# vo=opengl-hq:scale=ewa_lanczossharp:icc-profile-auto
# vo=opengl-hq:icc-profile-auto
vo=opengl:icc-profile-auto
# drop frames in case your computer is to slow for realtime playback
# framedrop=vo
# Start in fullscreen mode by default.
#fs=yes
# force starting with centered window
geometry=50%+100%+50
# no border
border=no
# 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=no
# On Screen Display
osd-level=1
osd-bar-align-y=0
osd-bar-h=4
osd-border-size=0.4
osd-color='#CCFFFFFF'
osd-border-color='#99000000'
osd-font="Hiragino Maru Gothic Pro"
osd-playing-msg='file: ${filename}'
osd-duration=2000
# Terminal Playing Message
# term-playing-msg='FPS: ${fps}'
msg-color
term-osd-bar
# Keep the player window on top of all other windows.
ontop=yes
# keep the player open when a file's end is reached
keep-open=yes
# no autoplay
pause=yes
# don't force the immediate creation of a window
force-window=no
# use max quality for HLS streams
hls-bitrate=max
##################
# audio settings #
##################
# Specify default audio driver (see --ao=help for a list).
ao=coreaudio
# audio-pitch-correction=yes
# Disable softvol usage, and always use the system mixer if available.
# softvol=yes
# Scale audio tempo by playback speed without altering pitch. (By default does
# nothing if playback speed is not changed. May introduce artifacts.)
# af=scaletempo
# af=drc
# af=surround
# 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
volume=20
##################
# other settings #
##################
# Pretend to be a web browser. Might fix playback with some streaming sites,
# but also will break with shoutcast streams.
#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
#
# 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
#
# Disable the behavior that the player will pause if the cache goes below a
# certain fill size.
#cache-pause=no
#
# Read ahead about 5 seconds of audio and video packets.
demuxer-readahead-secs=10.0
# Display English subtitles if available.
# slang=en
# slang=chi,zho,zh,jav,ja,eng,en
# Play Finnish audio if available, fall back to English otherwise.
# alang=fi,en
# alang=jp,jpn,en,eng,it,ita
# Change subtitle encoding. For Arabic subtitles use 'cp1256'.
# If the file seems to be valid UTF-8, prefer UTF-8.
sub-auto=fuzzy
sub-codepage=utf8:gb18030
# Enable hardware decoding if available. Often, this requires using an certain
# video output, otherwise no hardware decoding will be used.
# hwdec=auto
# hwdec=vda
# save screenshots on the desktop
screenshot-format=png
screenshot-png-compression=8
screenshot-png-filter=5
screenshot-template='~/Desktop/%F (%P) %n'
save-position-on-quit
# enable/disable OSX media keys
input-media-keys=yes
# autohide the cursor after 1s
cursor-autohide=1000
############
# Profiles #
############
# The options declared as part of profiles override global default settings,
# but only take effect when the profile is active.
# The following profile can be enabled on the command line with: --profile=vdpau
#[vdpau]
# The profile forces the vdpau VO.
#vo=vdpau
# Use hardware decoding (this might break playback of some h264 files)
#hwdec=vdpau
# Most video filters do not work with hardware decoding.
#vf-clr=yes
# [high-quality]
# profile-desc="High quality VO settings"
# vo=opengl-hq:scale=ewa_lanczossharp:cscale=ewa_lanczossoft:dscale=mitchell:tscale=oversample:scale-antiring=0.8:cscale-antiring=0.9:dither-depth=auto:scaler-resizes-only:sigmoid-upscaling:target-prim=bt.709:gamma=0.9338:fancy-downscaling:temporal-dither:pbo:3dlut-size=256x256x256:icc-profile-auto
#
# [mid-quality]
# profile-desc="Medium quality VO settings"
# vo=opengl-hq:scale=spline36:cscale=spline36:dscale=mitchell:tscale=oversample:scale-antiring=0.8:cscale-antiring=0.9:dither-depth=auto:scaler-resizes-only:sigmoid-upscaling:target-prim=bt.709:gamma=0.9338:fancy-downscaling
#
# [low-quality]
# profile-desc="Low energy VO settings"
# vo=opengl:scale=lanczos:dscale=mitchell:tscale=oversample:scale-radius=2:dither-depth=auto:scaler-resizes-only:sigmoid-upscaling:target-prim=bt.709:gamma=0.9338
# hwdec=auto
#
# [lower-quality]
# vo=opengl:icc-profile-auto
# [default]
# profile=mid-quality
# You can also include other configuration files.
#include=/path/to/the/file/you/want/to/include
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment