Skip to content

Instantly share code, notes, and snippets.

@almirbraggio
Last active December 9, 2023 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almirbraggio/fff4cbb200b0a4a8f81376f3dc36efb3 to your computer and use it in GitHub Desktop.
Save almirbraggio/fff4cbb200b0a4a8f81376f3dc36efb3 to your computer and use it in GitHub Desktop.
wma, flac or m4a to mp3
$ sudo apt-get install lame flac libav-tools
$ for f in *.wav; do lame -V0 -h -b 160 --vbr-new "$f" "${f%.*}".mp3; done
$ for f in *.flac; do flac -cd "$f" | lame -b 320 - "${f%.*}".mp3; done
$ for f in *.m4a; do avconv -i "$f" "${f%.*}".mp3; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment