- printf '' \
- | mplayer -input nodefault-bindings -nosound -benchmark \
- -noconfig all -really-quiet \
- -vf scale=159:-2,tile=2:2:4:0:2 \
- -vo jpeg:quality=96:outdir="${tmp}"\
- "mf://$tmp/_*.jpg" 2>&-
-
- mv "${tmp}/00000001.jpg" "$thumb"
- rm -r "${tmp}"
-
- elif [ ! -e "$thumb" ]; then
- touch "$thumb"
+
+ montage "$tmp"/thumb_[0-9].jpg \
+ -background "$bgcolor" \
+ -tile 10x1 -geometry 320x180+0+0 \
+ -interlace line -quality 85 "$thumb"
+ rm -r -- "${tmp}"