Skip to content

Instantly share code, notes, and snippets.

@neuthral
Created August 7, 2022 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neuthral/f7dcee51bfd69131808e08cf60a144e0 to your computer and use it in GitHub Desktop.
Save neuthral/f7dcee51bfd69131808e08cf60a144e0 to your computer and use it in GitHub Desktop.
mpv.conf
# ~/.config/mpv/mpv.conf
#The default profile which sets some recommended settings
profile=gpu-hq
#The called API
#Use "opengl" if you have compatibility issues
gpu-api=vulkan
vo=gpu #tct
#Decoding API for 8bit h264 (or whatever your CPU supports) content
#Only should be used when you get many frame drops
#hwdec=dxva2-copy
#hwdec=vdpau
#Cursor hide in ms
cursor-autohide=1000
#Don't close the player after finishing the video
keep-open=yes
#The last position of your video is saved when quitting mpv
save-position-on-quit
#Don't show a huge volume box on screen when turning the volume up/down
osd-bar=no
#Audio language priority
alang=en,eng,fi,fin
#Subtitle language priority
slang=en,eng,fi,fin
# The default --ytdl-format is bestvideo+bestaudio/best.
# For youtube videos that have 4K resolutions available, this may mean that your
# device will struggle to decode 4K VP9 encoded video in software even if the attached
# monitor is much lower resolution.
# If you wish to avoid a certain codec altogether because you cannot hardware-decode it, you can add this to the format selector. For example, we can additionally choose to ignore VP9 as follows
ytdl-format="bestvideo[height<=?700][vcodec!=vp9]+bestaudio/best"
#ontop=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment