#!/bin/sh help(){ cat <.[avi|dv|mpg|qt] Options: END exit 0 } while getopts h name "$@" do case $name in *) help ;; esac done let shiftind=$OPTIND-1 shift $shiftind if test "$#" != "1" then help fi case $1 in *.mpg) input="$1" base=`echo $input | sed "s/\.mpg$//"` ;; *.dv) input="$1" base=`echo $input | sed "s/\.dv$//"` ;; *.avi) input="$1" base=`echo $input | sed "s/\.avi$//"` ;; *.qt) input="$1" base=`echo $input | sed "s/\.qt$//"` ;; *) help ;; esac echo Slow motion $input to ${base}-slow.avi video... ffmpeg -i $input -f yuv4mpegpipe -pix_fmt yuv411p -y /dev/stdout | yuvcorrect -T INTERLACED_BOTTOM_FIRST 2>/dev/null | yuvdeinterlace -d | yuvcorrect -T PROGRESSIVE 2>/dev/null | y4mscaler -v 0 -I sar=NTSC -I active=720x360+0+60 \ -O sar=NTSC_WIDE -O size=720x480 | yuvfps -s 30000:1001 -r 30000:1001 | ffmpeg -f yuv4mpegpipe -i /dev/stdin \ -interlace 0 -vcodec dvvideo \ -target dv -y ${base}-slow.avi