Last active
March 28, 2020 10:33
-
-
Save smuuf/a89b4ea03bf5343ee85638ca10475ce3 to your computer and use it in GitHub Desktop.
WAV to MP3 bash function
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
# Best to put this in your .bashrc | |
# .wav extension will be replaced with .mp3 automatically. | |
# Usage: wavtomp3 lorem_ipsum.wav | |
function wavtomp3() { | |
ffmpeg -i "$1" -vn -ar 44100 -ac 2 -b:a 320k "${1/.wav/.mp3}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment