/mpv-selectformat

An mpv script to select the format (quality) of internet videos

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

selectformat

selectformat is an mpv script that allows you to select the youtube-dl format of the video on the fly.

Based on the unmaintained mpv-youtube-quality.

Screenshot

Install

  1. Download and copy selectformat.lua to your mpv's scripts folder
  2. Add a binding to your mpv's input.conf file (selectformat doesn't add any bindings itself): ctrl+f script-binding selectformat/menu

Features

  • Formats are properly sorted based on codec, protocol, etc.
  • Formats are fetched asynchronously as soon as a network video starts
  • The initially loaded format is pre-selected in the menu
  • More useful info about the formats are displayed compared to mpv-youtube-quality

TODO

  • Fold formats with the same resolution into a submenu
  • Proper scrolling in case the menu is longer that the screen height