My build of nnn with minor changes
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

28 lignes
563 B

  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 _