I want to convert all my mp4 files in a folder into mp3 in a new folder I've tried something like:
$ffmpeg -i \*.mp4 -vn mp3/\*.mp3
but it didn't work. It involved an infinite loop and my computer didn't respond anymore. Any solution ? Thanks.
for i in *.mp4; do ffmpeg -i "$i" -f mp3 -ab 192k -vn -ar 44100 -ac 2 aud/"${i%.*}.mp3"; done