summaryrefslogtreecommitdiff
path: root/config/common/mpv/scripts/script-opts/youtube-quality.conf
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-16 21:54:54 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-16 21:54:54 +0200
commit102e7d997a40a7215b10686ce2b0d006d5a97c2e (patch)
tree86449e1b494d7c209563f6870a5c7493528434aa /config/common/mpv/scripts/script-opts/youtube-quality.conf
parenta58ae56e98a8d9fcbe7fc7beaa976a4d164ee99a (diff)
parent0403da37e183e41d3b949b473038806059130815 (diff)
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'config/common/mpv/scripts/script-opts/youtube-quality.conf')
-rwxr-xr-xconfig/common/mpv/scripts/script-opts/youtube-quality.conf41
1 files changed, 41 insertions, 0 deletions
diff --git a/config/common/mpv/scripts/script-opts/youtube-quality.conf b/config/common/mpv/scripts/script-opts/youtube-quality.conf
new file mode 100755
index 0000000..fc1361b
--- /dev/null
+++ b/config/common/mpv/scripts/script-opts/youtube-quality.conf
@@ -0,0 +1,41 @@
+# KEY BINDINGS
+
+# invoke or dismiss the quality menu
+toggle_menu_binding=ctrl+f
+# move the menu cursor up
+up_binding=UP
+# move the menu cursor down
+down_binding=DOWN
+# select menu entry
+select_binding=ENTER
+
+# formatting / cursors
+selected_and_active=▶ -
+selected_and_inactive=● -
+unselected_and_active=▷ -
+unselected_and_inactive=○ -
+
+# font size scales by window, if false requires larger font and padding sizes
+scale_playlist_by_window=false
+
+# playlist ass style overrides inside curly brackets, \keyvalue is one field, extra \ for escape in lua
+# example {\\fnUbuntu\\fs10\\b0\\bord1} equals: font=Ubuntu, size=10, bold=no, border=1
+# read http://docs.aegisub.org/3.2/ASS_Tags/ for reference of tags
+# undeclared tags will use default osd settings
+# these styles will be used for the whole playlist. More specific styling will need to be hacked in
+#
+# (a monospaced font is recommended but not required)
+style_ass_tags="{\\fnmonospace}"
+
+# paddings for top left corner
+text_padding_x=1
+text_padding_y=1
+
+# how many seconds until the quality menu times out
+menu_timeout=10
+
+#use youtube-dl to fetch a list of available formats (overrides quality_strings)
+fetch_formats=yes
+
+# list of ytdl-format strings to choose from
+quality_strings=[ {"4320p" : "bestvideo[height<=?4320p]+bestaudio/best"}, {"2160p" : "bestvideo[height<=?2160]+bestaudio/best"}, {"1440p" : "bestvideo[height<=?1440]+bestaudio/best"}, {"1080p" : "bestvideo[height<=?1080]+bestaudio/best"}, {"720p" : "bestvideo[height<=?720]+bestaudio/best"}, {"480p" : "bestvideo[height<=?480]+bestaudio/best"}, {"360p" : "bestvideo[height<=?360]+bestaudio/best"}, {"240p" : "bestvideo[height<=?240]+bestaudio/best"}, {"144p" : "bestvideo[height<=?144]+bestaudio/best"} ]