#!/bin/sh OPTS="" if [ "$1" == "--no-audio" ] then OPTS="--no-audio" shift fi for INFILE in "$@" do echo "$INFILE" #COMMON="$OPTS --hdr --exposure=-2.5 --peak=141 --fps=60000/1001" COMMON="$OPTS --hdr --exposure=-2 --peak=500 --fps=60000/1001" SPEED_SMALL="veryslow" #SPEED_LARGE="medium" SPEED_LARGE="veryslow" SMALL="$COMMON --size=4m --preset=$SPEED_SMALL" LARGE="$COMMON --size=25m --preset=$SPEED_LARGE" pack-vid $SMALL "$INFILE" "${INFILE%.mp4}-small.mp4" pack-vid $LARGE "$INFILE" "${INFILE%.mp4}-large.mp4" done