mpv plugin for selecting the format of internet videos.
Lua
36
64 commits
updated Dec 11, 2025
An mpv plugin for selecting the format of internet videos on the fly.
Based on mpv-youtube-quality.


Download
selectformat.lua
Copy selectformat.lua to your mpv scripts directory.
Add a key binding to your mpv
input.conf file
to open the menu.
Example: ctrl+f script-binding selectformat/menu
The following key bindings can be used to navigate the menu:
| Key(s) | Function |
|---|---|
Up or k | Move up |
Down or j | Move down |
PageUp or Ctrl+u | Move up 5 items |
PageDown or Ctrl+d | Move down 5 items |
Home or g | Jump to the first item |
End or G | Jump to the last item |
Right or l | Unfold the resolution under the cursor |
Left or h | Fold the unfolded resolutions |
Enter | Select the item under the cursor |
Esc or q | Close the menu |
Refer to the options section in selectformat.lua
for available options and their default values.
These options can be configured using mpv's script-opts option.
You can change the default format that mpv loads
by configuring mpv's
ytdl-format
option in mpv.conf.
64 commits
Lua
100.0%
mpv plugin for selecting the format of internet videos.
Lua
36
64 commits
updated Dec 11, 2025
An mpv plugin for selecting the format of internet videos on the fly.
Based on mpv-youtube-quality.


Download
selectformat.lua
Copy selectformat.lua to your mpv scripts directory.
Add a key binding to your mpv
input.conf file
to open the menu.
Example: ctrl+f script-binding selectformat/menu
The following key bindings can be used to navigate the menu:
| Key(s) | Function |
|---|---|
Up or k | Move up |
Down or j | Move down |
PageUp or Ctrl+u | Move up 5 items |
PageDown or Ctrl+d | Move down 5 items |
Home or g | Jump to the first item |
End or G | Jump to the last item |
Right or l | Unfold the resolution under the cursor |
Left or h | Fold the unfolded resolutions |
Enter | Select the item under the cursor |
Esc or q | Close the menu |
Refer to the options section in selectformat.lua
for available options and their default values.
These options can be configured using mpv's script-opts option.
You can change the default format that mpv loads
by configuring mpv's
ytdl-format
option in mpv.conf.
64 commits
Lua
100.0%