Skip to content

Instantly share code, notes, and snippets.

@stav
Created July 21, 2016 03:51
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 stav/2ff53165b927613bd7983a1c20f2c70d to your computer and use it in GitHub Desktop.
Save stav/2ff53165b927613bd7983a1c20f2c70d to your computer and use it in GitHub Desktop.
mpv notes
mpv --input-test --force-window --idle
mpv --input-keylist
mpv --list-options
Keyboard
r and t
Move subtitles up/down
I
Show filename on the OSD
j and J
Cycle through the available subtitles
x and z
Adjust subtitle delay by +/- 0.1 seconds
f
Toggle fullscreen (see also --fs)
9 and 0
Decrease/increase volume
SPACE
Pause (pressing again unpauses)
.
Step forward
,
Step backward
--include=<configuration-file>
Specify configuration file to be parsed after the default ones.
--load-scripts=<yes|no>
If set to no, don't auto-load scripts from the scripts configuration subdirectory (usually ~/.config/mpv/scripts/). (Default: yes)
--script=<filename>
Load a Lua script. You can load multiple scripts by separating them with commas (,).
--secondary-sid=<ID|auto|no>
Select a secondary subtitle stream. This is similar to --sid. If a secondary subtitle is selected, it will be rendered as toptitle (i.e. on the top of the screen) alongside the normal subtitle, and provides a way to render two subtitles at once.
--sub-auto=<no|exact|fuzzy|all>, --no-sub-auto
Load additional subtitle files matching the video filename
all: Load all subs in the current and --sub-paths directories.
--sub-paths=<path1:path2:...>
Specify extra directories to search for subtitles matching the video. Multiple directories can be separated by ":" (";" on Windows). Paths can be relative or absolute. Relative paths are interpreted relative to video file directory.
Assuming that /path/to/video/video.avi is played and --sub-paths=sub:subtitles:/tmp/subs is specified, mpv searches for subtitle files in these directories:
/path/to/video/
/path/to/video/sub/
/path/to/video/subtitles/
/tmp/subs/
the sub configuration subdirectory (usually ~/.config/mpv/sub/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment