about summary refs log tree commit diff stats
path: root/modules/by-name/lf/lf/ctpv/prev/video.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/by-name/lf/lf/ctpv/prev/video.sh')
-rw-r--r--modules/by-name/lf/lf/ctpv/prev/video.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/by-name/lf/lf/ctpv/prev/video.sh b/modules/by-name/lf/lf/ctpv/prev/video.sh
new file mode 100644
index 00000000..e42e3612
--- /dev/null
+++ b/modules/by-name/lf/lf/ctpv/prev/video.sh
@@ -0,0 +1,17 @@
+#! /usr/bin/env dash
+
+# shellcheck source=/dev/null
+SHELL_LIBRARY_VERSION="2.1.2" . %SHELL_LIBRARY_PATH
+
+# shellcheck disable=SC2269
+f="$f"
+# shellcheck disable=SC2269
+cache_f="$cache_f"
+
+. %HELPERS
+
+video() {
+    ffmpegthumbnailer -i "$f" -o "$cache_f" -s 0 -t 50% 2>/dev/null
+}
+
+convert_and_show_image video