Awesome
sub transition
This user script for mpv is used to increase the density of immersion. It speeds up the video when there's no subtitles.
For the script to work it is necessary to have an active subtitle track. If there's no active subtitle track, or the next subtitle line hasn't been demuxed yet, the script does nothing.
Installation
The installation process is no different from other mpv scripts.
Install in one line:
$ git clone 'https://github.com/Ajatt-Tools/sub-transition.git' ~/.config/mpv/scripts/sub_transition
Or manually download the folder and save it to ~/.config/mpv/scripts/
.
The location may differ depending on the operating system or if you use a custom fork of mpv.
Menu
To open the menu, press shift+n
.
Change settings
Use Vim keys to navigate the menu.
j
andk
to move between entries.h
andl
to change the values by0.1
.shift+h
andshift+l
to change the values by0.5
.
You can also use arrow keys if your keyboard has them.
Global key bindings
Add the following to your input.conf
to enable or change global key bindings:
t script-binding sub_transition_toggle_fast_forward
r script-binding sub_transition_skip_immediately
N script-binding sub_transition_menu_open
- <kbd>t</kbd> toggles fast-forward transition on/off. If no subtitles are played, the player will speed up playback until the next subtitle starts.
- <kbd>r</kbd> toggles instant skip transitions. If no subtitles are played, the player will immediately skip until the beginning of the next subtitle.
Note that only one transition mode can be active at a time (either fast-forward or instant skip).
Key bindings (with menu open)
Esc
orq
closes the menu.t
toggles transitions.s
saves current configuration to~/.config/mpv/script-opts/sub_transition.conf
.
Settings
start enabled
- enable transitions when mpv startsnotifications
- notify when speed changesstart delay
- delay before speedupreset before
- seconds to stop short of the next subtitlemin duration
- minimum duration of a transitionnormal speed
- reset back to this speed when a new subtitle startsinter speed
- speed during speedupmenu font size
- font size of the menupause on start
- pause when a subtitle startspause before end
- pause before a subtitle endshide_subs_when_playing
- hide subtitles when playback is active