3 [ -n "$include_thumbnails" ] && return 0
4 include_thumbnails="$0"
9 if [ ! -e "$thumb" ] && [ -f "$file" ]; then
12 | mplayer -input nodefault-bindings -nosound -vo null -identify -frames 0 "$file" 2>&- \
13 | sed -rn 's:ID_LENGTH=(.*)(\..*)$:\1:p;' \
16 chunk="$((${l:-10} / 5))"
19 for cnt in 1 2 3 4; do
21 | mplayer -input nodefault-bindings -nosound -benchmark \
22 -noconfig all -really-quiet \
23 -frames 1 -ss "$((cnt * chunk))" \
25 -vo jpeg:quality=100:outdir="${tmp}" \
27 mv "${tmp}/00000001.jpg" "${tmp}/_${cnt}.jpg"
30 | mplayer -input nodefault-bindings -nosound -benchmark \
31 -noconfig all -really-quiet \
32 -vf scale=159:-2,tile=2:2:4:0:2 \
33 -vo jpeg:quality=96:outdir="${tmp}"\
34 "mf://$tmp/_*.jpg" 2>&-
36 mv "${tmp}/00000001.jpg" "$thumb"
39 elif [ ! -e "$thumb" ]; then