My build of nnn with minor changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vidthumb 563 B

5 years ago
5 years ago
123456789101112131415161718192021222324252627
  1. #!/usr/bin/env sh
  2. # Description: Generate video thumbnails and view them
  3. #
  4. # Dependencies:
  5. # ffmpegthumbnailer: https://github.com/dirkvdb/ffmpegthumbnailer
  6. # lsix: https://github.com/hackerb9/lsix
  7. #
  8. # Shell: POSIX compliant
  9. # Author: Arun Prakash Jana
  10. mkdir .nthumbs > /dev/null 2>&1
  11. for file in *; do
  12. if [ -f "$file" ]; then
  13. ffmpegthumbnailer -i "$file" -o .nthumbs/"${file%%.*}".jpg 2> /dev/null
  14. fi
  15. done
  16. # render thumbnails in lsix
  17. lsix .nthumbs/*
  18. # remove the thumbnails
  19. rm -rf .nthumbs
  20. printf "Press any key to exit..."
  21. read -r _