summaryrefslogtreecommitdiff
path: root/ar/.config/mpv/script-opts
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-02 05:47:29 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-02 05:47:29 +0900
commite465f7f06b290dbccdb499b024f39b22158c64bb (patch)
tree6b88fd07fa60b5b6145d301d0ff6539cc4c7b5c5 /ar/.config/mpv/script-opts
parent692d838f6d84c207d08501b2db034294ae42a892 (diff)
updates
Diffstat (limited to 'ar/.config/mpv/script-opts')
-rw-r--r--ar/.config/mpv/script-opts/blur_edges.conf26
-rw-r--r--ar/.config/mpv/script-opts/gallery_worker.conf18
-rw-r--r--ar/.config/mpv/script-opts/mpv_crop_script.conf4
3 files changed, 48 insertions, 0 deletions
diff --git a/ar/.config/mpv/script-opts/blur_edges.conf b/ar/.config/mpv/script-opts/blur_edges.conf
new file mode 100644
index 0000000..b69ce99
--- /dev/null
+++ b/ar/.config/mpv/script-opts/blur_edges.conf
@@ -0,0 +1,26 @@
+# whether the script is active by default
+active=yes
+
+# which black bars to replace with blur
+# can be "all", "horizontal" or "vertical"
+mode=all
+
+# intensity of the blur
+# see the ffmpeg filter doc https://ffmpeg.org/ffmpeg-filters.html#boxblur
+# tl;dr higher means blurrier
+blur_radius=10
+blur_power=10
+
+# the minimum size of the black bars for the effect to apply
+minimum_black_bar_size=3
+
+# if the aspect ratio of the video changes, we need to reapply the filter
+# since this can happen very quickly, wait a short delay before doing it
+reapply_delay=0.5
+
+# until recently, resuming files that had the script active would unselect the video
+# if your mpv version is more recent than feb 2 2018, you can set this to yes
+watch_later_fix=no
+
+# only apply the blur effect when mpv is set to fullscreen
+only_fullscreen=yes
diff --git a/ar/.config/mpv/script-opts/gallery_worker.conf b/ar/.config/mpv/script-opts/gallery_worker.conf
new file mode 100644
index 0000000..d56ab00
--- /dev/null
+++ b/ar/.config/mpv/script-opts/gallery_worker.conf
@@ -0,0 +1,18 @@
+# mpv-gallery-view | https://github.com/occivink/mpv-gallery-view
+# This is the settings file for scripts/gallery-thumbgen.lua and its copies
+# File placement: script-opts/gallery_worker.conf
+# Defaults: https://github.com/occivink/mpv-gallery-view/blob/master/script-opts/gallery_worker.conf
+
+# accepts a |-separated list of URL patterns which gallery.lua should thumbnail using youtube-dl.
+# The patterns are matched after the http(s):// part of the URL.
+#^ matches the beginning of the URL, $ matches its end, and you should use % before any of the characters ^$()%|,.[]*+-? to match that character.
+#
+#Examples
+# will exclude any URL that starts with http://youtube.com or https://youtube.com:
+# ytdl_exclude=^youtube%.com
+# will exclude any URL that ends with .mkv or .mp4:
+# ytdl_exclude=%.mkv$|%.mp4$
+# See more lua patterns here: https://www.lua.org/manual/5.1/manual.html#5.4.1
+#
+#See also: ytdl_hook-exclude in mpv's manpage.
+ytdl_exclude=
diff --git a/ar/.config/mpv/script-opts/mpv_crop_script.conf b/ar/.config/mpv/script-opts/mpv_crop_script.conf
new file mode 100644
index 0000000..1c9abb2
--- /dev/null
+++ b/ar/.config/mpv/script-opts/mpv_crop_script.conf
@@ -0,0 +1,4 @@
+output_template=~/Pictures/screenshots/mpv_${filename} ${#pos:%02h.%02m.%06.3s} ${!full:${crop_w}x${crop_h} ${%unique:%03d}}.png
+create_directories=yes
+keep_original=no
+disable_keybind=yes