#!/bin/sh # Automate this for i in *.$IN; do ffmpeg -i $IN ${IN:r}.$OUT; done && rm $IN