~/.local/bin/video_preview.sh * very slow #!/usr/bin/env bash if [ -z "$1" ]; then echo "usage: ./video_preview VIDEO [HEIGHT=120] [COLS=100] [ROWS=1] [OUTPUT]" exit fi MOVIE=$1 HEIGHT=$2 COLS=$3 ROWS=$4 OUT_FILENAME=$5 # get video name without the path and extension MOVIE_NAME=`basename "${MOVIE}"` OUT_DIR=`pwd` if [ -z "$HEIGHT" ]; then HEIGHT=40 fi if [ -z "$COLS" ]; then COLS=6 fi if [ -z "$..