Last active
October 19, 2023 21:30
-
-
Save Rainyan/cdd945c2ae35e04d065f2d206a8478da to your computer and use it in GitHub Desktop.
mpv configs. "~/.config/mpv/", "%appdata%\mpv".
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Undo 981a9372 | |
WHEEL_UP seek 10 | |
WHEEL_DOWN seek -10 | |
WHEEL_LEFT add volume -2 | |
WHEEL_RIGHT add volume 2 | |
# Increase/decrease subtitle font size | |
HOME add sub-scale +0.1 | |
END add sub-scale -0.1 | |
# Rotate image by 90 degrees | |
F1 no-osd cycle video-rotate 90 | |
F2 no-osd cycle video-rotate -90 | |
# Zoom in/out | |
F3 no-osd cycle video-zoom 0.5 | |
F4 no-osd cycle video-zoom -0.5 | |
# Audio compressing | |
F5 af toggle "lavfi=[acompressor=6]" | |
# Force upmix improper stereo mix as mono. | |
# Typical use case is a live recording of a mono microphone input | |
# that's been output as a stereo track, resulting in muted right speaker track. | |
F6 af toggle "lavfi=[pan=1c|c0=1*c0+1*c1]" ; cycle-values osd-msg1 "Enable stereo upmix" "Disable stereo upmix" | |
# Reset any video offsets like rotation, zoom, etc. | |
F7 no-osd set video-rotate 0 ; set video-zoom 0 ; set video-pan-x 0 ; set video-pan-y 0 ; show-text "Reset video offsets" | |
# Dumb workaround to clear the stuck osd message. | |
F10 no-osd cycle-values osd-msg1 "" | |
# Move video rectangle | |
Alt+left add video-pan-x 0.01 | |
Alt+right add video-pan-x -0.01 | |
Alt+up add video-pan-y 0.01 | |
Alt+down add video-pan-y -0.01 | |
# Playlist navigation | |
MBTN_BACK playlist-prev ; show-text "Playlist previous" | |
MBTN_FORWARD playlist-next ; show-text "Playlist next" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://mpv.io/manual/stable/ | |
# Disable mpv's own OSC for custom scripts to override. | |
# osc=no | |
# no loud noises pls | |
volume=50 | |
# no dubs pls | |
alang=jpn,ja,eng,en,en-us | |
# no subs pls | |
sub-visibility=no | |
# ...but use them in this order if needed | |
slang=eng,en,en-us,jpn,jp | |
# ...and make them small | |
sub-scale=0.5 | |
# cache data for stream buffer | |
#cache=4096 # Old syntax, invalid on latest. Now defaults to "auto". | |
# Instead, see docs for --cache-secs and --demuxer-max-bytes for adjusting. | |
##cache-secs=60 # Old syntax 2, using demuxer-max-bytes for better compat. | |
cache=yes | |
demuxer-max-bytes=100MiB | |
#vo=gpu | |
# Note from mpv docs: | |
# See --vo=help for a list of compiled-in video output drivers. | |
# The recommended output driver is --vo=gpu, which is the default. All other | |
# drivers are for compatibility or special purposes. If the default does not | |
# work, it will fallback to other drivers (in the same order as listed by | |
# --vo=help). | |
#profile=gpu-hq | |
## Windows | |
# GPU decode where possible | |
# ANGLE requires the libEGL.dll and libGLESv2.dll (if not statically built). | |
#gpu-context=angle | |
#hwdec=auto-safe | |
##gpu-api=d3d11 | |
##d3d11va-zero-copy=yes | |
##opengl-es=yes | |
## Linux | |
# GPU decode where possible | |
# hwdec=auto-safe | |
# Limit stream quality for performance on laptops etc. The value "[height <=? 720]" implies 30 fps for YouTube. | |
#ytdl-format=[height <=? 720] | |
# Override mpv's no-playlist default. | |
ytdl-raw-options=yes-playlist= | |
# Some smooth interp tests for laggy footage | |
#interpolation=yes | |
#video-sync=display-resample | |
#deband=no | |
#tscale=box | |
#tscale-window=quadric | |
#tscale-clamp=0.0 | |
#tscale-radius=1.025 | |
# This sometimes allows seeking on streams where ffmpeg might not expect it (YouTube, etc) | |
force-seekable=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration overrides for the mpv_thumbnail_script | |
# GitHub: https://github.com/TheAMM/mpv_thumbnail_script | |
# This script path: <mpv configs path>/mpv/script-opts/mpv_thumbnail_script.conf | |
# Note to future self on setting up multi-threading: see the Github docs for details. | |
# (Basically duplicate the server jobs config.) | |
# Use mpv to generate thumbnail even if ffmpeg is found in PATH | |
# ffmpeg is slightly faster than mpv but lacks support for ordered chapters in MKVs, | |
# which can break the resulting thumbnails. You have been warned. | |
# Defaults to yes (don't use ffmpeg) | |
prefer_mpv=yes | |
# Explicitly disable subtitles on the mpv sub-calls | |
# mpv can and will by default render subtitles into the thumbnails. | |
# If this is not what you wish, set mpv_no_sub to yes | |
# Defaults to no | |
mpv_no_sub=yes | |
# The maximum dimensions of the thumbnails, in pixels | |
# Defaults to 200 and 200 | |
thumbnail_width=300 | |
thumbnail_height=300 | |
# The thumbnail count target | |
# (The default of 150 will result in a thumbnail every ~10 seconds for a 25 minute video) | |
thumbnail_count=38 | |
# Try to grab the raw stream and disable ytdl for the mpv subcalls | |
# Much faster than passing the url to ytdl again, but may cause problems with some sites | |
# Defaults to yes | |
remote_direct_stream=yes | |
# Allow thumbnailing network paths (naive check for "://") | |
# Defaults to no | |
thumbnail_network=yes | |
# Override thumbnail count, min/max delta, as above | |
remote_thumbnail_count=19 | |
remote_min_delta=30 | |
remote_max_delta=180 | |
# Try to grab the raw stream and disable ytdl for the mpv subcalls | |
# Much faster than passing the url to ytdl again, but may cause problems with some sites | |
# Defaults to yes | |
remote_direct_stream=yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment