From e4d3239064086f3ad983ed03d277c17d12953451 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Tue, 22 Nov 2022 07:22:37 -0500 Subject: Add mpv profile --- mpv.md | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 mpv.md (limited to 'mpv.md') diff --git a/mpv.md b/mpv.md new file mode 100644 index 00000000..810a98a8 --- /dev/null +++ b/mpv.md @@ -0,0 +1,72 @@ +[[!meta title="MPV tips"]] +[[!meta copyright="Copyright © 2022 Sacha Chua"]] + +The default position of subtitles tends to hide important details like the mode line or minibuffer. If you use `mpv` to view videos, you can adjust the position of subtitles with the "r" and "R" keyboard shortcuts, which run `add sub-pos -1` and `add sub-pos +1` respectively. + +Alternatively, you can configure your MPV to resize videos and show +subtitles underneath. On Linux, you can create or edit +`~/.config/mpv/mpv.conf`. On Windows, if compiled with MinGW, MPV will +look for your configuration in `%APPDATA%\mpv\mpv.conf`. You can +override the directory that contains mpv.conf by setting the +`MPV_HOME` environment variable on either system. + has more details +on the format and location of the config file. + +For regular use, you might prefer to watch horizontally-centered +videos with centered subtitles underneath. Here's the `mpv.conf` for +that. + +``` +# Positioning +video-zoom=-0.15 +video-align-x=1 +video-align-y=-1 +sub-use-margins=yes +sub-scale-by-window=yes +sub-pos=103 +sub-margin-x=110 +sub-margin-y=60 +sub-align-x=left +# Style +sub-color="1/0.82/0" +sub-blur=0.2 +sub-scale=0.9 +sub-font-size=30 +sub-border-size=0 +sub-border-color=0/1 +sub-shadow-color=0/1 +sub-shadow-offset=1.2 +sub-ass-force-style=Kerning=yes +sub-ass-line-spacing=0 +``` + +When we broadcast videos for EmacsConf 2022, we place them on the top +right so that there's room underneath to display a conference logo and +a talk URL, and we align the text left so that it doesn't feel like +it's shifting around a lot. If you want to do the same, here's the +configuration: + +``` +# Positioning +video-zoom=-0.15 +video-align-x=1 +video-align-y=-1 +sub-use-margins=yes +sub-scale-by-window=yes +sub-pos=103 +sub-margin-x=110 +sub-margin-y=60 +sub-align-x=left +# Style +sub-color="1/0.82/0" +sub-blur=0.2 +sub-scale=0.9 +sub-font-size=30 +sub-border-size=0 +sub-border-color=0/1 +sub-shadow-color=0/1 +sub-shadow-offset=1.2 +sub-ass-force-style=Kerning=yes +sub-ass-line-spacing=0 +``` + -- cgit v1.2.3