#!/usr/bin/bash
old_extension=$1
new_extension=$2

for i in *."$old_extension";
  do ffmpeg -i "$i" -c:v copy -c:a aac -ab 128k -ar 44100 "${i%.*}.$new_extension";
done
exit 0
