diff options
author | Nash Pillai <47931961+nash-pillai@users.noreply.github.com> | 2021-08-13 21:44:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-13 21:44:45 -0400 |
commit | a66ca0766133b1e3a70dfa1cec8a50b5d78e03c4 (patch) | |
tree | 34fcb5c5b2659f21cfe40fb0f0e1b58a84abcaff | |
parent | 3688ddd92ba13b88f57f8a8760b4d8155d8c3e0b (diff) | |
download | ranger-a66ca0766133b1e3a70dfa1cec8a50b5d78e03c4.tar.gz |
Use Embedded Thumbnails
Use ffmpeg to get embedded thumbnails. As far as I know this is only supported by mp4 videos.
-rwxr-xr-x | ranger/data/scope.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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;; |