If you want to process a batch of files like converting a list of mp4 files to mp3 :
for file in *; do ffmpeg -i "${file}" "${file}".mp3; done
If you want to process a batch of files like converting a list of mp4 files to mp3 :
for file in *; do ffmpeg -i "${file}" "${file}".mp3; done