Skip to content

Instantly share code, notes, and snippets.

@vikjam
Last active May 4, 2016 18:39
Show Gist options
  • Save vikjam/6e09b37b39f6a96fc69dd1f4ec91f5f6 to your computer and use it in GitHub Desktop.
Save vikjam/6e09b37b39f6a96fc69dd1f4ec91f5f6 to your computer and use it in GitHub Desktop.
.wav to .mp3 with album art.
# VBR (with loop)
for f in *.wav; do lame --ti "path/to/file/album_art.jpg" --vbr-new -V 3 "$f" "${f%.wav}.mp3"; done
# Non-VBR (no loop)
lame --ti "path/to/file/album_art.jpg" -h -b "wavfile.wav" "mp3file.mp3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment