3 [ -n "$include_thumbnails" ] && return 0
4 include_thumbnails="$0"
9 if [ "${file%.part}" = "${file}" ] && [ ! -s "$thumb" ] && [ -s "$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} / 11))"
19 for cnt in 1 2 3 4 5 6 7 8 9 10; 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=320:-2,expand=:::::16/9,tile=10:1:10:0:0 \
33 -vo jpeg:quality=85:outdir="${tmp}"\
34 "mf://$tmp/_*.jpg" 2>&-
36 mv "${tmp}/00000001.jpg" "$thumb"