I have 228 mp4 files (2.6GB) and would like to extract audio from them (mp3 or ogg). I want to batch extract them - preferably with bash. I'm not sure if all files use the same audio codec as they were recorded in different years, ranging from 2006-2012.
I want to loop through all of them, pick the file name, detect audio codec and use ffmpeg to extract the audio.
Is it possible?