summaryrefslogtreecommitdiffstats
path: root/mpv.md
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2022-11-22 07:22:37 -0500
committerSacha Chua <sacha@sachachua.com>2022-11-22 07:22:37 -0500
commite4d3239064086f3ad983ed03d277c17d12953451 (patch)
tree80abb0b28c809ef5927eaa3006aa1ac8506b4546 /mpv.md
parent8ee180d896176e9eb097ed5bf0574dced48c2f85 (diff)
downloademacsconf-wiki-e4d3239064086f3ad983ed03d277c17d12953451.tar.xz
emacsconf-wiki-e4d3239064086f3ad983ed03d277c17d12953451.zip
Add mpv profile
Diffstat (limited to 'mpv.md')
-rw-r--r--mpv.md72
1 files changed, 72 insertions, 0 deletions
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 &copy; 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.
+<https://mpv.io/manual/stable/#configuration-files> 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
+```
+