I have this bash script for converting .mp4 video to .mp3 audio. It runs, but does the loop only once, though there are more mp4 files in /ho
.mp4
.mp3
/ho
The answer is to add -nostdin to ffmpeg (wouldn't answer to an old question like this, but still tops on related Google searches).
-nostdin