Skip to content

Instantly share code, notes, and snippets.

@etelford
Last active October 10, 2020 14:19
Show Gist options
  • Save etelford/d76353f2920c541081f5e165ce4f54fd to your computer and use it in GitHub Desktop.
Save etelford/d76353f2920c541081f5e165ce4f54fd to your computer and use it in GitHub Desktop.
Convert wav to mp3 and add IDv3 tags
# https://trac.ffmpeg.org/wiki/Encode/MP3
ffmpeg -i Input.wav -codec:a libmp3lame -b:a 256k Output.mp3
ffmpeg -i Input.wav -vn -ar 44100 -ac 2 -b:a 192k Output.mp3
# Lookup genre @ https://en.wikipedia.org/wiki/List_of_ID3v1_Genres
id3tag --artist="Artist Name" --album="Album name" --song="Song Name" --year=2020 --track=1 --total=1 --genre=17 File.mp3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment