diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | doc/ranger.1 | 2 | ||||
-rwxr-xr-x | ranger/data/scope.sh | 4 |
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;; |