Skip to content

Instantly share code, notes, and snippets.

@chrisvoo chrisvoo/

Last active Jul 4, 2017
What would you like to do?
Converts a FLAC file to MP3 with ffmpeg and lame encoder
to_mp3() {
filename=$(basename "$1")
ffmpeg -i "$1" -codec:a libmp3lame -b:a 320k -map_metadata 0 -id3v2_version 3 ${filename}.mp3

This comment has been minimized.

Copy link
Owner Author

chrisvoo commented Jul 4, 2017

Pass the full (or relative) path of your FLAC file to the function. The result will be an MP3 named ad your FLAC original file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.