control
control copied to clipboard
mpv script with various features mainly for controlling playback
Control
Features:
- Always visible OSC when paused.
- Force play/pause on file load.
- Pause on minimize.
- Improved cycle fullscreen when using mouse.
- Cycle pause with video replay at the end of playback.
- Rewind at the end of playback.
- Exit fullscreen at the end of playback.
- List and set/cycle audio devices with volume options.
- Display playback info.
- Customizable frame step.
- Hold to play with speed setting.
Changelog
Installation
control.lua goes in the scripts folder.
control.conf goes in the script-opts folder.
Edit settings in control.conf.
Linux, macOS
~/.config/mpv/scripts/
~/.config/mpv/script-opts/
Windows
%APPDATA%\mpv\scripts
%APPDATA%\mpv\script-opts
Key binds
See control.conf for example key binds.
cycle-fullscreen
Cycle fullscreen and prevent draggable fullscreen window.
cycle-pause
Cycle pause and replay video at the end of playback.
list-audio-devices
Shows a list of audio devices.
cycle-audio-devices
Cycle a list of audio devices separated by space. Devices first need to be added to control.conf.
Usage: no-osd (optional) iv# where i = index, v# = volume (optional).
set-audio-device
Same usage as cycle-audio-devices.
toggle-info
Toggle playback info. Shows frame count, progress, fps and speed.
step
Frame step with step method, delay, rate and muting options.
step-back
Frame step backward.
htp
Hold to play with speed setting and muting options.
htp-back
Hold to play backward.