about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-08-14 22:08:09 +0200
committertoonn <toonn@toonn.io>2021-08-14 22:08:09 +0200
commitc0b3c5945e8e8b7ab6e7ba933877c064d8f25062 (patch)
tree2ac0001efe244311e64c4bb510cae77875c71bcc
parent3688ddd92ba13b88f57f8a8760b4d8155d8c3e0b (diff)
parentc98e4fadbca3d5cce5e6397fd5c58a0bc93de3a9 (diff)
downloadranger-c0b3c5945e8e8b7ab6e7ba933877c064d8f25062.tar.gz
Merge remote-tracking branch 'nash-pillai/nash-pillai-patch-1'
-rw-r--r--README.md2
-rw-r--r--doc/ranger.12
-rwxr-xr-xranger/data/scope.sh4
3 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index a9bb30ac..6c25595e 100644
--- a/README.md
+++ b/README.md
@@ -90,7 +90,7 @@ For enhanced file previews (with `scope.sh`):
 * `img2txt` (from `caca-utils`) for ASCII-art image previews
 * `w3mimgdisplay`, `ueberzug`, `mpv`, `iTerm2`, `kitty`, `terminology` or `urxvt` for image previews
 * `convert` (from `imagemagick`) to auto-rotate images and for SVG previews
-* `ffmpegthumbnailer` for video thumbnails
+* `ffmpeg`, or `ffmpegthumbnailer` for video thumbnails
 * `highlight`, `bat` or `pygmentize` for syntax highlighting of code
 * `atool`, `bsdtar`, `unrar` and/or `7z` to preview archives
 * `bsdtar`, `tar`, `unrar`, `unzip` and/or `zipinfo` (and `sed`) to preview
diff --git a/doc/ranger.1 b/doc/ranger.1
index 06bb3e46..4d1dc837 100644
--- a/doc/ranger.1
+++ b/doc/ranger.1
@@ -310,7 +310,7 @@ are automatically used when available but completely optional.
 .IP "\-" 2
 \&\f(CW\*(C`convert\*(C'\fR (from \f(CW\*(C`imagemagick\*(C'\fR) to auto-rotate images and for \s-1SVG\s0 previews
 .IP "\-" 2
-\&\f(CW\*(C`ffmpegthumbnailer\*(C'\fR for video thumbnails
+\&\f(CW\*(C`ffmpeg\*(C'\fR or \f(CW\*(C`ffmpegthumbnailer\*(C'\fR for video thumbnails
 .IP "\-" 2
 \&\f(CW\*(C`highlight\*(C'\fR, \f(CW\*(C`bat\*(C'\fR or \f(CW\*(C`pygmentize\*(C'\fR for syntax highlighting of code
 .IP "\-" 2
diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh
index 16870363..e046d6da 100755
--- a/ranger/data/scope.sh
+++ b/ranger/data/scope.sh
@@ -155,7 +155,9 @@ handle_image() {
 
         ## Video
         # video/*)
-        #     # Thumbnail
+        #     # Get embedded thumbnail
+        #     ffmpeg -i "${FILE_PATH}" -map 0:v -map -0:V -c copy "${IMAGE_CACHE_PATH}" && exit 6
+        #     # Get frame 10% into video
         #     ffmpegthumbnailer -i "${FILE_PATH}" -o "${IMAGE_CACHE_PATH}" -s 0 && exit 6
         #     exit 1;;