Converting Multiple Files from flv or mp4 to mp3 with ffmpeg

Here’s another one liner to convert every flv or mp4 file in a directory to mp3 with ffmpeg. (the example asumes you’re converting mp4 to mp3. If you are converting flv, replace mp4 for flv in the output file).

for i in *; do ffmpeg -i "$i" "${i%mp4}mp3"; done
Share This!

Add a Comment

Your email address will not be published.

Sign up for our Newsletter

Download "Google Search Pro"

Enter your email and stay on top of things,

Subscribe!