#! /bin/zsh mm-time () { local mm=$1 local name=${mm:r} local ext=${mm:e} local s=$2 local out=${name}-${s}.${ext} avconv -y -i $mm -t $s $out }