#! /bin/zsh source ~/.zsh/files-fs local pic=$1 local music=$2 local ext=`get-ext $music` local base=`basename $music .$ext` local name=$base.mp4 local size=`exiftool $pic | grep "Image Size" | tr -d " " | cut -d : -f 2` avconv -f image2 -i $pic -i $music -c:a copy -c:v libx264 -s $size $name