summary refs log tree commit diff
path: root/.config/mpv
diff options
context:
space:
mode:
Diffstat (limited to '.config/mpv')
-rw-r--r--.config/mpv/config9
-rw-r--r--.config/mpv/input.conf73
-rw-r--r--.config/mpv/script-opts/uosc.conf128
3 files changed, 172 insertions, 38 deletions
diff --git a/.config/mpv/config b/.config/mpv/config
index 92c199f..f53114a 100644
--- a/.config/mpv/config
+++ b/.config/mpv/config
@@ -33,16 +33,19 @@ sub-ass-force-style=Kerning=yes
 #
 # OSD
 #
-#osc=no
+osc=no
+osd-bar=no
+border=no
+#
 keep-open=yes
 stop-screensaver=yes
 cursor-autohide-fs-only
 osd-font="Iosevka Sparkle"
 # osd-font=monospace
-osd-font-size=14
+osd-font-size=15
 osd-scale-by-window=yes
 osd-fractions=yes
-geometry=50%:50%
+geometry=50%x50%
 hidpi-window-scale
 load-stats-overlay=yes
 load-osd-console=yes
diff --git a/.config/mpv/input.conf b/.config/mpv/input.conf
index 99958ba..2af90bc 100644
--- a/.config/mpv/input.conf
+++ b/.config/mpv/input.conf
@@ -16,7 +16,9 @@ HOME    seek 0 absolute-percent
 END     seek 100 absolute-percent
 
 Shift+RIGHT     playlist-next
+n playlist-next  #! playlist > next
 Shift+LEFT      playlist-prev
+p playlist-prev  #! playlist > prev
 Alt+RIGHT       frame-step
 Alt+LEFT        frame-back-step
 
@@ -25,8 +27,8 @@ Shift+DOWN      add volume -10
 Alt+UP          add volume 5
 Alt+DOWN        add volume -5
 
-PGUP            add chapter 1    # Fn-UP; skip to next chapter
-PGDWN           add chapter -1   # Fn-DOWN; skip to previous chapter
+PGUP            add chapter 1  #! chapter > next
+PGDWN           add chapter -1  #! chapter > prev
 # Meta+UP         add chapter 1
 # Meta+DOWN       add chapter -1
 Shift+PGUP      seek 600
@@ -34,11 +36,13 @@ Shift+PGDWN     seek -600
 Alt+PGUP        add sub-pos -1
 Alt+PGDWN      add sub-pos +1
 
+MBTN_RIGHT script_binding uosc/menu
+
 C script_binding autocrop   # crop black bars from movies (should be activated on scenes with max. contrast to the black bars)
-Ctrl+c script_binding slicing/slicing_mark
-Ctrl+a script_binding slicing/slicing_audio
+Ctrl+c script_binding slicing/slicing_mark  #! slicing > mark
+Ctrl+a script_binding slicing/slicing_audio  #! slicing > audio
 W ignore
-Ctrl+W script_binding webm/display-webm-encoder
+Ctrl+W script_binding webm/display-webm-encoder  #! ... > webm encoder
 
 # A/V/S BINDINGS
 a cycle audio
@@ -46,35 +50,34 @@ v cycle video
 Y cycle-values vf stereo3d=sbs2l:mono stereo3d=ab2l:mono "" # cycle methods to display 3d movie as 2d
 D cycle deinterlace
 
-s cycle sub
+s cycle sub  #! sub > cycle
 S cycle sub down
-e add sub-scale +0.1                  # increase subtitle font size
-w add sub-scale -0.1                  # decrease subtitle font size
-t add sub-pos -1
-r add sub-pos +1
-
-z add sub-delay -0.1
-Z add audio-delay -0.100
-x add sub-delay +0.1
-X add audio-delay 0.100
-
-u cycle-values sub-ass-override "force" "strip" "no"
-U cycle sub-visibility
+e add sub-scale +0.1  #! sub > scale up
+w add sub-scale -0.1  #! sub > scale down
+r add sub-pos +1  #! sub > pos up
+t add sub-pos -1  #! sub > pos down
+
+z add sub-delay -0.1  #! delay > sub -0.1
+x add sub-delay +0.1  #! delay > sub +0.1
+Z add audio-delay -0.1  #! delay > audio -0.1
+X add audio-delay +0.1  #! delay > audio +0.1
+
+u cycle-values sub-ass-override "force" "strip" "no"  #! sub > ass override
+U cycle sub-visibility  #! sub > hide
 Meta+s cycle sub-ass-force-margins
 
 # PLAYER BINDINGS
