Thursday, July 12, 2018

ffmpeg: Extract audio to mp3 from multiple mp4 video files

for i in *.mp4; do ffmpeg -i "$i" -q:a 0 -map a "$(basename "$i" .mp4)".mp3 ; done