about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorNash Pillai <47931961+nash-pillai@users.noreply.github.com>2021-08-13 21:44:45 -0400
committerGitHub <noreply@github.com>2021-08-13 21:44:45 -0400
commita66ca0766133b1e3a70dfa1cec8a50b5d78e03c4 (patch)
tree34fcb5c5b2659f21cfe40fb0f0e1b58a84abcaff
parent3688ddd92ba13b88f57f8a8760b4d8155d8c3e0b (diff)
downloadranger-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-xranger/data/scope.sh4
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;;