Created
September 29, 2017 23:40
-
-
Save davidraedev/83a38bea35fe0e72dbd479317375f81b to your computer and use it in GitHub Desktop.
quick and dirty mp3 conversion with ffmpeg, multithreadable
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
#!/bin/bash | |
OUT='mp3/'; | |
for FILE in *.mp4; do | |
if [ ! -f "$OUT$FILE".mp3 ]; then | |
ffmpeg -n -i "$FILE" -codec:a libmp3lame -qscale:a 0 "$OUT$FILE".mp3; | |
fi; | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment