ffmpegを使う

for x in *.mp4; do ffmpeg -i $x -ab 512k ${x%mp4}mp3; done