Last active
February 10, 2019 23:41
-
-
Save blackhalt/6a7bd08a4464cf7448203c6f80025642 to your computer and use it in GitHub Desktop.
Video Thumbnail Renew
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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