-O cycle osc
-i script-binding stats/display-stats-toggle
-g screenshot                    # take a screenshot
-G screenshot video        # ...without subtitles
+i script-binding stats/display-stats-toggle  #! ... > stats
+g screenshot  #! screenshot
+G screenshot video
 
-T cycle ontop
-H cycle-values hwdec auto no
-A cycle-values video-aspect "16:9" "4:3" "21:9" "2.35:1" "-1"
-c cycle-values audio-channels "auto-safe" "auto" "stereo"
+# T cycle ontop
+# H cycle-values hwdec auto no
+A cycle-values video-aspect "16:9" "4:3" "21:9" "2.35:1" "-1"  #! aspect-ratio
+c cycle-values audio-channels "auto-safe" "auto" "stereo"  #! audio channels
 
 q quit
-Q quit-watch-later  # saves playback position to resume later
+Q quit-watch-later  #! watch later
 
 = add volume 10
 Shift+= add volume 5
@@ -84,22 +87,22 @@ Shift+- add volume -5
 > frame-step
 < frame-back-step
 
-l cycle-values loop-file yes no
+l cycle-values loop-file yes no  #! loop > file
+L ab-loop  #! loop > A-B
 
 # VAPOURSYNTH/FILTER BINDINGS
 # banding
-b cycle deband
-B vf toggle gradfun
+b cycle deband  #! ... > deband
+B vf toggle gradfun  #! ... > gradfun
 # interpolation
-P vf toggle format=yuv420p,vapoursynth=~/.dotfiles/scripts/motioninterpolation.vpy:4:4
+P vf toggle format=yuv420p,vapoursynth=~~/interpolate.vpy:4:4  #! ... > 60fps
+# P cycle-values profile svp,
 # binaural correction
-h cycle-values af lavfi=[bs2b=profile=default] lavfi=[bs2b=profile=jmeier] lavfi=[bs2b=profile=cmoy] lavfi=[earwax] ""
+h cycle-values af lavfi=[bs2b=profile=default] lavfi=[bs2b=profile=jmeier] lavfi=[bs2b=profile=cmoy] lavfi=[earwax] ""  #! ... > bs2b
 
 WHEEL_UP seek -5
 WHEEL_DOWN seek 5
 
-0 script_binding mouse_coords
+0 script_binding mouse_coords  #! ... > mouse coords
 # 8 script_binding mouse_coords/set
 # 9 script_binding mouse_coords/measure
