Created
April 16, 2023 10:15
-
-
Save squio/bc8e893e2d109321f37640649d09ece5 to your computer and use it in GitHub Desktop.
convert any file containing an audio stream to MP3
This file contains hidden or 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/sh | |
# convert any file containing an audio stream to MP3 | |
while [ -s "$1" ] | |
do | |
FILE="$1" | |
BASE=${FILE%.*} | |
ffmpeg -i "$FILE" -ab 128k -ac 2 -codec:a libmp3lame "${BASE}.mp3" | |
shift | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment