Saturday, March 12, 2016

Convert mp4 to mp3 using ffmpeg

How to convert mp4 files from youtube to mp3:


find . -type f -name "*.mp4" -exec ffmpeg -i "{}" -b:a 192K -vn "{}.mp3" -n ;

That can be re-run without issue, it will not overwrite files because of the "-n" flag.

No comments:

Post a Comment