#!/bin/bash if [ $# -eq 0 ] then echo "Usage $0 [file1 [file2 ..]]" >&2 fi while (( "$#" )) do ffmpeg -i "$1" -acodec ac3 -vcodec copy "ac3-$1" shift done