Skip to content

Instantly share code, notes, and snippets.

@blackhalt
Last active February 10, 2019 23:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blackhalt/6a7bd08a4464cf7448203c6f80025642 to your computer and use it in GitHub Desktop.
Save blackhalt/6a7bd08a4464cf7448203c6f80025642 to your computer and use it in GitHub Desktop.
Video Thumbnail Renew
#!/bin/bash
#For Nemo, Nautilus actions: Exec=/blabla/video_th.sh '%P/%f'
# Ar specsimboliem neJiet :/
# gg=$(echo -n "$aa" | iconv -f UTF8 -t ASCII//TRANSLIT | tr ' ' '_')
fn=$(echo -n "file://`readlink -f $1`" | md5sum | awk '{print $1}')
find $HOME/.cache/thumbnails/ -name "$fn." -exec rm {} \;
ffmpegthumbnailer -s 128 -i "$1" -o $HOME/.cache/thumbnails/normal/"$fn".png -c png -t 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment