#!/bin/sh for INFILE in "$@" do echo "$INFILE" COMMON="--quality=0.75 --exposure=-2.5 --peak=141" SPEED="slow" #SPEED="veryfast" SMALL="$COMMON --size=4m --preset=$SPEED" LARGE="$COMMON --size=25m --preset=$SPEED" pack-vid $SMALL "$INFILE" "${INFILE%.mp4}-small.mp4" pack-vid $LARGE "$INFILE" "${INFILE%.mp4}-large.mp4" done