Created
September 29, 2016 09:54
-
-
Save louisswarren/223041e8e52fa1c2bd09ba21953bb1c6 to your computer and use it in GitHub Desktop.
Convert mp4 to mp3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in *.mp4; do | |
target="${f%.mp4}.mp3" | |
ffmpeg -i "$f" -vn -acodec libmp3lame -ac 2 -ab 320k -ar 48000 "$target" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment