Skip to content

Instantly share code, notes, and snippets.

@blackhalt blackhalt/video_th.sh
Last active Feb 10, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.