-
-: script-message-to console type ""
diff --git a/.config/mpv/script-opts/uosc.conf b/.config/mpv/script-opts/uosc.conf
new file mode 100644
index 0000000..446d598
--- /dev/null
+++ b/.config/mpv/script-opts/uosc.conf
@@ -0,0 +1,128 @@
+# timeline size when fully retracted, 0 will hide it completely
+timeline_size_min=2
+# timeline size when fully expanded, in pixels, 0 to disable
+timeline_size_max=40
+# same as ^ but when in fullscreen
+timeline_size_min_fullscreen=0
+timeline_size_max_fullscreen=60
+# same thing as calling toggle-progress command once on startup
+timeline_start_hidden=no
+# timeline opacity
+timeline_opacity=0.8
+# top (and bottom in no-border mode) border of background color to help visually
+# separate elapsed bar from a video of similar color or desktop background
+timeline_border=1
+# when scrolling above timeline, wheel will seek by this amount of seconds
+timeline_step=5
+# display seekable buffered ranges for streaming videos, syntax `color:opacity`,
+# color is an BBGGRR hex code, set to `none` to disable
+timeline_cached_ranges=345433:0.5
+# floating number font scale adjustment
+timeline_font_scale=1
+# briefly show timeline on external changes (e.g. seeking with a hotkey)
+timeline_flash=yes
+
+# timeline chapters style: none, dots, lines, lines-top, lines-bottom
+chapters=lines
+chapters_opacity=0.3
+
+# where to display volume controls: none, left, right
+volume=right
+volume_size=40
+volume_size_fullscreen=60
+volume_opacity=0.8
+volume_border=1
+volume_step=1
+volume_font_scale=1
+volume_flash=yes
+
+# playback speed widget: mouse drag or wheel to change, click to reset
+speed=no
+speed_size=46
+speed_size_fullscreen=68
+speed_opacity=1
+speed_step=0.1
+speed_font_scale=1
+speed_flash=yes
+
+# controls all menus, such as context menu, subtitle loader/selector, etc
+menu_item_height=36
+menu_item_height_fullscreen=50
+menu_opacity=0.8
+menu_font_scale=1
+
+# pause video on clicks shorter than this number of milliseconds, 0 to disable
+pause_on_click_shorter_than=0
+# for how long in milliseconds to show elements they're it's being flashed
+flash_duration=400
+# distances in pixels below which elements are fully faded in/out
+proximity_in=40
+proximity_out=120
+# BBGGRR - BLUE GREEN RED hex color codes
+color_foreground=ffffff
+color_foreground_text=000000
+color_background=000000
+color_background_text=ffffff
+# use bold font weight throughout the whole UI
+font_bold=no
+# hide UI when mpv autohides the cursor
+autohide=no
+# can be: none, flash, static
+pause_indicator=none
+# window controls (minimize, maximize, close, title) show only in no-border
+# mode, but you can disable them completely by setting this to `no`
+window_controls=yes
+# display current media title in top window controls bar
+title=yes
+# load first file when calling next on a last file in a directory and vice versa
+directory_navigation_loops=no
+# file types to look for when navigating media files
+media_types=3gp,avi,bmp,flac,flv,gif,h264,h265,jpeg,jpg,m4a,m4v,mid,midi,mkv,mov,mp3,mp4,mp4a,mp4v,mpeg,mpg,oga,ogg,ogm,ogv,opus,png,rmvb,svg,tif,tiff,wav,weba,webm,webp,wma,wmv
+# file types to look for when loading external subtitles
+subtitle_types=aqt,gsub,jss,sub,ttxt,pjs,psb,rt,smi,slt,ssf,srt,ssa,ass,usf,idx,vt
+# used to approximate text width
+# if you are using some wide font and see a lot of right side clipping in menus,
+# try bumping this up
+font_height_to_letter_width_ratio=0.5
+
+# `chapter_ranges` lets you transform chapter indicators into range indicators.
+#
+# Chapter range definition syntax:
+# ```
+# start_pattern<color:opacity>end_pattern
+# ```
+#
+# Multiple start and end patterns can be defined by separating them with `|`:
+# ```
+# p1|pN<color:opacity>p1|pN
+# ```
+#
+# Multiple chapter ranges can be defined by separating them with comma:
+#
+# chapter_ranges=range1,rangeN
+#
+# One of `start_pattern`s can be a custom keyword `{bof}` that will match
+# beginning of file when it makes sense.
+#
+# One of `end_pattern`s can be a custom keyword `{eof}` that will match end of
+# file when it makes sense.
+#
+# Patterns are lua patterns (http://lua-users.org/wiki/PatternsTutorial).
+# They only need to occur in a title, not match it completely.
+# Matching is case insensitive.
+#
+# `color` is a `bbggrr` hexadecimal color code.
+# `opacity` is a float number from 0 to 1.
+#
+# Examples:
+#
+# Display skippable youtube video sponsor blocks from https://github.com/po5/mpv_sponsorblock
+# ```
+# chapter_ranges=sponsor start<3535a5:0.5>sponsor end
+# ```
+#
+# Display anime openings and endings as ranges:
+# ```
+# chapter_ranges=^op| op$|opening<968638:0.5>.*, ^ed| ed$|^end|ending$<968638:0.5>.*|{eof}
+# ```
+chapter_ranges=^op| op$|opening<968638:0.5>.*, ^ed| ed$|^end|ending$<968638:0.5>.*|{eof}, sponsor start<3535a5:.5>sponsor end